debian-mirror-gitlab/.rubocop_todo.yml

663 lines
20 KiB
YAML
Raw Normal View History

2019-05-05 18:10:48 +05:30
# This configuration was generated by
# `rubocop --auto-gen-config`
2020-03-13 15:44:24 +05:30
# on 2020-01-16 11:53:06 -0800 using RuboCop version 0.74.0.
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.
2020-03-13 15:44:24 +05:30
# Offense count: 299
# Cop supports --auto-correct.
2019-05-05 18:10:48 +05:30
Capybara/CurrentPathExpectation:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 1432
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
Layout/AlignArguments:
2019-05-05 18:10:48 +05:30
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 1630
2019-07-31 22:56:46 +05:30
# Cop supports --auto-correct.
2020-03-13 15:44:24 +05:30
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
2019-07-31 22:56:46 +05:30
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/AlignHash:
Enabled: false
# Offense count: 13
# Cop supports --auto-correct.
Layout/ClosingHeredocIndentation:
Exclude:
- 'app/graphql/mutations/merge_requests/set_wip.rb'
- 'ee/db/geo/migrate/20180322062741_migrate_ci_job_artifacts_to_separate_registry.rb'
- 'ee/lib/gitlab/geo/health_check.rb'
- 'lib/gitlab/background_migration/populate_untracked_uploads.rb'
- 'spec/features/merge_request/user_sees_diff_spec.rb'
- 'spec/lib/gitlab/asciidoc_spec.rb'
- 'spec/lib/gitlab/checks/project_moved_spec.rb'
- 'spec/rubocop/cop/active_record_association_reload_spec.rb'
- 'spec/services/task_list_toggle_service_spec.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 9
2019-07-31 22:56:46 +05:30
# Cop supports --auto-correct.
Layout/ClosingParenthesisIndentation:
Exclude:
- 'db/post_migrate/20180704145007_update_project_indexes.rb'
- 'ee/db/geo/migrate/20180405074130_add_partial_index_project_repository_verification.rb'
- 'spec/services/issues/resolve_discussions_spec.rb'
- 'spec/services/projects/update_service_spec.rb'
- 'spec/support/helpers/stub_object_storage.rb'
- 'spec/workers/remove_unreferenced_lfs_objects_worker_spec.rb'
# Offense count: 69
# Cop supports --auto-correct.
Layout/EmptyLinesAroundArguments:
Exclude:
- 'app/models/concerns/discussion_on_diff.rb'
- 'app/models/concerns/resolvable_discussion.rb'
- 'app/models/diff_discussion.rb'
- 'app/models/discussion.rb'
- 'ee/app/helpers/license_helper.rb'
- 'ee/spec/models/geo/project_registry_spec.rb'
- 'lib/banzai/pipeline/broadcast_message_pipeline.rb'
- 'lib/banzai/pipeline/gfm_pipeline.rb'
- 'lib/banzai/pipeline/single_line_pipeline.rb'
- 'spec/features/markdown/copy_as_gfm_spec.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 305
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
2019-07-31 22:56:46 +05:30
Layout/IndentFirstArrayElement:
2019-05-05 18:10:48 +05:30
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 1005
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
2019-07-31 22:56:46 +05:30
Layout/IndentFirstHashElement:
2019-05-05 18:10:48 +05:30
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 4
2019-07-31 22:56:46 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: consistent, align_parentheses
Layout/IndentFirstParameter:
Exclude:
- 'lib/gitlab/cross_project_access.rb'
- 'lib/gitlab/data_builder/push.rb'
- 'spec/support/helpers/repo_helpers.rb'
- 'spec/support/helpers/stub_object_storage.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 54
2019-07-31 22:56:46 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 10
2019-07-31 22:56:46 +05:30
# Cop supports --auto-correct.
Layout/RescueEnsureAlignment:
Exclude:
- 'app/models/blob_viewer/dependency_manager.rb'
- 'app/models/project.rb'
- 'app/services/prometheus/proxy_service.rb'
- 'app/workers/delete_stored_files_worker.rb'
- 'app/workers/reactive_caching_worker.rb'
- 'config/initializers/1_settings.rb'
- 'config/initializers/trusted_proxies.rb'
- 'lib/gitlab/background_migration/archive_legacy_traces.rb'
- 'lib/gitlab/highlight.rb'
- 'lib/tasks/gitlab/lfs/migrate.rake'
2020-03-13 15:44:24 +05:30
# Offense count: 522
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
2020-03-13 15:44:24 +05:30
# Offense count: 796
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideBlockBraces:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 315
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
2019-07-31 22:56:46 +05:30
# Offense count: 19
2019-05-05 18:10:48 +05:30
Lint/DuplicateMethods:
Exclude:
- 'app/models/commit.rb'
- 'app/models/note.rb'
- 'lib/bitbucket/representation/repo.rb'
- 'lib/declarative_policy/base.rb'
2019-07-31 22:56:46 +05:30
- 'lib/gitlab/auth/ldap/person.rb'
- 'lib/gitlab/auth/o_auth/user.rb'
2019-05-05 18:10:48 +05:30
- 'lib/gitlab/ci/build/artifacts/metadata/entry.rb'
- 'lib/gitlab/cycle_analytics/base_event_fetcher.rb'
- 'lib/gitlab/diff/formatters/base_formatter.rb'
- 'lib/gitlab/git/blob.rb'
- 'lib/gitlab/git/repository.rb'
- 'lib/gitlab/git/tree.rb'
- 'lib/gitlab/git/wiki_page.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 122
2019-05-05 18:10:48 +05:30
# Configuration parameters: MaximumRangeSize.
Lint/MissingCopEnableDirective:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 6
2019-05-05 18:10:48 +05:30
Lint/UriEscapeUnescape:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/models/project_services/drone_ci_service.rb'
- 'spec/lib/google_api/auth_spec.rb'
- 'spec/requests/api/files_spec.rb'
2019-07-31 22:56:46 +05:30
2020-03-13 15:44:24 +05:30
# Offense count: 165
2019-07-31 22:56:46 +05:30
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
2019-05-05 18:10:48 +05:30
# URISchemes: http, https
Metrics/LineLength:
2019-07-31 22:56:46 +05:30
Max: 176
2020-03-13 15:44:24 +05:30
# Offense count: 143
2019-07-31 22:56:46 +05:30
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# 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
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'
2020-03-13 15:44:24 +05:30
# Offense count: 211
2019-05-05 18:10:48 +05:30
# Configuration parameters: Blacklist.
2019-07-31 22:56:46 +05:30
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
2019-05-05 18:10:48 +05:30
Naming/HeredocDelimiterNaming:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 139
2019-07-31 22:56:46 +05:30
# Cop supports --auto-correct.
# Configuration parameters: PreferredName.
Naming/RescuedExceptionsVariableName:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 9913
2019-05-05 18:10:48 +05:30
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 879
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
2020-03-13 15:44:24 +05:30
# Offense count: 660
2019-05-05 18:10:48 +05:30
RSpec/ExpectInHook:
Enabled: false
2019-07-31 22:56:46 +05:30
# Offense count: 10
# Cop supports --auto-correct.
2019-05-05 18:10:48 +05:30
# Configuration parameters: EnforcedStyle.
# SupportedStyles: it_behaves_like, it_should_behave_like
RSpec/ItBehavesLike:
Exclude:
- 'spec/lib/gitlab/git/commit_spec.rb'
- 'spec/lib/gitlab/git/repository_spec.rb'
- 'spec/services/notification_service_spec.rb'
2019-07-31 22:56:46 +05:30
# Offense count: 68
# Cop supports --auto-correct.
2019-05-05 18:10:48 +05:30
RSpec/LetBeforeExamples:
Exclude:
- 'spec/lib/banzai/filter/issue_reference_filter_spec.rb'
- 'spec/lib/banzai/filter/user_reference_filter_spec.rb'
- 'spec/lib/gitlab/email/handler/create_issue_handler_spec.rb'
- 'spec/lib/gitlab/email/handler/create_merge_request_handler_spec.rb'
- 'spec/lib/gitlab/email/handler/create_note_handler_spec.rb'
- 'spec/models/commit_range_spec.rb'
- 'spec/models/milestone_spec.rb'
- 'spec/models/project_services/packagist_service_spec.rb'
- 'spec/rubocop/cop/migration/update_column_in_batches_spec.rb'
- 'spec/serializers/pipeline_details_entity_spec.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 2018
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
2020-03-13 15:44:24 +05:30
# Offense count: 69
2019-05-05 18:10:48 +05:30
RSpec/RepeatedExample:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 584
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
2020-03-13 15:44:24 +05:30
# Offense count: 380
2019-05-05 18:10:48 +05:30
RSpec/ScatteredLet:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 8
2019-05-05 18:10:48 +05:30
RSpec/ScatteredSetup:
Exclude:
- 'spec/lib/gitlab/bitbucket_import/importer_spec.rb'
- 'spec/requests/api/jobs_spec.rb'
- 'spec/services/projects/create_service_spec.rb'
2019-07-31 22:56:46 +05:30
# Offense count: 4
2019-05-05 18:10:48 +05:30
RSpec/VoidExpect:
Exclude:
- 'spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb'
- 'spec/models/ci/group_spec.rb'
- 'spec/models/ci/runner_spec.rb'
- 'spec/services/users/destroy_service_spec.rb'
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'
- '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'
2019-07-31 22:56:46 +05:30
# Offense count: 8
# Cop supports --auto-correct.
Rails/BelongsTo:
Exclude:
- 'app/models/deployment.rb'
- 'app/models/environment.rb'
- 'ee/app/models/prometheus_alert.rb'
- 'ee/app/models/prometheus_alert_event.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 151
2019-05-05 18:10:48 +05:30
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/CreateTableWithTimestamps:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 266
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
2020-03-13 15:44:24 +05:30
# Offense count: 211
2019-05-05 18:10:48 +05:30
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 431
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
2020-03-13 15:44:24 +05:30
# Offense count: 103
2019-05-05 18:10:48 +05:30
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 51
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
# Offense count: 4
# 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'
- 'ee/app/helpers/license_helper.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 35
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
2020-03-13 15:44:24 +05:30
# Offense count: 868
2019-07-31 22:56:46 +05:30
# Configuration parameters: Blacklist, Whitelist.
2019-05-05 18:10:48 +05:30
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
Rails/SkipsModelValidations:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 8
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
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'
2019-07-31 22:56:46 +05:30
# Offense count: 34
# Configuration parameters: EnforcedStyle.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 127
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
Enabled: false
# Offense count: 5
Style/CommentedKeyword:
Exclude:
- 'lib/tasks/gitlab/backup.rake'
- 'spec/tasks/gitlab/backup_rake_spec.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 6
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'
- 'lib/gitlab/import_export/relation_factory.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 41
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty, nil, both
Style/EmptyElse:
Enabled: false
2019-07-31 22:56:46 +05:30
# Offense count: 11
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/EmptyLambdaParameter:
Exclude:
- 'app/models/ci/build.rb'
- 'app/models/ci/runner.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 8
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/EmptyLiteral:
Exclude:
- 'lib/gitlab/fogbugz_import/importer.rb'
- 'lib/gitlab/git/diff_collection.rb'
- 'lib/gitlab/gitaly_client.rb'
- 'spec/helpers/merge_requests_helper_spec.rb'
- 'spec/lib/gitlab/workhorse_spec.rb'
- 'spec/requests/api/jobs_spec.rb'
- 'spec/support/shared_examples/chat_slash_commands_shared_examples.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 148
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 346
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 692
2019-05-05 18:10:48 +05:30
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
2019-07-31 22:56:46 +05:30
# Offense count: 27
2020-03-13 15:44:24 +05:30
# Configuration parameters: AllowIfModifier.
2019-05-05 18:10:48 +05:30
Style/IfInsideElse:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 1474
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/IfUnlessModifier:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 314
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
2020-03-13 15:44:24 +05:30
# Offense count: 17
2019-07-31 22:56:46 +05:30
Style/MethodMissingSuper:
2019-05-05 18:10:48 +05:30
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 17
2019-07-31 22:56:46 +05:30
Style/MissingRespondToMissing:
Enabled: false
# Offense count: 6
2019-05-05 18:10:48 +05:30
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/project_tree_restorer_spec.rb'
- 'spec/lib/gitlab/import_export/version_checker_spec.rb'
2019-07-31 22:56:46 +05:30
# Offense count: 4
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/MultilineIfModifier:
Exclude:
- 'app/helpers/snippets_helper.rb'
- 'app/models/project_wiki.rb'
- 'app/services/ci/process_pipeline_service.rb'
- 'lib/api/commit_statuses.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 34
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
Style/NestedParenthesizedCalls:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 25
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
2020-03-13 15:44:24 +05:30
# Offense count: 71
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
2020-03-13 15:44:24 +05:30
# Offense count: 234
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
2019-07-31 22:56:46 +05:30
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
2019-05-05 18:10:48 +05:30
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 106
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/ParallelAssignment:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 1692
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false
# Offense count: 15
# Cop supports --auto-correct.
Style/PerlBackrefs:
Exclude:
- 'app/controllers/projects/application_controller.rb'
- 'app/helpers/submodule_helper.rb'
- 'lib/backup/manager.rb'
- 'lib/banzai/filter/abstract_reference_filter.rb'
- 'lib/banzai/filter/autolink_filter.rb'
- 'lib/banzai/filter/emoji_filter.rb'
- 'lib/banzai/filter/gollum_tags_filter.rb'
- 'lib/expand_variables.rb'
- 'lib/gitlab/diff/highlight.rb'
- 'lib/gitlab/search_results.rb'
- 'lib/gitlab/sherlock/query.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 165
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 221
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/RedundantFreeze:
Enabled: false
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/concerns/issuable_actions.rb'
- 'app/controllers/groups/application_controller.rb'
- 'app/controllers/omniauth_callbacks_controller.rb'
- 'app/controllers/profiles/keys_controller.rb'
- 'app/controllers/projects/application_controller.rb'
- 'app/services/access_token_validation_service.rb'
- 'lib/gitlab/utils.rb'
- 'lib/google_api/auth.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 739
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/RedundantSelf:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 80
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
2019-07-31 22:56:46 +05:30
Enabled: false
2019-05-05 18:10:48 +05:30
2020-03-13 15:44:24 +05:30
# Offense count: 42
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/RescueModifier:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 237
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 4
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/SelfAssignment:
Exclude:
- 'app/models/concerns/bulk_member_access_load.rb'
- 'app/serializers/base_serializer.rb'
- 'spec/support/import_export/configuration_helper.rb'
# Offense count: 50
# Cop supports --auto-correct.
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
Exclude:
- 'lib/gitlab/ci/ansi2html.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 94
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
2020-03-13 15:44:24 +05:30
# Offense count: 75
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation:
Enabled: false
2020-03-13 15:44:24 +05:30
# Offense count: 216
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
# IgnoredMethods: respond_to, define_method
Style/SymbolProc:
Enabled: false
2019-07-31 22:56:46 +05:30
# Offense count: 7
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Exclude:
- 'app/finders/projects_finder.rb'
- 'app/helpers/namespaces_helper.rb'
- 'lib/gitlab/ci/build/artifacts/metadata/entry.rb'
- 'spec/requests/api/pipeline_schedules_spec.rb'
- 'spec/support/capybara.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 8
2019-07-31 22:56:46 +05:30
# Cop supports --auto-correct.
Style/UnneededCondition:
Exclude:
- 'app/helpers/button_helper.rb'
- 'app/helpers/environment_helper.rb'
- 'app/models/project.rb'
- 'app/services/issuable/clone/base_service.rb'
- 'lib/gitlab/email/message/repository_push.rb'
- 'spec/lib/rspec_flaky/flaky_example_spec.rb'
2020-03-13 15:44:24 +05:30
# Offense count: 99
2019-05-05 18:10:48 +05:30
# Cop supports --auto-correct.
Style/UnneededInterpolation:
Enabled: false