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
1cd4da56
Commit
1cd4da56
authored
Sep 02, 2020
by
Rajendra Kadam
Committed by
Rémy Coutable
Sep 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Layout/FirstParameterIndentation cop
parent
4d59594d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
15 deletions
+9
-15
.rubocop_todo.yml
.rubocop_todo.yml
+0
-11
changelogs/unreleased/first-param-cop.yml
changelogs/unreleased/first-param-cop.yml
+5
-0
lib/gitlab/cross_project_access.rb
lib/gitlab/cross_project_access.rb
+1
-1
lib/gitlab/data_builder/push.rb
lib/gitlab/data_builder/push.rb
+1
-1
spec/support/helpers/repo_helpers.rb
spec/support/helpers/repo_helpers.rb
+1
-1
spec/support/helpers/stub_object_storage.rb
spec/support/helpers/stub_object_storage.rb
+1
-1
No files found.
.rubocop_todo.yml
View file @
1cd4da56
...
...
@@ -57,17 +57,6 @@ Layout/FirstArrayElementIndentation:
Layout/FirstHashElementIndentation
:
Enabled
:
false
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: consistent, align_parentheses
Layout/FirstParameterIndentation
:
Exclude
:
-
'
lib/gitlab/cross_project_access.rb'
-
'
lib/gitlab/data_builder/push.rb'
-
'
spec/support/helpers/repo_helpers.rb'
-
'
spec/support/helpers/stub_object_storage.rb'
# Offense count: 2164
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
...
...
changelogs/unreleased/first-param-cop.yml
0 → 100644
View file @
1cd4da56
---
title
:
Fix Layout/FirstParameterIndentation cop
merge_request
:
41089
author
:
type
:
fixed
lib/gitlab/cross_project_access.rb
View file @
1cd4da56
...
...
@@ -18,7 +18,7 @@ module Gitlab
end
def
add_check
(
klass
,
klass
,
actions:
{},
positive_condition:
nil
,
negative_condition:
nil
,
...
...
lib/gitlab/data_builder/push.rb
View file @
1cd4da56
...
...
@@ -86,7 +86,7 @@ module Gitlab
#
# rubocop:disable Metrics/ParameterLists
def
build
(
project
:,
user
:,
ref
:,
oldrev:
nil
,
newrev:
nil
,
project
:,
user
:,
ref
:,
oldrev:
nil
,
newrev:
nil
,
commits:
[],
commits_count:
nil
,
message:
nil
,
push_options:
{},
with_changed_files:
true
)
...
...
spec/support/helpers/repo_helpers.rb
View file @
1cd4da56
...
...
@@ -125,7 +125,7 @@ eos
end
def
create_file_in_repo
(
project
,
start_branch
,
branch_name
,
filename
,
content
,
project
,
start_branch
,
branch_name
,
filename
,
content
,
commit_message:
'Add new content'
)
Files
::
CreateService
.
new
(
project
,
...
...
spec/support/helpers/stub_object_storage.rb
View file @
1cd4da56
...
...
@@ -14,7 +14,7 @@ module StubObjectStorage
end
def
stub_object_storage_uploader
(
config
:,
config
:,
uploader
:,
remote_directory
:,
enabled:
true
,
...
...
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