Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5906c829
Commit
5906c829
authored
Oct 26, 2018
by
Tabakhase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support location.positions in code climate MR-widget
https://github.com/codeclimate/spec/blob/master/SPEC.md#locations
parent
d390f8f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ee/app/assets/javascripts/vue_merge_request_widget/stores/mr_widget_store.js
...cripts/vue_merge_request_widget/stores/mr_widget_store.js
+8
-0
No files found.
ee/app/assets/javascripts/vue_merge_request_widget/stores/mr_widget_store.js
View file @
5906c829
...
...
@@ -153,7 +153,15 @@ export default class MergeRequestStore extends CEMergeRequestStore {
if
(
issue
.
location
.
lines
&&
issue
.
location
.
lines
.
begin
)
{
parsedIssue
.
line
=
issue
.
location
.
lines
.
begin
;
parseCodeQualityUrl
+=
`#L
${
issue
.
location
.
lines
.
begin
}
`
;
}
else
if
(
issue
.
location
.
positions
&&
issue
.
location
.
positions
.
begin
&&
issue
.
location
.
positions
.
begin
.
line
)
{
parsedIssue
.
line
=
issue
.
location
.
positions
.
begin
.
line
;
parseCodeQualityUrl
+=
`#L
${
issue
.
location
.
positions
.
begin
.
line
}
`
;
}
parsedIssue
.
urlPath
=
parseCodeQualityUrl
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment