2016-06-29 16:00:22 +00:00
|
|
|
# This configuration was generated by
|
2017-09-19 15:25:42 +00:00
|
|
|
# `rubocop --auto-gen-config`
|
2019-05-05 10:17:37 +00:00
|
|
|
# on 2019-05-04 16:01:00 +0000 using RuboCop version 0.68.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.
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 264
|
2017-09-19 15:25:42 +00:00
|
|
|
Capybara/CurrentPathExpectation:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 1097
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
|
|
Layout/AlignArguments:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 824
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
|
|
# 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/db/migrate/20160204190809_update_jenkins_service_category.rb'
|
|
|
|
- 'ee/lib/gitlab/background_migration/prune_orphaned_geo_events.rb'
|
|
|
|
- 'ee/lib/gitlab/geo/health_check.rb'
|
|
|
|
- 'lib/gitlab/background_migration/populate_untracked_uploads.rb'
|
|
|
|
- 'qa/qa/service/kubernetes_cluster.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'
|
|
|
|
|
|
|
|
# Offense count: 14
|
|
|
|
# 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'
|
|
|
|
- 'ee/db/migrate/20180308234102_add_partial_index_to_project_repository_states_checksum_columns.rb'
|
|
|
|
- 'ee/db/post_migrate/20180605213516_fix_partial_index_to_project_repository_states_checksum_columns.rb'
|
|
|
|
- 'ee/lib/ee/gitlab/usage_data.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: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: leading, trailing
|
|
|
|
Layout/DotPosition:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/concerns/relative_positioning.rb'
|
|
|
|
- 'app/models/group.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'
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 160
|
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
|
2019-05-03 04:40:40 +00:00
|
|
|
Layout/IndentFirstArrayElement:
|
2017-07-09 15:05:21 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 631
|
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
|
2019-05-03 04:40:40 +00:00
|
|
|
Layout/IndentFirstHashElement:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: consistent, align_parentheses
|
|
|
|
Layout/IndentFirstParameter:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/ci/pipeline_schedule.rb'
|
|
|
|
- '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'
|
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/LeadingBlankLines:
|
|
|
|
Exclude:
|
|
|
|
- 'app/workers/update_project_statistics_worker.rb'
|
|
|
|
- 'db/migrate/20161007073613_create_user_activities.rb'
|
|
|
|
- 'ee/spec/helpers/boards_helper_spec.rb'
|
|
|
|
- 'lib/tasks/yarn.rake'
|
|
|
|
- 'spec/javascripts/fixtures/merge_requests_diffs.rb'
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 30
|
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
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 13
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Layout/RescueEnsureAlignment:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/blob_viewer/dependency_manager.rb'
|
|
|
|
- 'app/models/ci/pipeline.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'
|
|
|
|
- 'ee/db/migrate/20151113115819_canonicalize_kerberos_identities.rb'
|
|
|
|
- 'lib/gitlab/background_migration/archive_legacy_traces.rb'
|
|
|
|
- 'lib/gitlab/highlight.rb'
|
|
|
|
- 'lib/tasks/gitlab/lfs/migrate.rake'
|
|
|
|
|
|
|
|
# Offense count: 344
|
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
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 583
|
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
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 255
|
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
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 1
|
|
|
|
Lint/DisjunctiveAssignmentInConstructor:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/uploads/base.rb'
|
|
|
|
|
|
|
|
# Offense count: 19
|
2017-09-19 15:25:42 +00:00
|
|
|
Lint/DuplicateMethods:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/commit.rb'
|
|
|
|
- 'app/models/note.rb'
|
|
|
|
- 'lib/bitbucket/representation/repo.rb'
|
|
|
|
- 'lib/declarative_policy/base.rb'
|
2019-05-03 04:40:40 +00:00
|
|
|
- 'lib/gitlab/auth/ldap/person.rb'
|
|
|
|
- 'lib/gitlab/auth/o_auth/user.rb'
|
2017-09-19 15:25:42 +00:00
|
|
|
- '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'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 2
|
2017-09-19 15:25:42 +00:00
|
|
|
Lint/InterpolationCheck:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/features/issues/filtered_search/filter_issues_spec.rb'
|
|
|
|
- 'spec/services/quick_actions/interpret_service_spec.rb'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 326
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: MaximumRangeSize.
|
|
|
|
Lint/MissingCopEnableDirective:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Whitelist.
|
|
|
|
# Whitelist: present?, blank?, presence, try, try!
|
|
|
|
Lint/SafeNavigationConsistency:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/gpg/commit.rb'
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Lint/ToJSON:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/cycle_analytics/usage_data.rb'
|
|
|
|
- 'lib/gitlab/template/base_template.rb'
|
|
|
|
|
|
|
|
# Offense count: 7
|
2017-09-19 15:25:42 +00:00
|
|
|
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-09-03 22:07:49 +00:00
|
|
|
- 'spec/requests/api/internal/base_spec.rb'
|
2017-09-19 15:25:42 +00:00
|
|
|
|
2018-01-18 17:45:05 +00:00
|
|
|
# Offense count: 1
|
2019-05-03 04:40:40 +00:00
|
|
|
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
|
|
Lint/Void:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/git/diff_collection.rb'
|
|
|
|
|
|
|
|
# Offense count: 158
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
2018-01-18 17:45:05 +00:00
|
|
|
# URISchemes: http, https
|
|
|
|
Metrics/LineLength:
|
2019-05-03 04:40:40 +00:00
|
|
|
Max: 176
|
|
|
|
|
|
|
|
# Offense count: 94
|
|
|
|
# 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
|
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
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 197
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Blacklist.
|
2019-05-03 04:40:40 +00:00
|
|
|
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
2017-09-19 15:25:42 +00:00
|
|
|
Naming/HeredocDelimiterNaming:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 125
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: PreferredName.
|
|
|
|
Naming/RescuedExceptionsVariableName:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 7081
|
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
|
|
|
|
|
2019-05-04 13:17:00 +00:00
|
|
|
# Offense count: 407
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-04-08 00:23:13 +00:00
|
|
|
RSpec/EmptyLineAfterFinalLet:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 719
|
|
|
|
# Cop supports --auto-correct.
|
2018-01-18 17:45:05 +00:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: method_call, block
|
|
|
|
RSpec/ExpectChange:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 512
|
2017-09-19 15:25:42 +00:00
|
|
|
RSpec/ExpectInHook:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 10
|
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
2017-04-08 00:23:13 +00:00
|
|
|
# SupportedStyles: it_behaves_like, it_should_behave_like
|
|
|
|
RSpec/ItBehavesLike:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'spec/lib/gitlab/git/commit_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/git/repository_spec.rb'
|
|
|
|
- 'spec/services/notification_service_spec.rb'
|
2017-04-08 00:23:13 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 3
|
2017-04-08 00:23:13 +00:00
|
|
|
RSpec/IteratedExpectation:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'spec/features/admin/admin_settings_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/gitlab_import/client_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/legacy_github_import/client_spec.rb'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 68
|
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
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'
|
2017-04-08 00:23:13 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
RSpec/MultipleSubjects:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/services/merge_requests/create_from_issue_service_spec.rb'
|
|
|
|
|
|
|
|
# Offense count: 4
|
2017-04-08 00:23:13 +00:00
|
|
|
RSpec/OverwritingSetup:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb'
|
|
|
|
- 'spec/models/email_spec.rb'
|
|
|
|
- 'spec/services/merge_requests/add_todo_when_build_fails_service_spec.rb'
|
|
|
|
- 'spec/services/notes/quick_actions_service_spec.rb'
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 1828
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Strict, EnforcedStyle.
|
|
|
|
# SupportedStyles: inflected, explicit
|
|
|
|
RSpec/PredicateMatcher:
|
2017-02-22 18:43:48 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 57
|
2017-04-08 00:23:13 +00:00
|
|
|
RSpec/RepeatedExample:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-04 13:17:00 +00:00
|
|
|
# Offense count: 474
|
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
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 188
|
2017-04-08 00:23:13 +00:00
|
|
|
RSpec/ScatteredLet:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 10
|
2017-02-22 18:43:48 +00:00
|
|
|
RSpec/ScatteredSetup:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'spec/controllers/projects/templates_controller_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/bitbucket_import/importer_spec.rb'
|
|
|
|
- 'spec/requests/api/jobs_spec.rb'
|
|
|
|
- 'spec/services/projects/create_service_spec.rb'
|
2017-02-22 18:43:48 +00:00
|
|
|
|
2017-01-05 22:03:08 +00:00
|
|
|
# Offense count: 1
|
2019-05-03 04:40:40 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-04-08 00:23:13 +00:00
|
|
|
RSpec/SharedContext:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'spec/features/admin/admin_groups_spec.rb'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 4
|
2017-09-19 15:25:42 +00:00
|
|
|
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'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# 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'
|
|
|
|
|
|
|
|
# Offense count: 80
|
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
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 222
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: slashes, arguments
|
2017-02-22 18:43:48 +00:00
|
|
|
Rails/FilePath:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 167
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/controllers/**/*.rb
|
|
|
|
Rails/IgnoredSkipActionFilterOption:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/projects/snippets_controller.rb'
|
|
|
|
- 'app/controllers/snippets_controller.rb'
|
|
|
|
|
|
|
|
# Offense count: 87
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/InverseOf:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 46
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/controllers/**/*.rb
|
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# 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'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/RedundantAllowNil:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/application_setting.rb'
|
|
|
|
|
2017-02-22 18:43:48 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: db/migrate/*.rb
|
|
|
|
Rails/ReversibleMigration:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/20160824103857_drop_unused_ci_tables.rb'
|
2017-02-22 18:43:48 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 860
|
|
|
|
# Configuration parameters: Blacklist, Whitelist.
|
2017-02-22 18:43:48 +00:00
|
|
|
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
|
|
|
|
Rails/SkipsModelValidations:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2017-09-19 15:25:42 +00:00
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: Environments.
|
|
|
|
# Environments: development, test, production
|
|
|
|
Rails/UnknownEnv:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/20171124125748_populate_missing_merge_request_statuses.rb'
|
2017-02-22 22:54:59 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 11
|
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/background_migration/deserialize_merge_request_diffs_and_commits.rb'
|
|
|
|
- '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-05-03 04:40:40 +00:00
|
|
|
# Offense count: 34
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: inline, group
|
|
|
|
Style/AccessModifierDeclarations:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 121
|
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
|
|
|
|
2017-09-19 15:25:42 +00:00
|
|
|
# Offense count: 5
|
|
|
|
Style/CommentedKeyword:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/tasks/gitlab/backup.rake'
|
|
|
|
- 'spec/tasks/gitlab/backup_rake_spec.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
Style/Dir:
|
|
|
|
Exclude:
|
|
|
|
- 'qa/qa.rb'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 7
|
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/ee_compat_check.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'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 34
|
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
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 11
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/EmptyLambdaParameter:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/ci/build.rb'
|
|
|
|
- 'app/models/ci/runner.rb'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 9
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/EmptyLiteral:
|
2017-09-19 15:25:42 +00:00
|
|
|
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/request_context_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/workhorse_spec.rb'
|
|
|
|
- 'spec/requests/api/jobs_spec.rb'
|
2018-03-29 09:47:54 +00:00
|
|
|
- 'spec/support/shared_examples/chat_slash_commands_shared_examples.rb'
|
2017-01-05 22:03:08 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 180
|
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
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 203
|
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
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 669
|
2016-07-03 20:18:39 +00:00
|
|
|
# Configuration parameters: MinBodyLength.
|
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 27
|
2016-07-03 20:18:39 +00:00
|
|
|
Style/IfInsideElse:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 1346
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 186
|
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
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 3
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/LineEndConcatenation:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'spec/lib/gitlab/gfm/reference_rewriter_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/incoming_email_spec.rb'
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2018-01-18 17:45:05 +00:00
|
|
|
# Offense count: 18
|
2019-05-03 04:40:40 +00:00
|
|
|
Style/MethodMissingSuper:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
2016-09-14 19:50:11 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 18
|
|
|
|
Style/MissingRespondToMissing:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 6
|
2017-09-19 15:25:42 +00:00
|
|
|
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-05-05 10:17:37 +00:00
|
|
|
# Offense count: 4
|
2017-01-05 22:03:08 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/MultilineIfModifier:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/snippets_helper.rb'
|
|
|
|
- 'app/models/project_wiki.rb'
|
|
|
|
- 'app/services/ci/process_pipeline_service.rb'
|
|
|
|
- 'lib/api/commit_statuses.rb'
|
2017-01-05 22:03:08 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 72
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: literals, strict
|
|
|
|
Style/MutableConstant:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# Offense count: 28
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# 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
|
2016-07-03 20:18:39 +00:00
|
|
|
Style/NestedParenthesizedCalls:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 31
|
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
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 67
|
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
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 186
|
2016-09-14 19:50:11 +00:00
|
|
|
# Cop supports --auto-correct.
|
2019-05-03 04:40:40 +00:00
|
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
2016-09-14 19:50:11 +00:00
|
|
|
# SupportedStyles: predicate, comparison
|
|
|
|
Style/NumericPredicate:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 2
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/OrAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/api/commit_statuses.rb'
|
|
|
|
- 'lib/gitlab/project_transfer.rb'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 79
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/ParallelAssignment:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 1390
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: PreferredDelimiters.
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
Enabled: false
|
|
|
|
|
2017-07-09 15:05:21 +00:00
|
|
|
# Offense count: 15
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/PerlBackrefs:
|
2017-09-19 15:25:42 +00:00
|
|
|
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'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 129
|
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
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 3
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantBegin:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'app/models/merge_request.rb'
|
|
|
|
- 'app/services/projects/import_service.rb'
|
|
|
|
- 'lib/gitlab/health_checks/base_abstract_check.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantConditional:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/system_check/helpers.rb'
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 360
|
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
|
|
|
|
2017-09-19 15:25:42 +00:00
|
|
|
# Offense count: 15
|
2017-01-05 22:03:08 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
|
|
Style/RedundantReturn:
|
2017-09-19 15:25:42 +00:00
|
|
|
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'
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 700
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/RedundantSelf:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 28
|
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
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 41
|
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
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 197
|
2017-09-19 15:25:42 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: implicit, explicit
|
|
|
|
Style/RescueStandardError:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 5
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/SelfAssignment:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'app/models/concerns/bulk_member_access_load.rb'
|
|
|
|
- 'app/serializers/base_serializer.rb'
|
|
|
|
- 'spec/support/import_export/configuration_helper.rb'
|
2016-07-03 20:18:39 +00:00
|
|
|
|
|
|
|
# Offense count: 50
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
|
|
|
Style/SingleLineMethods:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/ci/ansi2html.rb'
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 91
|
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
|
|
|
|
|
2017-09-19 15:25:42 +00:00
|
|
|
# Offense count: 1
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
Style/StderrPuts:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/rspec_profiling.rb'
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 65
|
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
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 187
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: IgnoredMethods.
|
|
|
|
# IgnoredMethods: respond_to, define_method
|
|
|
|
Style/SymbolProc:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 7
|
2016-09-14 19:50:11 +00:00
|
|
|
# Cop supports --auto-correct.
|
2017-09-19 15:25:42 +00:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
2017-01-05 22:03:08 +00:00
|
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
2016-09-14 19:50:11 +00:00
|
|
|
Style/TernaryParentheses:
|
2017-09-19 15:25:42 +00:00
|
|
|
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'
|
2016-09-14 19:50:11 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 3
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
2019-05-03 04:40:40 +00:00
|
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
|
|
Style/TrailingCommaInArguments:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
2019-05-03 04:40:40 +00:00
|
|
|
- 'spec/features/markdown/copy_as_gfm_spec.rb'
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 10
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
|
|
Exclude:
|
|
|
|
- 'ee/spec/models/project_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/diff/position_tracer_spec.rb'
|
|
|
|
- 'spec/lib/gitlab/metrics/dashboard/processor_spec.rb'
|
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/gitlab/ci/ansi2html.rb'
|
|
|
|
- 'lib/gitlab/kubernetes.rb'
|
|
|
|
|
|
|
|
# Offense count: 2
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/UnlessElse:
|
2017-09-19 15:25:42 +00:00
|
|
|
Exclude:
|
|
|
|
- 'lib/backup/manager.rb'
|
|
|
|
- 'lib/gitlab/project_search_results.rb'
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 10
|
|
|
|
# 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'
|
|
|
|
- 'app/services/prometheus/adapter_service.rb'
|
|
|
|
- 'lib/gitlab/email/message/repository_push.rb'
|
|
|
|
- 'lib/gitlab/prometheus_client.rb'
|
|
|
|
- 'spec/lib/rspec_flaky/flaky_example_spec.rb'
|
|
|
|
|
2019-05-05 10:17:37 +00:00
|
|
|
# Offense count: 73
|
2016-07-03 20:18:39 +00:00
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/UnneededInterpolation:
|
2017-02-22 17:14:22 +00:00
|
|
|
Enabled: false
|
2016-07-03 20:18:39 +00:00
|
|
|
|
2019-05-03 04:40:40 +00:00
|
|
|
# Offense count: 2
|
|
|
|
# Cop supports --auto-correct.
|
|
|
|
Style/UnneededSort:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/concerns/resolvable_discussion.rb'
|
|
|
|
- 'lib/gitlab/highlight.rb'
|