2016-06-29 12:00:22 -04:00
|
|
|
# This configuration was generated by
|
2020-11-05 13:08:48 -05:00
|
|
|
# `rubocop --auto-gen-config`
|
2021-03-10 07:09:14 -05:00
|
|
|
# on 2021-02-24 14:52:20 UTC using RuboCop version 0.93.1.
|
2016-06-29 12:00:22 -04:00
|
|
|
# The point is for the user to remove these configuration records
|
|
|
|
# one by one as the offenses are removed from the code base.
|
|
|
|
# Note that changes in the inspected code, or installation of new
|
|
|
|
# versions of RuboCop, may require this file to be generated again.
|
|
|
|
|
2020-12-17 13:10:14 -05:00
|
|
|
# Offense count: 1
|
|
|
|
Gitlab/PolicyRuleBoolean:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/app/policies/ee/identity_provider_policy.rb'
|
|
|
|
|
2021-01-12 19:10:50 -05:00
|
|
|
# Offense count: 22
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowComments.
|
|
|
|
Lint/UselessMethodDefinition:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 218
|
2019-05-03 00:40:40 -04:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: PreferredName.
|
|
|
|
Naming/RescuedExceptionsVariableName:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 29
|
2020-11-05 13:08:48 -05:00
|
|
|
# Configuration parameters: MinSize.
|
|
|
|
Performance/CollectionLiteralInLoop:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 41
|
2021-01-12 19:10:50 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/ConstantRegexp:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 15209
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: Prefixes.
|
|
|
|
# Prefixes: when, with, without
|
|
|
|
RSpec/ContextWording:
|
2017-07-09 11:05:21 -04:00
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 1428
|
2019-05-03 00:40:40 -04:00
|
|
|
# Cop supports --auto-correct.
|
2018-01-18 12:45:05 -05:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: method_call, block
|
|
|
|
RSpec/ExpectChange:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-12 19:10:50 -05:00
|
|
|
# Offense count: 2352
|
2019-05-03 00:40:40 -04:00
|
|
|
# Cop supports --auto-correct.
|
2020-01-20 04:08:32 -05:00
|
|
|
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
2017-09-19 11:25:42 -04:00
|
|
|
# SupportedStyles: inflected, explicit
|
|
|
|
RSpec/PredicateMatcher:
|
2017-02-22 13:43:48 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 118
|
2020-11-05 13:08:48 -05:00
|
|
|
RSpec/RepeatedExampleGroupBody:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 667
|
2019-05-03 00:40:40 -04:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: and_return, block
|
|
|
|
RSpec/ReturnFromStub:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 610
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
2017-04-07 20:23:13 -04:00
|
|
|
RSpec/ScatteredLet:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 26
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/ActiveRecordCallbacksOrder:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-01-20 04:08:32 -05:00
|
|
|
# Offense count: 10
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/ApplicationController:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/acme_challenges_controller.rb'
|
|
|
|
- 'app/controllers/chaos_controller.rb'
|
|
|
|
- 'app/controllers/health_controller.rb'
|
|
|
|
- 'app/controllers/metrics_controller.rb'
|
|
|
|
- 'ee/app/controllers/oauth/geo_auth_controller.rb'
|
2021-06-24 11:07:28 -04:00
|
|
|
- 'ee/spec/helpers/ee/integrations_helper_spec.rb'
|
2020-01-20 04:08:32 -05:00
|
|
|
- 'lib/gitlab/base_doorkeeper_controller.rb'
|
|
|
|
- 'lib/gitlab/request_forgery_protection.rb'
|
|
|
|
- 'spec/controllers/concerns/continue_params_spec.rb'
|
|
|
|
- 'spec/lib/marginalia_spec.rb'
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 155
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/ContentTag:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 313
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: db/migrate/*.rb
|
|
|
|
Rails/CreateTableWithTimestamps:
|
2017-02-22 12:14:22 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 361
|
2019-05-03 00:40:40 -04:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: slashes, arguments
|
2017-02-22 13:43:48 -05:00
|
|
|
Rails/FilePath:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 354
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 537
|
2019-05-03 00:40:40 -04:00
|
|
|
# Configuration parameters: Include.
|
2020-01-20 04:08:32 -05:00
|
|
|
# Include: app/helpers/**/*.rb
|
|
|
|
Rails/HelperInstanceVariable:
|
|
|
|
Enabled: false
|
2019-05-03 00:40:40 -04:00
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 47
|
2020-05-28 17:08:22 -04:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/IndexWith:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 118
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/InverseOf:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 62
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/controllers/**/*.rb
|
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 00:40:40 -04:00
|
|
|
|
2020-11-05 13:08:48 -05:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/mailers/**/*.rb
|
|
|
|
Rails/MailerName:
|
|
|
|
Exclude:
|
|
|
|
- 'app/mailers/notify.rb'
|
|
|
|
|
2021-01-12 19:10:50 -05:00
|
|
|
# Offense count: 51
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/NegateInclude:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 46
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/Pick:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 13:10:14 -05:00
|
|
|
# Offense count: 39
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
2020-01-20 04:08:32 -05:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: **/Rakefile, **/*.rake
|
|
|
|
Rails/RakeEnvironment:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 62
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/RedundantForeignKey:
|
2017-02-22 12:14:22 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 1144
|
2020-11-05 13:08:48 -05:00
|
|
|
# Configuration parameters: ForbiddenMethods, AllowedMethods.
|
|
|
|
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
|
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 278
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/SquishedSQLHeredocs:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 44
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: exists, where
|
|
|
|
Rails/WhereExists:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-12 19:10:50 -05:00
|
|
|
# Offense count: 240
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: separated, grouped
|
|
|
|
Style/AccessorGrouping:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 188
|
2017-09-19 11:25:42 -04:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2017-02-22 17:39:43 -05:00
|
|
|
# SupportedStyles: percent_q, bare_percent
|
|
|
|
Style/BarePercentLiterals:
|
|
|
|
Enabled: false
|
2017-01-05 17:03:08 -05:00
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 42
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/CaseLikeIf:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 205
|
2017-01-05 17:03:08 -05:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
2017-01-05 17:03:08 -05:00
|
|
|
# SupportedStyles: compact, expanded
|
|
|
|
Style/EmptyMethod:
|
2016-07-13 14:39:14 -04:00
|
|
|
Enabled: false
|
2016-07-03 16:18:39 -04:00
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 118
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ExplicitBlockArgument:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 581
|
2017-09-19 11:25:42 -04:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2016-07-03 16:18:39 -04:00
|
|
|
# SupportedStyles: format, sprintf, percent
|
|
|
|
Style/FormatString:
|
2017-02-22 12:14:22 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 59
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: braces, no_braces
|
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 70
|
2020-05-28 17:08:22 -04:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/HashEachMethods:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 34
|
2020-01-20 04:08:32 -05:00
|
|
|
# Configuration parameters: AllowIfModifier.
|
2016-07-03 16:18:39 -04:00
|
|
|
Style/IfInsideElse:
|
2017-02-22 12:14:22 -05:00
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 64
|
2021-01-12 19:10:50 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/KeywordParametersOrder:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 458
|
2016-07-03 16:18:39 -04:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
2016-07-03 16:18:39 -04:00
|
|
|
# SupportedStyles: line_count_dependent, lambda, literal
|
|
|
|
Style/Lambda:
|
2016-07-13 14:39:14 -04:00
|
|
|
Enabled: false
|
2016-07-03 16:18:39 -04:00
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 21
|
2019-05-03 00:40:40 -04:00
|
|
|
Style/MissingRespondToMissing:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-12 19:10:50 -05:00
|
|
|
# Offense count: 35
|
2016-07-03 16:18:39 -04:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
2016-07-03 16:18:39 -04:00
|
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
|
|
Style/Next:
|
2017-02-22 12:14:22 -05:00
|
|
|
Enabled: false
|
2016-07-03 16:18:39 -04:00
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 101
|
2016-06-29 12:00:22 -04:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 11:25:42 -04:00
|
|
|
# Configuration parameters: EnforcedOctalStyle.
|
2016-06-29 12:00:22 -04:00
|
|
|
# SupportedOctalStyles: zero_with_o, zero_only
|
|
|
|
Style/NumericLiteralPrefix:
|
2017-02-22 12:14:22 -05:00
|
|
|
Enabled: false
|
2017-02-21 19:04:05 -05:00
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 206
|
2020-05-28 17:08:22 -04:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantInterpolation:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 279
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantRegexpEscape:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 53
|
2016-07-03 16:18:39 -04:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RescueModifier:
|
2017-01-11 04:48:29 -05:00
|
|
|
Enabled: false
|
2016-10-04 07:28:01 -04:00
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 123
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/SingleArgumentDig:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 562
|
2020-11-05 13:08:48 -05:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/StringConcatenation:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-10 07:09:14 -05:00
|
|
|
# Offense count: 109
|
2017-09-19 11:25:42 -04:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2016-07-03 16:18:39 -04:00
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
|
|
Style/StringLiteralsInInterpolation:
|
2017-02-22 12:14:22 -05:00
|
|
|
Enabled: false
|