2019-05-05 18:10:48 +05:30
|
|
|
# This configuration was generated by
|
2021-01-29 00:20:46 +05:30
|
|
|
# `rubocop --auto-gen-config`
|
2021-04-17 20:07:23 +05:30
|
|
|
# on 2021-02-24 14:52:20 UTC using RuboCop version 0.93.1.
|
2019-05-05 18:10:48 +05:30
|
|
|
# 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.
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 221
|
2021-01-29 00:20:46 +05:30
|
|
|
Capybara/VisibilityMatcher:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 1
|
|
|
|
Gitlab/PolicyRuleBoolean:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/app/policies/ee/identity_provider_policy.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 2270
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
2019-07-31 22:56:46 +05:30
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
2020-06-23 00:09:42 +05:30
|
|
|
Layout/ArgumentAlignment:
|
2019-07-31 22:56:46 +05:30
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 771
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
2020-06-23 00:09:42 +05:30
|
|
|
Layout/FirstArrayElementIndentation:
|
2019-05-05 18:10:48 +05:30
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 1684
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
2020-06-23 00:09:42 +05:30
|
|
|
Layout/FirstHashElementIndentation:
|
2019-05-05 18:10:48 +05:30
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 3233
|
2020-06-23 00:09:42 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
|
|
# SupportedColonStyles: key, separator, table
|
|
|
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
|
|
Layout/HashAlignment:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 14544
|
2020-06-23 00:09:42 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
|
|
# URISchemes: http, https
|
|
|
|
Layout/LineLength:
|
|
|
|
Max: 1313
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 170
|
2019-07-31 22:56:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: aligned, indented
|
|
|
|
Layout/MultilineOperationIndentation:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 53
|
2020-06-23 00:09:42 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/SpaceAroundMethodCallOperator:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 754
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: require_no_space, require_space
|
|
|
|
Layout/SpaceInLambdaLiteral:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 1209
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
2021-04-17 20:07:23 +05:30
|
|
|
# Configuration parameters: EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
2019-05-05 18:10:48 +05:30
|
|
|
# SupportedStyles: space, no_space
|
|
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
|
|
Layout/SpaceInsideBlockBraces:
|
|
|
|
Enabled: false
|
2021-04-17 20:07:23 +05:30
|
|
|
EnforcedStyle: space
|
2019-05-05 18:10:48 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 585
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
2019-07-31 22:56:46 +05:30
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: space, no_space
|
2019-05-05 18:10:48 +05:30
|
|
|
Layout/SpaceInsideParens:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 18
|
|
|
|
Lint/BinaryOperatorWithIdenticalOperands:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/spec/lib/ee/gitlab/application_context_spec.rb'
|
|
|
|
- 'spec/helpers/visibility_level_helper_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/conan_token_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/git/conflict/parser_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/graphql/lazy_spec.rb'
|
|
|
|
- 'spec/models/ci/build_trace_chunk_spec.rb'
|
|
|
|
- 'spec/models/clusters/platforms/kubernetes_spec.rb'
|
|
|
|
- 'spec/models/concerns/where_composite_spec.rb'
|
|
|
|
- 'spec/models/metrics/dashboard/annotation_spec.rb'
|
|
|
|
- 'spec/models/repository_spec.rb'
|
|
|
|
- 'spec/models/ssh_host_key_spec.rb'
|
2021-04-17 20:07:23 +05:30
|
|
|
- 'spec/tooling/danger/sidekiq_queues_spec.rb'
|
2021-01-29 00:20:46 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 84
|
2021-03-08 18:12:59 +05:30
|
|
|
Lint/ConstantDefinitionInBlock:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: AllowComments.
|
|
|
|
Lint/EmptyFile:
|
2021-01-29 00:20:46 +05:30
|
|
|
Exclude:
|
2021-03-08 18:12:59 +05:30
|
|
|
- 'db/seeds.rb'
|
|
|
|
- 'ee/db/geo/seeds.rb'
|
2021-01-29 00:20:46 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 208
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: MaximumRangeSize.
|
|
|
|
Lint/MissingCopEnableDirective:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 13
|
2021-01-29 00:20:46 +05:30
|
|
|
Lint/MixedRegexpCaptureTypes:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/alert_management/alert.rb'
|
2021-09-04 01:27:46 +05:30
|
|
|
- 'app/models/integrations/ewm.rb'
|
2021-01-29 00:20:46 +05:30
|
|
|
- 'app/uploaders/file_uploader.rb'
|
|
|
|
- 'ee/lib/gitlab/code_owners/reference_extractor.rb'
|
|
|
|
- 'lib/gitlab/ci/pipeline/expression/lexeme/string.rb'
|
|
|
|
- 'lib/gitlab/dependency_linker/gemfile_linker.rb'
|
|
|
|
- 'lib/gitlab/diff/suggestions_parser.rb'
|
|
|
|
- 'lib/gitlab/github_import/representation/note.rb'
|
|
|
|
- 'lib/gitlab/metrics/system.rb'
|
|
|
|
- 'lib/gitlab/request_profiler/profile.rb'
|
|
|
|
- 'lib/gitlab/slash_commands/issue_move.rb'
|
|
|
|
- 'lib/gitlab/slash_commands/issue_new.rb'
|
|
|
|
- 'lib/gitlab/slash_commands/run.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 200
|
2020-06-23 00:09:42 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Lint/RedundantCopDisableDirective:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 1
|
|
|
|
Lint/SelfAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/lib/gitlab/search_context/builder_spec.rb'
|
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
# Offense count: 3
|
|
|
|
Lint/StructNewOverride:
|
|
|
|
Exclude:
|
|
|
|
- 'app/presenters/sentry_error_presenter.rb'
|
|
|
|
- 'app/serializers/environment_serializer.rb'
|
|
|
|
- 'lib/gitlab/ci/pipeline/duration.rb'
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 22
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowComments.
|
|
|
|
Lint/UselessMethodDefinition:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
2021-01-29 00:20:46 +05:30
|
|
|
Metrics/AbcSize:
|
2021-04-17 20:07:23 +05:30
|
|
|
Max: 61
|
2021-01-29 00:20:46 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 13
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
2021-01-29 00:20:46 +05:30
|
|
|
Metrics/CyclomaticComplexity:
|
2021-04-17 20:07:23 +05:30
|
|
|
Max: 25
|
2021-01-29 00:20:46 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 14
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
2021-01-29 00:20:46 +05:30
|
|
|
Metrics/PerceivedComplexity:
|
2021-04-17 20:07:23 +05:30
|
|
|
Max: 25
|
2021-01-29 00:20:46 +05:30
|
|
|
|
2019-05-05 18:10:48 +05:30
|
|
|
# Offense count: 11
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: lowercase, uppercase
|
|
|
|
Naming/HeredocDelimiterCase:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/lib/gitlab/diff/parser_spec.rb'
|
|
|
|
- 'spec/lib/json_web_token/rsa_token_spec.rb'
|
|
|
|
- 'spec/models/commit_spec.rb'
|
|
|
|
- 'spec/support/helpers/repo_helpers.rb'
|
|
|
|
- 'spec/support/helpers/seed_repo.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 321
|
2020-06-23 00:09:42 +05:30
|
|
|
# Configuration parameters: ForbiddenDelimiters.
|
|
|
|
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
2019-05-05 18:10:48 +05:30
|
|
|
Naming/HeredocDelimiterNaming:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 218
|
2019-07-31 22:56:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: PreferredName.
|
|
|
|
Naming/RescuedExceptionsVariableName:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/AncestorsInclude:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/ci/config/extendable/entry.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 40
|
2021-03-08 18:12:59 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/BlockGivenWithExplicitBlock:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 29
|
2021-01-29 00:20:46 +05:30
|
|
|
# Configuration parameters: MinSize.
|
|
|
|
Performance/CollectionLiteralInLoop:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 41
|
2021-03-08 18:12:59 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/ConstantRegexp:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 14
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: SafeMultiline.
|
|
|
|
Performance/DeletePrefix:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/submodule_helper.rb'
|
|
|
|
- 'app/workers/concerns/application_worker.rb'
|
|
|
|
- 'ee/lib/gitlab/geo/git_ssh_proxy.rb'
|
|
|
|
- 'lib/banzai/filter/repository_link_filter.rb'
|
|
|
|
- 'lib/gitlab/auth/ldap/dn.rb'
|
|
|
|
- 'lib/gitlab/gfm/uploads_rewriter.rb'
|
|
|
|
- 'lib/gitlab/git/ref.rb'
|
|
|
|
- 'lib/gitlab/project_template.rb'
|
|
|
|
- 'lib/gitlab/setup_helper.rb'
|
|
|
|
- 'lib/gitlab/time_tracking_formatter.rb'
|
|
|
|
- 'spec/controllers/projects/artifacts_controller_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/gfm/uploads_rewriter_spec.rb'
|
|
|
|
- 'spec/support/helpers/test_env.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 121
|
2021-03-08 18:12:59 +05:30
|
|
|
Performance/MethodObjectAsBlock:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 18
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AutoCorrect.
|
|
|
|
Performance/StringInclude:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/snippet_repository.rb'
|
|
|
|
- 'config/initializers/macos.rb'
|
|
|
|
- 'config/spring.rb'
|
|
|
|
- 'ee/app/models/ee/container_registry/event.rb'
|
|
|
|
- 'ee/lib/gitlab/auth/smartcard/certificate.rb'
|
|
|
|
- 'lib/gitlab/database/migration_helpers.rb'
|
|
|
|
- 'lib/kramdown/parser/atlassian_document_format.rb'
|
|
|
|
- 'lib/prometheus/pid_provider.rb'
|
|
|
|
- 'qa/qa/ee/page/merge_request/show.rb'
|
|
|
|
- 'qa/qa/specs/runner.rb'
|
|
|
|
- 'spec/features/projects/jobs_spec.rb'
|
|
|
|
- 'spec/spec_helper.rb'
|
|
|
|
- 'spec/support_specs/helpers/active_record/query_recorder_spec.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 15209
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: Prefixes.
|
|
|
|
# Prefixes: when, with, without
|
|
|
|
RSpec/ContextWording:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 4
|
|
|
|
# Configuration parameters: CustomIncludeMethods.
|
|
|
|
RSpec/EmptyExampleGroup:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/spec/services/personal_access_tokens/revoke_invalid_tokens_spec.rb'
|
|
|
|
- 'spec/services/projects/prometheus/alerts/notify_service_spec.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 1428
|
2019-07-31 22:56:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: method_call, block
|
|
|
|
RSpec/ExpectChange:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 930
|
2019-05-05 18:10:48 +05:30
|
|
|
RSpec/ExpectInHook:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 2352
|
2019-07-31 22:56:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
2020-03-13 15:44:24 +05:30
|
|
|
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
2019-05-05 18:10:48 +05:30
|
|
|
# SupportedStyles: inflected, explicit
|
|
|
|
RSpec/PredicateMatcher:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 118
|
2021-01-29 00:20:46 +05:30
|
|
|
RSpec/RepeatedExampleGroupBody:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 225
|
2021-01-29 00:20:46 +05:30
|
|
|
RSpec/RepeatedExampleGroupDescription:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 667
|
2019-07-31 22:56:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: and_return, block
|
|
|
|
RSpec/ReturnFromStub:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 610
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
2019-05-05 18:10:48 +05:30
|
|
|
RSpec/ScatteredLet:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 10
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: symbols, strings
|
|
|
|
RSpec/VariableDefinition:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/initializers/mail_encoding_patch_spec.rb'
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 24
|
2021-01-29 00:20:46 +05:30
|
|
|
# Configuration parameters: EnforcedStyle, IgnoredPatterns.
|
|
|
|
# SupportedStyles: snake_case, camelCase
|
|
|
|
RSpec/VariableName:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/features/projects/import_export/import_file_spec.rb'
|
|
|
|
- 'spec/features/task_lists_spec.rb'
|
|
|
|
- 'spec/initializers/mail_encoding_patch_spec.rb'
|
|
|
|
- 'spec/models/board_spec.rb'
|
|
|
|
- 'spec/support/shared_contexts/url_shared_context.rb'
|
|
|
|
- 'spec/support/shared_examples/requests/api/graphql/group_and_project_boards_query_shared_examples.rb'
|
|
|
|
- 'spec/support/shared_examples/services/boards/boards_list_service_shared_examples.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 26
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/ActiveRecordCallbacksOrder:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
# 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-09-30 23:02:18 +05:30
|
|
|
- 'ee/spec/helpers/ee/integrations_helper_spec.rb'
|
2020-03-13 15:44:24 +05:30
|
|
|
- 'lib/gitlab/base_doorkeeper_controller.rb'
|
|
|
|
- 'lib/gitlab/request_forgery_protection.rb'
|
|
|
|
- 'spec/controllers/concerns/continue_params_spec.rb'
|
|
|
|
- 'spec/lib/marginalia_spec.rb'
|
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
# Offense count: 3
|
2019-07-31 22:56:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/BelongsTo:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/deployment.rb'
|
|
|
|
- 'app/models/environment.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 155
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/ContentTag:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 313
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: db/migrate/*.rb
|
|
|
|
Rails/CreateTableWithTimestamps:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 361
|
2019-07-31 22:56:46 +05:30
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: slashes, arguments
|
2019-05-05 18:10:48 +05:30
|
|
|
Rails/FilePath:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 15
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/FindById:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/projects/pipelines_controller.rb'
|
|
|
|
- 'app/services/concerns/deploy_token_methods.rb'
|
|
|
|
- 'ee/app/controllers/ee/groups/group_members_controller.rb'
|
|
|
|
- 'ee/lib/api/audit_events.rb'
|
|
|
|
- 'ee/lib/api/merge_request_approval_rules.rb'
|
|
|
|
- 'ee/lib/ee/api/groups.rb'
|
|
|
|
- 'ee/lib/ee/api/projects.rb'
|
|
|
|
- 'ee/spec/finders/audit_log_finder_spec.rb'
|
|
|
|
- 'lib/api/snippets.rb'
|
|
|
|
- 'spec/finders/concerns/finder_methods_spec.rb'
|
|
|
|
- 'spec/finders/concerns/finder_with_cross_project_access_spec.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 354
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 537
|
2019-07-31 22:56:46 +05:30
|
|
|
# Configuration parameters: Include.
|
2020-03-13 15:44:24 +05:30
|
|
|
# Include: app/helpers/**/*.rb
|
|
|
|
Rails/HelperInstanceVariable:
|
|
|
|
Enabled: false
|
2019-07-31 22:56:46 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 47
|
2020-06-23 00:09:42 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/IndexWith:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 1
|
|
|
|
Rails/Inquiry:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/helpers/labels_helper_spec.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 118
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/InverseOf:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 62
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/controllers/**/*.rb
|
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-07-31 22:56:46 +05:30
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/mailers/**/*.rb
|
|
|
|
Rails/MailerName:
|
|
|
|
Exclude:
|
|
|
|
- 'app/mailers/notify.rb'
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 51
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/NegateInclude:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 46
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/Pick:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 123
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/Pluck:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 39
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
2019-07-31 22:56:46 +05:30
|
|
|
# Configuration parameters: Include.
|
2020-03-13 15:44:24 +05:30
|
|
|
# Include: **/Rakefile, **/*.rake
|
|
|
|
Rails/RakeEnvironment:
|
|
|
|
Enabled: false
|
2019-05-05 18:10:48 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 62
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/RedundantForeignKey:
|
2019-05-05 18:10:48 +05:30
|
|
|
Enabled: false
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 1
|
2021-01-29 00:20:46 +05:30
|
|
|
Rails/RenderInline:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/app/controllers/sitemap_controller.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 1144
|
2021-01-29 00:20:46 +05:30
|
|
|
# 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-04-17 20:07:23 +05:30
|
|
|
# Offense count: 278
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/SquishedSQLHeredocs:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 44
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: exists, where
|
|
|
|
Rails/WhereExists:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 240
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: separated, grouped
|
|
|
|
Style/AccessorGrouping:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 11
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ArrayCoercion:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/admin/ci/variables_controller.rb'
|
|
|
|
- 'app/controllers/groups/variables_controller.rb'
|
|
|
|
- 'app/controllers/projects/variables_controller.rb'
|
|
|
|
- 'db/migrate/20190620105427_change_null_private_profile_to_false.rb'
|
|
|
|
- 'db/post_migrate/20190812070645_migrate_private_profile_nulls.rb'
|
|
|
|
- 'db/post_migrate/20200311130802_schedule_populate_user_highest_roles_table.rb'
|
|
|
|
- 'db/post_migrate/20200805152108_migrate_null_external_diff_store_to_local_value.rb'
|
|
|
|
- 'db/post_migrate/20200806173633_migrate_null_package_files_file_store_to_local_value.rb'
|
|
|
|
- 'ee/app/services/geo/repository_verification_secondary_service.rb'
|
|
|
|
- 'ee/lib/ee/banzai/pipeline/gfm_pipeline.rb'
|
|
|
|
- 'spec/support/helpers/lfs_http_helpers.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 188
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: percent_q, bare_percent
|
|
|
|
Style/BarePercentLiterals:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 6
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/BisectedAttrAccessor:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/system_check/base_check.rb'
|
|
|
|
- 'qa/qa/resource/api_fabricator.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 42
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/CaseLikeIf:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 13
|
2021-03-08 18:12:59 +05:30
|
|
|
Style/CombinableLoops:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/db/fixtures/development/30_customizable_cycle_analytics.rb'
|
|
|
|
- 'ee/lib/gitlab/audit/events/preloader.rb'
|
|
|
|
- 'ee/spec/finders/snippets_finder_spec.rb'
|
|
|
|
- 'ee/spec/lib/ee/gitlab/background_migration/remove_duplicate_cs_findings_spec.rb'
|
|
|
|
- 'spec/features/merge_request/user_suggests_changes_on_diff_spec.rb'
|
|
|
|
- 'spec/finders/packages/group_packages_finder_spec.rb'
|
|
|
|
- 'spec/migrations/cleanup_optimistic_locking_nulls_pt2_fixed_spec.rb'
|
|
|
|
- 'spec/migrations/cleanup_optimistic_locking_nulls_spec.rb'
|
|
|
|
- 'spec/requests/api/members_spec.rb'
|
|
|
|
- 'spec/support/shared_examples/features/protected_branches_access_control_ce_shared_examples.rb'
|
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
# Offense count: 5
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/EachWithObject:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/expand_variables.rb'
|
|
|
|
- 'lib/gitlab/ci/ansi2html.rb'
|
|
|
|
- 'lib/gitlab/hook_data/issuable_builder.rb'
|
|
|
|
- 'lib/gitlab/i18n/po_linter.rb'
|
|
|
|
- 'lib/gitlab/import_export/members_mapper.rb'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 55
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: empty, nil, both
|
|
|
|
Style/EmptyElse:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 205
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: compact, expanded
|
|
|
|
Style/EmptyMethod:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ExpandPathArguments:
|
|
|
|
Exclude:
|
|
|
|
- 'cable/config.ru'
|
|
|
|
- 'config.ru'
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 118
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ExplicitBlockArgument:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 581
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: format, sprintf, percent
|
|
|
|
Style/FormatString:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 897
|
2019-05-05 18:10:48 +05:30
|
|
|
# Configuration parameters: MinBodyLength.
|
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 59
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: braces, no_braces
|
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 70
|
2020-06-23 00:09:42 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/HashEachMethods:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 34
|
2020-03-13 15:44:24 +05:30
|
|
|
# Configuration parameters: AllowIfModifier.
|
2019-05-05 18:10:48 +05:30
|
|
|
Style/IfInsideElse:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 1934
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 64
|
2021-03-08 18:12:59 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/KeywordParametersOrder:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 458
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: line_count_dependent, lambda, literal
|
|
|
|
Style/Lambda:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 21
|
2019-07-31 22:56:46 +05:30
|
|
|
Style/MissingRespondToMissing:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 5
|
|
|
|
Style/MixinUsage:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/factories/ci/builds.rb'
|
|
|
|
- 'spec/factories/ci/job_artifacts.rb'
|
|
|
|
- 'spec/factories/lfs_objects.rb'
|
|
|
|
- 'spec/factories/notes.rb'
|
|
|
|
- 'spec/lib/gitlab/import_export/version_checker_spec.rb'
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
# Offense count: 35
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
|
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
|
|
Style/Next:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 101
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedOctalStyle.
|
|
|
|
# SupportedOctalStyles: zero_with_o, zero_only
|
|
|
|
Style/NumericLiteralPrefix:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 2698
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: PreferredDelimiters.
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 206
|
2020-06-23 00:09:42 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantInterpolation:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 279
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantRegexpEscape:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 968
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantSelf:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 53
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RescueModifier:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 123
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/SingleArgumentDig:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 63
|
2021-03-08 18:12:59 +05:30
|
|
|
# Configuration parameters: AllowModifier.
|
|
|
|
Style/SoleNestedConditional:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 120
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: .
|
|
|
|
# SupportedStyles: use_perl_names, use_english_names
|
|
|
|
Style/SpecialGlobalVars:
|
|
|
|
EnforcedStyle: use_perl_names
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 562
|
2021-01-29 00:20:46 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/StringConcatenation:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 109
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
|
|
Style/StringLiteralsInInterpolation:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
# Offense count: 293
|
2019-05-05 18:10:48 +05:30
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
|
|
|
# IgnoredMethods: respond_to, define_method
|
|
|
|
Style/SymbolProc:
|
|
|
|
Enabled: false
|