Skip to content

Commit

Permalink
Update .rubocop_todo.yml via autogen
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Mar 10, 2023
1 parent 1a38d79 commit 38ce828
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100`
# on 2023-03-02 13:05:04 UTC using RuboCop version 1.45.1.
# on 2023-03-09 13:58:13 UTC using RuboCop version 1.48.0.
# 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
Expand Down
79 changes: 56 additions & 23 deletions src/api/.rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100`
# on 2023-02-23 14:23:56 UTC using RuboCop version 1.45.1.
# on 2023-03-09 13:59:47 UTC using RuboCop version 1.48.0.
# 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
Expand Down Expand Up @@ -94,11 +94,9 @@ Lint/RedundantDirGlobSort:
- 'spec/browser_helper.rb'
- 'spec/spec_helper.rb'

# Offense count: 5
# Offense count: 3
Lint/RescueException:
Exclude:
- 'app/controllers/person_controller.rb'
- 'app/controllers/public_controller.rb'
- 'app/models/user_ldap_strategy.rb'
- 'config/environment.rb'
- 'lib/tasks/extract.rake'
Expand All @@ -123,21 +121,14 @@ Lint/SuppressedException:
- 'lib/obsapi/markdown_renderer.rb'
- 'spec/models/project_spec.rb'

# Offense count: 1
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
Lint/UnreachableLoop:
Exclude:
- 'app/lib/suse/validator.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/UselessMethodDefinition:
Exclude:
- 'app/controllers/webui/requests/submissions_controller.rb'
- 'test/test_helper.rb'

# Offense count: 864
# Offense count: 865
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 243
Expand Down Expand Up @@ -331,7 +322,7 @@ Metrics/CyclomaticComplexity:
- 'test/functional/zzz_post_consistency_test.rb'
- 'test/node_matcher.rb'

# Offense count: 949
# Offense count: 951
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 221
Expand Down Expand Up @@ -524,7 +515,7 @@ Naming/MethodParameterName:
- 'lib/xpath_engine.rb'
- 'script/reformat_memprof'

# Offense count: 51
# Offense count: 50
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
Expand All @@ -551,7 +542,7 @@ Naming/PredicateName:
# Offense count: 104
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'app/controllers/source_project_config_controller.rb'
Expand Down Expand Up @@ -671,7 +662,7 @@ RSpec/AnyInstance:
- 'spec/models/project_spec.rb'
- 'spec/policies/package_policy_spec.rb'

# Offense count: 1219
# Offense count: 1222
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Expand All @@ -684,7 +675,7 @@ RSpec/ContextWording:
RSpec/DescribedClass:
Enabled: false

# Offense count: 203
# Offense count: 204
# Configuration parameters: Max, CountAsOne.
RSpec/ExampleLength:
Exclude:
Expand Down Expand Up @@ -771,6 +762,33 @@ RSpec/IteratedExpectation:
RSpec/LeadingSubject:
Enabled: false

# Offense count: 72
# This cop supports safe autocorrection (--autocorrect).
RSpec/MatchArray:
Exclude:
- 'spec/controllers/source_attribute_controller_spec.rb'
- 'spec/controllers/staging/staged_requests_controller_spec.rb'
- 'spec/controllers/webui/feeds_controller_spec.rb'
- 'spec/controllers/webui/project_controller_spec.rb'
- 'spec/controllers/webui/projects/rebuild_times_controller_spec.rb'
- 'spec/controllers/webui/repositories_controller_spec.rb'
- 'spec/controllers/webui/staging/projects_controller_spec.rb'
- 'spec/controllers/webui/staging/workflows_controller_spec.rb'
- 'spec/controllers/webui/users_controller_spec.rb'
- 'spec/jobs/send_event_emails_job_spec.rb'
- 'spec/models/attrib_spec.rb'
- 'spec/models/backend/file_spec.rb'
- 'spec/models/bs_request_action/differ/source_package_finder_spec.rb'
- 'spec/models/full_text_search_spec.rb'
- 'spec/models/kiwi/image_spec.rb'
- 'spec/models/package_spec.rb'
- 'spec/models/review_spec.rb'
- 'spec/models/status_message_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/models/workflow/step/configure_repositories_spec.rb'
- 'spec/models/workflow/step/set_flags_step_spec.rb'
- 'spec/services/notification_service/notifier_spec.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
Expand All @@ -779,11 +797,20 @@ RSpec/MessageSpies:
- 'spec/controllers/webui/apidocs_controller_spec.rb'
- 'spec/models/kiwi/image_spec.rb'

# Offense count: 1644
# Offense count: 1651
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 28

# Offense count: 10
RSpec/PendingWithoutReason:
Exclude:
- 'spec/controllers/webui/download_on_demand_controller_spec.rb'
- 'spec/features/webui/attributes_spec.rb'
- 'spec/helpers/webui/user_helper_spec.rb'
- 'spec/helpers/webui/webui_helper_spec.rb'
- 'spec/models/relationship_spec.rb'

# Offense count: 12
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/Rails/HaveHttpStatus:
Expand Down Expand Up @@ -1090,7 +1117,7 @@ Style/ConditionalAssignment:
Exclude:
- 'app/models/bs_request_action_submit.rb'

# Offense count: 962
# Offense count: 965
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
Expand All @@ -1102,7 +1129,13 @@ Style/ExplicitBlockArgument:
- 'app/lib/backend/connection.rb'
- 'app/models/project.rb'

# Offense count: 1695
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/FileEmpty:
Exclude:
- 'lib/tasks/sphinx.rake'

# Offense count: 1701
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Expand Down Expand Up @@ -1226,14 +1259,14 @@ Style/SoleNestedConditional:
- 'script/reformat_memprof'
- 'test/node_matcher.rb'

# Offense count: 365
# Offense count: 367
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
EnforcedStyle: brackets

# Offense count: 286
# Offense count: 287
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
# SupportedStyles: percent, brackets
Expand Down Expand Up @@ -1276,7 +1309,7 @@ ViewComponent/MissingPreviewFile:
- 'app/components/workflow_run_row_component.rb'
- 'app/components/write_and_preview_component.rb'

# Offense count: 2357
# Offense count: 2384
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Expand Down

0 comments on commit 38ce828

Please sign in to comment.