Commit 1cd4da56 authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Rémy Coutable

Fix Layout/FirstParameterIndentation cop

parent 4d59594d
...@@ -57,17 +57,6 @@ Layout/FirstArrayElementIndentation: ...@@ -57,17 +57,6 @@ Layout/FirstArrayElementIndentation:
Layout/FirstHashElementIndentation: Layout/FirstHashElementIndentation:
Enabled: false 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 # Offense count: 2164
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
......
---
title: Fix Layout/FirstParameterIndentation cop
merge_request: 41089
author:
type: fixed
...@@ -18,7 +18,7 @@ module Gitlab ...@@ -18,7 +18,7 @@ module Gitlab
end end
def add_check( def add_check(
klass, klass,
actions: {}, actions: {},
positive_condition: nil, positive_condition: nil,
negative_condition: nil, negative_condition: nil,
......
...@@ -86,7 +86,7 @@ module Gitlab ...@@ -86,7 +86,7 @@ module Gitlab
# #
# rubocop:disable Metrics/ParameterLists # rubocop:disable Metrics/ParameterLists
def build( def build(
project:, user:, ref:, oldrev: nil, newrev: nil, project:, user:, ref:, oldrev: nil, newrev: nil,
commits: [], commits_count: nil, message: nil, push_options: {}, commits: [], commits_count: nil, message: nil, push_options: {},
with_changed_files: true) with_changed_files: true)
......
...@@ -125,7 +125,7 @@ eos ...@@ -125,7 +125,7 @@ eos
end end
def create_file_in_repo( def create_file_in_repo(
project, start_branch, branch_name, filename, content, project, start_branch, branch_name, filename, content,
commit_message: 'Add new content') commit_message: 'Add new content')
Files::CreateService.new( Files::CreateService.new(
project, project,
......
...@@ -14,7 +14,7 @@ module StubObjectStorage ...@@ -14,7 +14,7 @@ module StubObjectStorage
end end
def stub_object_storage_uploader( def stub_object_storage_uploader(
config:, config:,
uploader:, uploader:,
remote_directory:, remote_directory:,
enabled: true, enabled: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment