2016-06-29 16:00:22 +00:00
|
|
|
# This configuration was generated by
|
2020-11-05 18:08:48 +00:00
|
|
|
# `rubocop --auto-gen-config`
|
2020-12-17 18:10:14 +00:00
|
|
|
# on 2020-12-14 18:35:57 UTC using RuboCop version 0.89.1.
|
2016-06-29 16:00:22 +00: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 18:10:14 +00:00
|
|
|
# Offense count: 313
|
2020-01-20 09:08:32 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
Capybara/CurrentPathExpectation:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 216
|
2020-11-05 18:08:48 +00:00
|
|
|
Capybara/VisibilityMatcher:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 1
|
|
|
|
Gitlab/PolicyRuleBoolean:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/app/policies/ee/identity_provider_policy.rb'
|
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
Graphql/IDType:
|
|
|
|
Exclude:
|
|
|
|
- 'app/graphql/mutations/boards/issues/issue_move_list.rb'
|
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
Graphql/ResolverType:
|
|
|
|
Exclude:
|
|
|
|
- 'app/graphql/resolvers/base_resolver.rb'
|
|
|
|
- 'app/graphql/resolvers/ci/jobs_resolver.rb'
|
|
|
|
- 'app/graphql/resolvers/ci/pipeline_stages_resolver.rb'
|
|
|
|
- 'app/graphql/resolvers/users/group_count_resolver.rb'
|
|
|
|
- 'ee/app/graphql/resolvers/vulnerabilities_base_resolver.rb'
|
|
|
|
|
|
|
|
# Offense count: 2002
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
2020-05-28 21:08:22 +00:00
|
|
|
Layout/ArgumentAlignment:
|
2019-05-03 04:40:40 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 50
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
|
|
|
# AllowedMethods: alias_method, public, protected, private
|
|
|
|
Layout/EmptyLinesAroundAttributeAccessor:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 694
|
2017-07-09 15:05:21 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
2017-07-09 15:05:21 +00:00
|
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
2020-05-28 21:08:22 +00:00
|
|
|
Layout/FirstArrayElementIndentation:
|
2017-07-09 15:05:21 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 1621
|
2017-07-09 15:05:21 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
2017-07-09 15:05:21 +00:00
|
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
2020-05-28 21:08:22 +00:00
|
|
|
Layout/FirstHashElementIndentation:
|
2019-05-03 04:40:40 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 2979
|
2020-05-28 21:08:22 +00:00
|
|
|
# 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
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 72
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
|
|
# URISchemes: http, https
|
|
|
|
Layout/LineLength:
|
|
|
|
Max: 1313
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 162
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: aligned, indented
|
|
|
|
Layout/MultilineOperationIndentation:
|
2017-07-09 15:05:21 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 52
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/SpaceAroundMethodCallOperator:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 737
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2017-07-09 15:05:21 +00:00
|
|
|
# SupportedStyles: require_no_space, require_space
|
|
|
|
Layout/SpaceInLambdaLiteral:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 1160
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
2017-07-09 15:05:21 +00:00
|
|
|
# SupportedStyles: space, no_space
|
|
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
|
|
Layout/SpaceInsideBlockBraces:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 539
|
2017-07-09 15:05:21 +00:00
|
|
|
# Cop supports --auto-correct.
|
2019-05-03 04:40:40 +00:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: space, no_space
|
2017-07-09 15:05:21 +00:00
|
|
|
Layout/SpaceInsideParens:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 19
|
2020-11-05 18:08:48 +00:00
|
|
|
Lint/BinaryOperatorWithIdenticalOperands:
|
|
|
|
Exclude:
|
|
|
|
- 'app/finders/concerns/time_frame_filter.rb'
|
|
|
|
- '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/danger/sidekiq_queues_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'
|
|
|
|
|
|
|
|
# Offense count: 9
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Lint/DeprecatedOpenSSLConstant:
|
|
|
|
Exclude:
|
|
|
|
- 'app/services/clusters/kubernetes/configure_istio_ingress_service.rb'
|
|
|
|
- 'ee/lib/gitlab/geo/oauth/logout_state.rb'
|
|
|
|
- 'lib/gitlab/conan_token.rb'
|
|
|
|
- 'lib/gitlab/gitaly_client.rb'
|
|
|
|
- 'lib/gitlab/kubernetes/helm/v2/certificate.rb'
|
|
|
|
- 'spec/lib/gitlab/conan_token_spec.rb'
|
|
|
|
- 'spec/services/pages_domains/obtain_lets_encrypt_certificate_service_spec.rb'
|
|
|
|
- 'spec/support/helpers/smime_helper.rb'
|
|
|
|
- 'spec/support/shared_contexts/requests/api/conan_packages_shared_context.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 183
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: MaximumRangeSize.
|
|
|
|
Lint/MissingCopEnableDirective:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 14
|
|
|
|
Lint/MixedRegexpCaptureTypes:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/alert_management/alert.rb'
|
|
|
|
- 'app/models/project_services/ewm_service.rb'
|
|
|
|
- '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/inline_diff.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'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Lint/NonDeterministicRequireOrder:
|
|
|
|
Exclude:
|
|
|
|
- 'rubocop/rubocop.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 135
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Lint/RedundantCopDisableDirective:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 1
|
|
|
|
Lint/SelfAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/lib/gitlab/search_context/builder_spec.rb'
|
|
|
|
|
2020-05-28 21:08:22 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Lint/SendWithMixinArgument:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/trusted_proxies.rb'
|
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
Lint/StructNewOverride:
|
|
|
|
Exclude:
|
|
|
|
- 'app/presenters/sentry_error_presenter.rb'
|
|
|
|
- 'app/serializers/environment_serializer.rb'
|
|
|
|
- 'lib/gitlab/ci/pipeline/duration.rb'
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 1
|
|
|
|
Lint/UnreachableLoop:
|
|
|
|
Exclude:
|
|
|
|
- 'qa/qa/runtime/feature.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 7
|
2020-11-05 18:08:48 +00:00
|
|
|
# Configuration parameters: IgnoredMethods.
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 59
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 15
|
2020-11-05 18:08:48 +00:00
|
|
|
# Configuration parameters: IgnoredMethods.
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Max: 25
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 14
|
2020-11-05 18:08:48 +00:00
|
|
|
# Configuration parameters: IgnoredMethods.
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
Max: 25
|
|
|
|
|
|
|
|
# Offense count: 1
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Migration/DepartmentName:
|
2020-11-05 18:08:48 +00:00
|
|
|
Exclude:
|
|
|
|
- 'app/models/commit.rb'
|
2019-05-03 04:40:40 +00:00
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 181
|
2020-11-05 18:08:48 +00:00
|
|
|
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
2019-05-03 04:40:40 +00:00
|
|
|
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
|
|
Naming/FileName:
|
|
|
|
Enabled: false
|
2018-01-18 17:45:05 +00:00
|
|
|
|
2017-09-19 15:25:42 +00:00
|
|
|
# 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'
|
2018-03-29 09:47:54 +00:00
|
|
|
- 'spec/support/helpers/repo_helpers.rb'
|
|
|
|
- 'spec/support/helpers/seed_repo.rb'
|
2017-09-19 15:25:42 +00:00
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 303
|
2020-05-28 21:08:22 +00:00
|
|
|
# Configuration parameters: ForbiddenDelimiters.
|
|
|
|
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
2017-09-19 15:25:42 +00:00
|
|
|
Naming/HeredocDelimiterNaming:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-05-28 21:08:22 +00:00
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
2020-11-05 18:08:48 +00:00
|
|
|
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
2020-05-28 21:08:22 +00:00
|
|
|
Naming/MethodParameterName:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/diff/inline_diff.rb'
|
|
|
|
- 'spec/support/helpers/key_generator_helper.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 203
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: PreferredName.
|
|
|
|
Naming/RescuedExceptionsVariableName:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/AncestorsInclude:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/ci/config/extendable/entry.rb'
|
|
|
|
|
|
|
|
# Offense count: 28
|
|
|
|
# Configuration parameters: MinSize.
|
|
|
|
Performance/CollectionLiteralInLoop:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 18
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/Count:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/groups_helper.rb'
|
|
|
|
- 'app/services/merge_requests/add_context_service.rb'
|
|
|
|
- 'ee/lib/gitlab/graphql/aggregations/epics/epic_node.rb'
|
|
|
|
- 'lib/gitlab/sidekiq_status.rb'
|
|
|
|
- 'spec/lib/gitlab/conflict/file_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/git/tree_spec.rb'
|
|
|
|
- 'spec/models/ci/build_spec.rb'
|
2020-11-05 18:08:48 +00:00
|
|
|
- 'spec/support_specs/helpers/active_record/query_recorder_spec.rb'
|
2020-05-28 21:08:22 +00:00
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 14
|
2020-11-05 18:08:48 +00:00
|
|
|
# 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'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 5
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: SafeMultiline.
|
|
|
|
Performance/DeleteSuffix:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/submodule_helper.rb'
|
|
|
|
- 'app/workers/concerns/application_worker.rb'
|
|
|
|
- 'ee/app/models/geo/upload_registry.rb'
|
|
|
|
- 'ee/app/workers/geo/file_download_dispatch_worker/attachment_job_finder.rb'
|
|
|
|
- 'lib/sentry/client/issue.rb'
|
|
|
|
|
|
|
|
# Offense count: 13
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/Detect:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/spec/controllers/projects/dependencies_controller_spec.rb'
|
2020-11-05 18:08:48 +00:00
|
|
|
- 'ee/spec/requests/api/dependencies_spec.rb'
|
|
|
|
- 'qa/qa/runtime/feature.rb'
|
2020-05-28 21:08:22 +00:00
|
|
|
- 'spec/lib/gitlab/git/tree_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/import_export/project/tree_restorer_spec.rb'
|
|
|
|
- 'spec/models/event_spec.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 18
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AutoCorrect.
|
|
|
|
Performance/StringInclude:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/groups_helper.rb'
|
|
|
|
- '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'
|
|
|
|
|
|
|
|
# Offense count: 9
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Performance/Sum:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/application_setting_implementation.rb'
|
|
|
|
- 'app/models/ci/pipeline.rb'
|
|
|
|
- 'ee/spec/lib/gitlab/elastic/bulk_indexer_spec.rb'
|
|
|
|
- 'lib/declarative_policy/rule.rb'
|
|
|
|
- 'lib/declarative_policy/runner.rb'
|
|
|
|
- 'lib/gitlab/sherlock/transaction.rb'
|
|
|
|
- 'lib/gitlab/usage_data.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 14469
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Prefixes.
|
|
|
|
# Prefixes: when, with, without
|
|
|
|
RSpec/ContextWording:
|
2017-07-09 15:05:21 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# 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'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 1355
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
2018-01-18 17:45:05 +00:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: method_call, block
|
|
|
|
RSpec/ExpectChange:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 903
|
2017-09-19 15:25:42 +00:00
|
|
|
RSpec/ExpectInHook:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 16472
|
2020-11-05 18:08:48 +00:00
|
|
|
# Configuration parameters: AllowSubject.
|
|
|
|
RSpec/MultipleMemoizedHelpers:
|
|
|
|
Max: 40
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 2344
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
2020-01-20 09:08:32 +00:00
|
|
|
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
2017-09-19 15:25:42 +00:00
|
|
|
# SupportedStyles: inflected, explicit
|
|
|
|
RSpec/PredicateMatcher:
|
2017-02-22 18:43:48 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 112
|
2020-11-05 18:08:48 +00:00
|
|
|
RSpec/RepeatedExampleGroupBody:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 219
|
2020-11-05 18:08:48 +00:00
|
|
|
RSpec/RepeatedExampleGroupDescription:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 655
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: and_return, block
|
|
|
|
RSpec/ReturnFromStub:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 587
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-04-08 00:23:13 +00:00
|
|
|
RSpec/ScatteredLet:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 6
|
2017-02-22 18:43:48 +00:00
|
|
|
RSpec/ScatteredSetup:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'spec/requests/api/jobs_spec.rb'
|
2017-02-22 18:43:48 +00:00
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 10
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: symbols, strings
|
|
|
|
RSpec/VariableDefinition:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/initializers/mail_encoding_patch_spec.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 24
|
2020-11-05 18:08:48 +00:00
|
|
|
# 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'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 25
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/ActiveRecordCallbacksOrder:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-01-20 09:08:32 +00: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'
|
|
|
|
- 'ee/spec/helpers/ee/services_helper_spec.rb'
|
|
|
|
- '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-05-28 21:08:22 +00:00
|
|
|
# Offense count: 3
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/BelongsTo:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/deployment.rb'
|
|
|
|
- 'app/models/environment.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 88
|
2020-05-28 21:08:22 +00:00
|
|
|
# Configuration parameters: Database, Include.
|
|
|
|
# SupportedDatabases: mysql, postgresql
|
|
|
|
# Include: db/migrate/*.rb
|
|
|
|
Rails/BulkChangeTable:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 153
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/ContentTag:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 292
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: db/migrate/*.rb
|
|
|
|
Rails/CreateTableWithTimestamps:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 343
|
2019-05-03 04:40:40 +00:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: slashes, arguments
|
2017-02-22 18:43:48 +00:00
|
|
|
Rails/FilePath:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# 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'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 343
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 538
|
2019-05-03 04:40:40 +00:00
|
|
|
# Configuration parameters: Include.
|
2020-01-20 09:08:32 +00:00
|
|
|
# Include: app/helpers/**/*.rb
|
|
|
|
Rails/HelperInstanceVariable:
|
|
|
|
Enabled: false
|
2019-05-03 04:40:40 +00:00
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 17
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/IndexBy:
|
|
|
|
Exclude:
|
2020-11-05 18:08:48 +00:00
|
|
|
- 'app/graphql/types/design_management/design_fields.rb'
|
2020-05-28 21:08:22 +00:00
|
|
|
- 'app/models/ci/pipeline.rb'
|
|
|
|
- 'app/services/ci/pipeline_processing/atomic_processing_service/status_collection.rb'
|
|
|
|
- 'ee/app/services/projects/update_mirror_service.rb'
|
|
|
|
- 'ee/app/services/security/store_report_service.rb'
|
|
|
|
- 'ee/lib/ee/gitlab/auth/ldap/sync/group.rb'
|
|
|
|
- 'ee/lib/ee/gitlab/background_migration/backfill_version_data_from_gitaly.rb'
|
|
|
|
- 'ee/lib/gitlab/analytics/type_of_work/tasks_by_type.rb'
|
|
|
|
- 'ee/lib/gitlab/elastic/document_reference.rb'
|
|
|
|
- 'ee/lib/gitlab/group_plans_preloader.rb'
|
2020-11-05 18:08:48 +00:00
|
|
|
- 'lib/gitlab/danger/sidekiq_queues.rb'
|
2020-05-28 21:08:22 +00:00
|
|
|
- 'lib/gitlab/database/count/reltuples_count_strategy.rb'
|
|
|
|
- 'lib/gitlab/language_detection.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 45
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/IndexWith:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 1
|
|
|
|
Rails/Inquiry:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/helpers/labels_helper_spec.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 115
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/InverseOf:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 60
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/controllers/**/*.rb
|
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-05-28 21:08:22 +00:00
|
|
|
# Offense count: 3
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/LinkToBlank:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/projects_helper.rb'
|
|
|
|
- 'app/helpers/wiki_helper.rb'
|
|
|
|
- 'ee/app/helpers/ee/user_callouts_helper.rb'
|
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/mailers/**/*.rb
|
|
|
|
Rails/MailerName:
|
|
|
|
Exclude:
|
|
|
|
- 'app/mailers/notify.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 49
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/NegateInclude:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 42
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/Pick:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 119
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/Pluck:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 39
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
2020-01-20 09:08:32 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: **/Rakefile, **/*.rake
|
|
|
|
Rails/RakeEnvironment:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 56
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/RedundantForeignKey:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 1
|
2020-11-05 18:08:48 +00:00
|
|
|
Rails/RenderInline:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/app/controllers/sitemap_controller.rb'
|
|
|
|
|
|
|
|
# Offense count: 4
|
2020-08-19 06:10:04 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2020-11-05 18:08:48 +00:00
|
|
|
# SupportedStyles: conservative, aggressive
|
|
|
|
Rails/ShortI18n:
|
2020-08-19 06:10:04 +00:00
|
|
|
Exclude:
|
2020-11-05 18:08:48 +00:00
|
|
|
- 'app/models/project_services/chat_message/pipeline_message.rb'
|
|
|
|
- 'app/uploaders/content_type_whitelist.rb'
|
|
|
|
- 'spec/views/shared/runners/show.html.haml_spec.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 1064
|
2020-11-05 18:08:48 +00: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
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 245
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/SquishedSQLHeredocs:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 38
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: exists, where
|
|
|
|
Rails/WhereExists:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 21
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Rails/WhereNot:
|
|
|
|
Enabled: false
|
2020-08-19 06:10:04 +00:00
|
|
|
|
2020-01-20 09:08:32 +00:00
|
|
|
# Offense count: 8
|
2017-02-22 22:39:43 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
Security/YAMLLoad:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/redis/wrapper.rb'
|
|
|
|
- 'lib/system_check/incoming_email/imap_authentication_check.rb'
|
|
|
|
- 'spec/config/mail_room_spec.rb'
|
|
|
|
- 'spec/initializers/secret_token_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/prometheus/additional_metrics_parser_spec.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 247
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: separated, grouped
|
|
|
|
Style/AccessorGrouping:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 13
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ArrayCoercion:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/admin/ci/variables_controller.rb'
|
|
|
|
- 'app/controllers/groups/variables_controller.rb'
|
|
|
|
- 'app/controllers/import/bulk_imports_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/blob_verification_secondary_service.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'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 184
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2017-02-22 22:39:43 +00:00
|
|
|
# SupportedStyles: percent_q, bare_percent
|
|
|
|
Style/BarePercentLiterals:
|
|
|
|
Enabled: false
|
2017-01-05 22:03:08 +00:00
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 6
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/BisectedAttrAccessor:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/system_check/base_check.rb'
|
|
|
|
- 'qa/qa/resource/api_fabricator.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 36
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/CaseLikeIf:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
|
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
|
|
Style/ConditionalAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/database.rb'
|
|
|
|
|
2020-05-28 21:08:22 +00:00
|
|
|
# Offense count: 5
|
2017-09-19 15:25:42 +00:00
|
|
|
# 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'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 54
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2016-07-03 20:18:39 +00:00
|
|
|
# SupportedStyles: empty, nil, both
|
|
|
|
Style/EmptyElse:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 198
|
2017-01-05 22:03:08 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
2017-01-05 22:03:08 +00:00
|
|
|
# SupportedStyles: compact, expanded
|
|
|
|
Style/EmptyMethod:
|
2016-07-13 18:39:14 +00:00
|
|
|
Enabled: false
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ExpandPathArguments:
|
|
|
|
Exclude:
|
|
|
|
- 'cable/config.ru'
|
|
|
|
- 'config.ru'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 114
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ExplicitBlockArgument:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 542
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2016-07-03 20:18:39 +00:00
|
|
|
# SupportedStyles: format, sprintf, percent
|
|
|
|
Style/FormatString:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 59
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/GlobalStdStream:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 857
|
2016-07-03 20:18:39 +00:00
|
|
|
# Configuration parameters: MinBodyLength.
|
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 92
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: braces, no_braces
|
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 60
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/HashEachMethods:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 34
|
2020-01-20 09:08:32 +00:00
|
|
|
# Configuration parameters: AllowIfModifier.
|
2016-07-03 20:18:39 +00:00
|
|
|
Style/IfInsideElse:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 1856
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 439
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
2016-07-03 20:18:39 +00:00
|
|
|
# SupportedStyles: line_count_dependent, lambda, literal
|
|
|
|
Style/Lambda:
|
2016-07-13 18:39:14 +00:00
|
|
|
Enabled: false
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 18
|
2019-05-03 04:40:40 +00:00
|
|
|
Style/MissingRespondToMissing:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 36
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
2016-07-03 20:18:39 +00:00
|
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
|
|
Style/Next:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 98
|
2016-06-29 16:00:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedOctalStyle.
|
2016-06-29 16:00:22 +00:00
|
|
|
# SupportedOctalStyles: zero_with_o, zero_only
|
|
|
|
Style/NumericLiteralPrefix:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
2017-02-22 00:04:05 +00:00
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 136
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ParallelAssignment:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 2557
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: PreferredDelimiters.
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 251
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2016-07-03 20:18:39 +00:00
|
|
|
# SupportedStyles: compact, exploded
|
|
|
|
Style/RaiseArgs:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 68
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantAssignment:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 26
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: SafeForConstants.
|
|
|
|
Style/RedundantFetchBlock:
|
|
|
|
Exclude:
|
|
|
|
- 'app/finders/admin/projects_finder.rb'
|
|
|
|
- 'lib/gitlab/diff/file.rb'
|
|
|
|
- 'spec/lib/gitlab/json_cache_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/metrics/dashboard/cache_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/null_request_store_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/safe_request_store_spec.rb'
|
|
|
|
|
|
|
|
# Offense count: 26
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantFileExtensionInRequire:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 272
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantFreeze:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 179
|
2020-05-28 21:08:22 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantInterpolation:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 9
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantRegexpCharacterClass:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/concerns/taskable.rb'
|
|
|
|
- 'lib/gitlab/authorized_keys.rb'
|
|
|
|
- 'lib/gitlab/fogbugz_import/repository.rb'
|
|
|
|
- 'lib/gitlab/prometheus/internal.rb'
|
|
|
|
- 'lib/gitlab/quick_actions/substitution_definition.rb'
|
|
|
|
- 'lib/gitlab/regex.rb'
|
|
|
|
- 'spec/features/merge_request/user_views_open_merge_request_spec.rb'
|
|
|
|
- 'spec/tasks/gitlab/usage_data_rake_spec.rb'
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 270
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantRegexpEscape:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 914
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantSelf:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 190
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
2016-07-03 20:18:39 +00:00
|
|
|
# SupportedStyles: slashes, percent_r, mixed
|
|
|
|
Style/RegexpLiteral:
|
2019-05-03 04:40:40 +00:00
|
|
|
Enabled: false
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2020-11-05 18:08:48 +00:00
|
|
|
# Offense count: 49
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RescueModifier:
|
2017-01-11 09:48:29 +00:00
|
|
|
Enabled: false
|
2016-10-04 11:28:01 +00:00
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 338
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: implicit, explicit
|
|
|
|
Style/RescueStandardError:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 110
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/SingleArgumentDig:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 46
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/SlicingWithRange:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 120
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: .
|
2016-07-03 20:18:39 +00:00
|
|
|
# SupportedStyles: use_perl_names, use_english_names
|
|
|
|
Style/SpecialGlobalVars:
|
|
|
|
EnforcedStyle: use_perl_names
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 532
|
2020-11-05 18:08:48 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/StringConcatenation:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 104
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
2016-07-03 20:18:39 +00:00
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
|
|
Style/StringLiteralsInInterpolation:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
2017-01-11 09:48:29 +00:00
|
|
|
|
2020-12-17 18:10:14 +00:00
|
|
|
# Offense count: 296
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
|
|
|
# IgnoredMethods: respond_to, define_method
|
|
|
|
Style/SymbolProc:
|
|
|
|
Enabled: false
|