Commit c5a49cc3 authored by Douwe Maan's avatar Douwe Maan

Disable some more cops

parent 378ad332
...@@ -874,6 +874,21 @@ RSpec/NestedGroups: ...@@ -874,6 +874,21 @@ RSpec/NestedGroups:
RSpec/LeadingSubject: RSpec/LeadingSubject:
Enabled: false Enabled: false
Lint/AmbiguousRegexpLiteral:
Enabled: false
Bundler/OrderedGems:
Enabled: false
Lint/HandleExceptions:
Enabled: false
Lint/Loop:
Enabled: false
Metrics/BlockLength:
Enabled: false
RSpec/LetSetup: RSpec/LetSetup:
Enabled: false Enabled: false
...@@ -888,3 +903,30 @@ RSpec/RepeatedDescription: ...@@ -888,3 +903,30 @@ RSpec/RepeatedDescription:
RSpec/SubjectStub: RSpec/SubjectStub:
Enabled: false Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false
Lint/UnusedBlockArgument:
Enabled: false
Rails/HttpPositionalArguments:
Enabled: false
Rails/TimeZone:
Enabled: false
Style/AlignParameters:
Enabled: false
Style/CaseEquality:
Enabled: false
Style/CommentAnnotation:
Enabled: false
Style/DoubleNegation:
Enabled: false
...@@ -6,35 +6,6 @@ ...@@ -6,35 +6,6 @@
# Note that changes in the inspected code, or installation of new # Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again. # versions of RuboCop, may require this file to be generated again.
# Offense count: 28
# Configuration parameters: Include.
# Include: **/Gemfile, **/gems.rb
Bundler/OrderedGems:
Exclude:
- 'Gemfile'
# Offense count: 176
Lint/AmbiguousRegexpLiteral:
Enabled: false
# Offense count: 54
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Enabled: false
# Offense count: 23
Lint/HandleExceptions:
Enabled: false
# Offense count: 1
Lint/Loop:
Exclude:
- 'app/mailers/notify.rb'
# Offense count: 32
Lint/ShadowingOuterLocalVariable:
Enabled: false
# Offense count: 10 # Offense count: 10
# Cop supports --auto-correct. # Cop supports --auto-correct.
Lint/UnifiedInteger: Lint/UnifiedInteger:
...@@ -62,17 +33,6 @@ Lint/UnneededSplatExpansion: ...@@ -62,17 +33,6 @@ Lint/UnneededSplatExpansion:
- 'spec/support/seed_helper.rb' - 'spec/support/seed_helper.rb'
- 'spec/support/test_env.rb' - 'spec/support/test_env.rb'
# Offense count: 89
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Enabled: false
# Offense count: 114
# Configuration parameters: CountComments.
Metrics/BlockLength:
Max: 302
# Offense count: 3 # Offense count: 3
# Cop supports --auto-correct. # Cop supports --auto-correct.
Performance/RedundantBlockCall: Performance/RedundantBlockCall:
...@@ -136,24 +96,6 @@ RSpec/SingleArgumentMessageChain: ...@@ -136,24 +96,6 @@ RSpec/SingleArgumentMessageChain:
Rails/DynamicFindBy: Rails/DynamicFindBy:
Enabled: false Enabled: false
# Offense count: 1162
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: spec/**/*, test/**/*
Rails/HttpPositionalArguments:
Enabled: false
# Offense count: 56
Rails/OutputSafety:
Enabled: false
# Offense count: 202
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: strict, flexible
Rails/TimeZone:
Enabled: false
# Offense count: 16
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: Include. # Configuration parameters: Include.
# Include: app/models/**/*.rb # Include: app/models/**/*.rb
...@@ -183,13 +125,6 @@ Security/JSONLoad: ...@@ -183,13 +125,6 @@ Security/JSONLoad:
- 'spec/models/project_services/irker_service_spec.rb' - 'spec/models/project_services/irker_service_spec.rb'
- 'spec/support/stub_gitlab_calls.rb' - 'spec/support/stub_gitlab_calls.rb'
# Offense count: 431
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: with_first_parameter, with_fixed_indentation
Style/AlignParameters:
Enabled: false
# Offense count: 55 # Offense count: 55
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
...@@ -204,31 +139,11 @@ Style/BarePercentLiterals: ...@@ -204,31 +139,11 @@ Style/BarePercentLiterals:
Style/BracesAroundHashParameters: Style/BracesAroundHashParameters:
Enabled: false Enabled: false
# Offense count: 7
Style/CaseEquality:
Exclude:
- 'app/helpers/auth_helper.rb'
- 'app/helpers/builds_helper.rb'
- 'app/models/commit.rb'
- 'app/models/protected_branch.rb'
- 'app/services/projects/download_service.rb'
- 'config/initializers/trusted_proxies.rb'
- 'lib/gitlab/route_map.rb'
# Offense count: 33 # Offense count: 33
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/ColonMethodCall: Style/ColonMethodCall:
Enabled: false Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
Style/CommentAnnotation:
Exclude:
- 'config/routes/user.rb'
- 'spec/requests/api/v3/project_snippets_spec.rb'
# Offense count: 32 # Offense count: 32
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly. # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
...@@ -236,25 +151,6 @@ Style/CommentAnnotation: ...@@ -236,25 +151,6 @@ Style/CommentAnnotation:
Style/ConditionalAssignment: Style/ConditionalAssignment:
Enabled: false Enabled: false
# Offense count: 21
Style/DoubleNegation:
Exclude:
- 'app/controllers/users_controller.rb'
- 'app/models/commit.rb'
- 'app/models/merge_request.rb'
- 'app/models/project.rb'
- 'app/models/project_services/buildkite_service.rb'
- 'app/models/project_services/drone_ci_service.rb'
- 'app/models/project_wiki.rb'
- 'app/models/user.rb'
- 'config/initializers/6_validations.rb'
- 'lib/banzai/filter/abstract_reference_filter.rb'
- 'lib/banzai/filter/relative_link_filter.rb'
- 'lib/gitlab/git/diff_collection.rb'
- 'lib/gitlab/git/repository.rb'
- 'lib/gitlab/sherlock.rb'
- 'lib/gitlab/sherlock/middleware.rb'
# Offense count: 6 # Offense count: 6
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/EachWithObject: Style/EachWithObject:
......
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