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
04c39b4e
Commit
04c39b4e
authored
Jul 09, 2020
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/RedundantParentheses offenses
parent
0382457b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
.rubocop_todo.yml
.rubocop_todo.yml
+0
-6
ee/app/models/ee/merge_request.rb
ee/app/models/ee/merge_request.rb
+7
-7
No files found.
.rubocop_todo.yml
View file @
04c39b4e
...
...
@@ -666,12 +666,6 @@ Style/RedundantFreeze:
Style/RedundantInterpolation
:
Enabled
:
false
# Offense count: 6
# Cop supports --auto-correct.
Style/RedundantParentheses
:
Exclude
:
-
'
ee/app/models/ee/merge_request.rb'
# Offense count: 33
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
...
...
ee/app/models/ee/merge_request.rb
View file @
04c39b4e
...
...
@@ -161,7 +161,7 @@ module EE
end
def
has_dependency_scanning_reports?
!!
(
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
dependency_list_reports
)
)
!!
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
dependency_list_reports
)
end
def
compare_dependency_scanning_reports
(
current_user
)
...
...
@@ -171,11 +171,11 @@ module EE
end
def
has_license_scanning_reports?
!!
(
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
license_scanning_reports
)
)
!!
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
license_scanning_reports
)
end
def
has_container_scanning_reports?
!!
(
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
container_scanning_reports
)
)
!!
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
container_scanning_reports
)
end
def
compare_container_scanning_reports
(
current_user
)
...
...
@@ -185,11 +185,11 @@ module EE
end
def
has_sast_reports?
!!
(
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
sast_reports
)
)
!!
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
sast_reports
)
end
def
has_secret_detection_reports?
!!
(
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
secret_detection_reports
)
)
!!
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
secret_detection_reports
)
end
def
compare_sast_reports
(
current_user
)
...
...
@@ -205,7 +205,7 @@ module EE
end
def
has_dast_reports?
!!
(
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
dast_reports
)
)
!!
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
dast_reports
)
end
def
compare_dast_reports
(
current_user
)
...
...
@@ -221,7 +221,7 @@ module EE
end
def
has_metrics_reports?
!!
(
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
metrics_reports
)
)
!!
actual_head_pipeline
&
.
has_reports?
(
::
Ci
::
JobArtifact
.
metrics_reports
)
end
def
compare_metrics_reports
...
...
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