Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
17db4bf0
Commit
17db4bf0
authored
May 04, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerate Rubocop rules
parent
699e24ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
123 deletions
+5
-123
.haml-lint.yml
.haml-lint.yml
+1
-1
.rubocop_todo.yml
.rubocop_todo.yml
+4
-122
No files found.
.haml-lint.yml
View file @
17db4bf0
...
@@ -93,8 +93,8 @@ linters:
...
@@ -93,8 +93,8 @@ linters:
-
Style/WhileUntilModifier
-
Style/WhileUntilModifier
# These cops should eventually get enabled
# These cops should eventually get enabled
-
Cop/LineBreakAroundConditionalBlock
-
Cop/LineBreakAfterGuardClauses
-
Cop/LineBreakAfterGuardClauses
-
Cop/LineBreakAroundConditionalBlock
-
Cop/ProjectPathHelper
-
Cop/ProjectPathHelper
-
GitlabSecurity/PublicSend
-
GitlabSecurity/PublicSend
-
Layout/EmptyLineAfterGuardClause
-
Layout/EmptyLineAfterGuardClause
...
...
.rubocop_todo.yml
View file @
17db4bf0
# This configuration was generated by
# This configuration was generated by
# `rubocop --auto-gen-config`
# `rubocop --auto-gen-config`
# on 2019-05-0
2 07:38:39 -07
00 using RuboCop version 0.68.1.
# on 2019-05-0
4 06:02:16 +00
00 using RuboCop version 0.68.1.
# The point is for the user to remove these configuration records
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# versions of RuboCop, may require this file to be generated again.
# Offense count: 264
# Offense count: 264
# Cop supports --auto-correct.
Capybara/CurrentPathExpectation
:
Capybara/CurrentPathExpectation
:
Enabled
:
false
Enabled
:
false
# Offense count: 979
# Cop supports --auto-correct.
FactoryBot/AttributeDefinedStatically
:
Enabled
:
false
# Offense count: 18
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: create_list, n_times
FactoryBot/CreateList
:
Exclude
:
-
'
ee/spec/lib/ee/gitlab/auth/ldap/sync/groups_spec.rb'
-
'
ee/spec/models/license_spec.rb'
-
'
spec/controllers/autocomplete_controller_spec.rb'
-
'
spec/features/boards/boards_spec.rb'
-
'
spec/features/instance_statistics/cohorts_spec.rb'
-
'
spec/features/issuables/issuable_list_spec.rb'
-
'
spec/finders/issues_finder_spec.rb'
-
'
spec/models/concerns/each_batch_spec.rb'
-
'
spec/models/concerns/issuable_spec.rb'
-
'
spec/models/project_spec.rb'
-
'
spec/models/trending_project_spec.rb'
-
'
spec/requests/api/jobs_spec.rb'
-
'
spec/requests/api/pipelines_spec.rb'
# Offense count: 1096
# Offense count: 1096
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# Configuration parameters: EnforcedStyle, IndentationWidth.
...
@@ -237,12 +211,6 @@ Lint/ToJSON:
...
@@ -237,12 +211,6 @@ Lint/ToJSON:
-
'
lib/gitlab/cycle_analytics/usage_data.rb'
-
'
lib/gitlab/cycle_analytics/usage_data.rb'
-
'
lib/gitlab/template/base_template.rb'
-
'
lib/gitlab/template/base_template.rb'
# Offense count: 3
# Cop supports --auto-correct.
Lint/UnneededCopDisableDirective
:
Exclude
:
-
'
spec/factories/project_auto_devops.rb'
# Offense count: 7
# Offense count: 7
Lint/UriEscapeUnescape
:
Lint/UriEscapeUnescape
:
Exclude
:
Exclude
:
...
@@ -313,45 +281,17 @@ Performance/ReverseEach:
...
@@ -313,45 +281,17 @@ Performance/ReverseEach:
-
'
db/migrate/20190222051615_add_indexes_for_merge_request_diffs_query.rb'
-
'
db/migrate/20190222051615_add_indexes_for_merge_request_diffs_query.rb'
-
'
lib/gitlab/profiler.rb'
-
'
lib/gitlab/profiler.rb'
# Offense count: 6
RSpec/Be
:
Exclude
:
-
'
spec/controllers/projects/pipelines_controller_spec.rb'
-
'
spec/models/concerns/issuable_spec.rb'
-
'
spec/uploaders/file_uploader_spec.rb'
-
'
spec/uploaders/namespace_file_uploader_spec.rb'
# Offense count: 7050
# Offense count: 7050
# Configuration parameters: Prefixes.
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
# Prefixes: when, with, without
RSpec/ContextWording
:
RSpec/ContextWording
:
Enabled
:
false
Enabled
:
false
# Offense count: 18
# Offense count: 407
# Cop supports --auto-correct.
RSpec/EmptyLineAfterExampleGroup
:
Exclude
:
-
'
ee/spec/lib/gitlab/vulnerabilities/container_scanning_vulnerability_spec.rb'
-
'
ee/spec/services/ee/issues/create_from_vulnerability_data_service_spec.rb'
-
'
spec/controllers/projects/notes_controller_spec.rb'
-
'
spec/lib/gitlab/git/diff_collection_spec.rb'
-
'
spec/lib/gitlab/git/repository_spec.rb'
-
'
spec/lib/gitlab/gitaly_client_spec.rb'
-
'
spec/migrations/clean_stage_id_reference_migration_spec.rb'
-
'
spec/models/user_spec.rb'
-
'
spec/routing/project_routing_spec.rb'
-
'
spec/services/projects/overwrite_project_service_spec.rb'
# Offense count: 406
# Cop supports --auto-correct.
# Cop supports --auto-correct.
RSpec/EmptyLineAfterFinalLet
:
RSpec/EmptyLineAfterFinalLet
:
Enabled
:
false
Enabled
:
false
# Offense count: 37
# Cop supports --auto-correct.
RSpec/EmptyLineAfterHook
:
Enabled
:
false
# Offense count: 232
# Offense count: 232
# Cop supports --auto-correct.
# Cop supports --auto-correct.
RSpec/EmptyLineAfterSubject
:
RSpec/EmptyLineAfterSubject
:
...
@@ -368,18 +308,6 @@ RSpec/ExpectChange:
...
@@ -368,18 +308,6 @@ RSpec/ExpectChange:
RSpec/ExpectInHook
:
RSpec/ExpectInHook
:
Enabled
:
false
Enabled
:
false
# Offense count: 21
# Cop supports --auto-correct.
RSpec/HooksBeforeExamples
:
Enabled
:
false
# Offense count: 1498
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_line_only, single_statement_only, disallow
RSpec/ImplicitSubject
:
Enabled
:
false
# Offense count: 10
# Offense count: 10
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# Configuration parameters: EnforcedStyle.
...
@@ -412,11 +340,6 @@ RSpec/LetBeforeExamples:
...
@@ -412,11 +340,6 @@ RSpec/LetBeforeExamples:
-
'
spec/rubocop/cop/migration/update_column_in_batches_spec.rb'
-
'
spec/rubocop/cop/migration/update_column_in_batches_spec.rb'
-
'
spec/serializers/pipeline_details_entity_spec.rb'
-
'
spec/serializers/pipeline_details_entity_spec.rb'
# Offense count: 1
RSpec/MissingExampleGroupArgument
:
Exclude
:
-
'
spec/lib/gitlab/git_access_spec.rb'
# Offense count: 1
# Offense count: 1
# Cop supports --auto-correct.
# Cop supports --auto-correct.
RSpec/MultipleSubjects
:
RSpec/MultipleSubjects
:
...
@@ -438,25 +361,11 @@ RSpec/OverwritingSetup:
...
@@ -438,25 +361,11 @@ RSpec/OverwritingSetup:
RSpec/PredicateMatcher
:
RSpec/PredicateMatcher
:
Enabled
:
false
Enabled
:
false
# Offense count: 23
# Cop supports --auto-correct.
RSpec/ReceiveCounts
:
Enabled
:
false
# Offense count: 5
# Cop supports --auto-correct.
RSpec/ReceiveNever
:
Exclude
:
-
'
ee/spec/lib/gitlab/elastic/project_search_results_spec.rb'
-
'
ee/spec/services/geo/metrics_update_service_spec.rb'
-
'
spec/lib/banzai/renderer_spec.rb'
-
'
spec/models/concerns/reactive_caching_spec.rb'
# Offense count: 55
# Offense count: 55
RSpec/RepeatedExample
:
RSpec/RepeatedExample
:
Enabled
:
false
Enabled
:
false
# Offense count: 47
9
# Offense count: 47
4
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: and_return, block
# SupportedStyles: and_return, block
...
@@ -481,33 +390,6 @@ RSpec/SharedContext:
...
@@ -481,33 +390,6 @@ RSpec/SharedContext:
Exclude
:
Exclude
:
-
'
spec/features/admin/admin_groups_spec.rb'
-
'
spec/features/admin/admin_groups_spec.rb'
# Offense count: 39
# Cop supports --auto-correct.
RSpec/SharedExamples
:
Exclude
:
-
'
ee/spec/lib/ee/gitlab/auth/ldap/sync/group_spec.rb'
-
'
ee/spec/lib/gitlab/email/handler/create_note_handler_spec.rb'
-
'
ee/spec/lib/gitlab/email/handler/ee/service_desk_handler_spec.rb'
-
'
ee/spec/services/approval_rules/params_filtering_service_spec.rb'
-
'
spec/lib/banzai/filter/relative_link_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/lib/gitlab/email/handler/unsubscribe_handler_spec.rb'
-
'
spec/lib/gitlab/email/receiver_spec.rb'
-
'
spec/lib/gitlab/git/tree_spec.rb'
-
'
spec/models/project_services/drone_ci_service_spec.rb'
-
'
spec/models/user_spec.rb'
-
'
spec/support/shared_contexts/email_shared_context.rb'
# Offense count: 4
RSpec/UnspecifiedException
:
Exclude
:
-
'
spec/controllers/projects/jobs_controller_spec.rb'
-
'
spec/lib/gitlab/background_migration/delete_diff_files_spec.rb'
-
'
spec/services/merge_requests/post_merge_service_spec.rb'
-
'
spec/workers/delete_diff_files_worker_spec.rb'
# Offense count: 4
# Offense count: 4
RSpec/VoidExpect
:
RSpec/VoidExpect
:
Exclude
:
Exclude
:
...
@@ -543,7 +425,7 @@ Rails/FilePath:
...
@@ -543,7 +425,7 @@ Rails/FilePath:
Rails/HasManyOrHasOneDependent
:
Rails/HasManyOrHasOneDependent
:
Enabled
:
false
Enabled
:
false
# Offense count:
77
# Offense count:
40
# Cop supports --auto-correct.
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: numeric, symbolic
# SupportedStyles: numeric, symbolic
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment