Skip to content

Commit

Permalink
updated rubocop dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sashazykov committed Mar 19, 2023
1 parent 05e6ec0 commit b58484d
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 24 deletions.
105 changes: 86 additions & 19 deletions .rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-03-19 15:11:29 UTC using RuboCop version 1.48.1.
# on 2023-03-19 15:30:48 UTC using RuboCop version 1.48.1.
# 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 @@ -38,11 +38,11 @@ Lint/OrAssignmentToConstant:
Metrics/AbcSize:
Max: 34

# Offense count: 15
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
# Offense count: 1
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 117
Max: 29

# Offense count: 2
# Configuration parameters: CountComments, CountAsOne.
Expand Down Expand Up @@ -74,22 +74,38 @@ Naming/PredicateName:
Exclude:
- 'app/models/project.rb'

# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/BeEq:
Exclude:
- 'spec/lib/blacklist_spec.rb'

# Offense count: 1
# Configuration parameters: Prefixes.
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/controllers/projects_controller_spec.rb'

# Offense count: 13
# Configuration parameters: Max.
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 16

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: require_parentheses, omit_parentheses
RSpec/FactoryBot/ConsistentParenthesesStyle:
Exclude:
- 'spec/controllers/projects_controller_spec.rb'
- 'spec/lib/blacklist_spec.rb'
- 'spec/models/deposit_spec.rb'
- 'spec/routing/projects_routing_spec.rb'
- 'spec/routing/users_routing_spec.rb'

# Offense count: 1
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Exclude:
- 'spec/features/assets.rb'

# Offense count: 2
# Configuration parameters: AssignmentOnly.
Expand All @@ -109,7 +125,8 @@ RSpec/MultipleExpectations:
Max: 9

# Offense count: 26
# Configuration parameters: IgnoreSharedExamples.
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/controllers/home_controller_spec.rb'
Expand All @@ -118,9 +135,16 @@ RSpec/NamedSubject:
- 'spec/models/wallet_spec.rb'

# Offense count: 4
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 5

# Offense count: 22
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Inferences.
RSpec/Rails/InferredSpecType:
Enabled: false

# Offense count: 2
RSpec/RepeatedExampleGroupBody:
Exclude:
Expand All @@ -131,6 +155,50 @@ RSpec/StubbedMock:
Exclude:
- 'spec/controllers/projects_controller_spec.rb'

# Offense count: 8
RSpec/SubjectDeclaration:
Exclude:
- 'spec/controllers/home_controller_spec.rb'
- 'spec/controllers/projects_controller_spec.rb'
- 'spec/controllers/users_controller_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: ExpectedOrder, Include.
# ExpectedOrder: index, show, new, edit, create, update, destroy
# Include: app/controllers/**/*.rb
Rails/ActionOrder:
Exclude:
- 'app/controllers/users_controller.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ActiveSupportOnLoad:
Exclude:
- 'config/initializers/demoji.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/AddColumnIndex:
Exclude:
- 'db/migrate/20151219081507_add_bitcoin_address2_to_projects.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Severity.
Rails/DeprecatedActiveModelErrorsMethods:
Exclude:
- 'lib/bitcoin_address_validator.rb'

# Offense count: 1
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Exclude:
- 'spec/spec_helper.rb'

# Offense count: 6
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Expand All @@ -146,6 +214,13 @@ Rails/OutputSafety:
- 'app/helpers/application_helper.rb'
- 'app/helpers/rates_helper.rb'

# Offense count: 1
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ReversibleMigration:
Exclude:
- 'db/migrate/20140823060921_make_default_branch_blank.rb'

# Offense count: 11
# 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
Expand Down Expand Up @@ -203,14 +278,6 @@ Style/SelectByRegexp:
Exclude:
- 'spec/routing/users_routing_spec.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
# AllowedMethods: define_method
Style/SymbolProc:
Exclude:
- 'app/controllers/home_controller.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
Expand Down
12 changes: 7 additions & 5 deletions Gemfile.lock
Expand Up @@ -369,13 +369,15 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.27.0)
parser (>= 3.2.1.0)
rubocop-rails (2.9.0)
rubocop-capybara (2.17.1)
rubocop (~> 1.41)
rubocop-rails (2.18.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 0.90.0, < 2.0)
rubocop-rspec (2.0.1)
rubocop (~> 1.0)
rubocop-ast (>= 1.1.0)
rubocop (>= 1.33.0, < 2.0)
rubocop-rspec (2.19.0)
rubocop (~> 1.33)
rubocop-capybara (~> 2.17)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.2)
ruby_parser (3.15.0)
Expand Down

0 comments on commit b58484d

Please sign in to comment.