Skip to content

Commit

Permalink
update rubocop config and gem files
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Aug 25, 2024
1 parent 79eacaf commit a372702
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 25 deletions.
87 changes: 80 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,88 @@
---
AllCops:
Exclude:
- node_modules/**/*
- vendor/**/*
- "*/node_modules/**/*"
- "*/vendor/**/*"
- node_modules/**/*
- vendor/**/*
NewCops: enable
Layout/ClosingHeredocIndentation:
Enabled: false
Layout/FirstArgumentIndentation:
Enabled: false
Layout/HashAlignment:
Enabled: false
Layout/HeredocIndentation:
Enabled: false
Layout/LineEndStringConcatenationIndentation:
Enabled: false
Layout/LineLength:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/MultilineOperationIndentation:
Enabled: false
Lint/EmptyClass:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Performance/UnfreezeString:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/ExampleWording:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NoExpectationExample:
Enabled: false
RSpec/PendingWithoutReason:
Enabled: false
Rails/DynamicFindBy:
Enabled: false
Rails/HelperInstanceVariable:
Enabled: false
Rails/ThreeStateBooleanColumn:
Enabled: false
Rails/TimeZone:
Enabled: false
Style/Documentation:
Enabled: false
Style/EmptyMethod:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/QuotedSymbols:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
require:
- rubocop-gemfile
- rubocop-rspec
- rubocop-rails
- rubocop-performance
- rubocop-rspec_rails
- rubocop-factory_bot
- rubocop-performance
- rubocop-rails
- rubocop-rake
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-capybara
17 changes: 9 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ ruby "3.3.4"
gem "rspec"
gem "ruby-prof"

gem "bundler-audit", "~> 0.9.2"
gem "bundler-audit"

gem "rubocop-factory_bot", "~> 2.26"
gem "rubocop-gemfile", "~> 0.1.0.beta3"
gem "rubocop-performance", "~> 1.21"
gem "rubocop-rails", "~> 2.26"
gem "rubocop-rake", "~> 0.6.0"
gem "rubocop-rspec", "~> 3.0"
gem "rubocop-rspec_rails", "~> 2.30"
gem "rubocop-factory_bot"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rake"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"

gem "rubocop-capybara"
20 changes: 10 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.1)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-gemfile (0.1.0.beta3)
rubocop (>= 0.35.0)
rubocop-performance (1.21.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
Expand Down Expand Up @@ -124,15 +124,15 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
bundler-audit (~> 0.9.2)
bundler-audit
rspec
rubocop-factory_bot (~> 2.26)
rubocop-gemfile (~> 0.1.0.beta3)
rubocop-performance (~> 1.21)
rubocop-rails (~> 2.26)
rubocop-rake (~> 0.6.0)
rubocop-rspec (~> 3.0)
rubocop-rspec_rails (~> 2.30)
rubocop-capybara
rubocop-factory_bot
rubocop-performance
rubocop-rails
rubocop-rake
rubocop-rspec
rubocop-rspec_rails
ruby-prof
template-ruby!

Expand Down
1 change: 1 addition & 0 deletions template-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Gem::Specification.new do |s|
s.add_dependency "dorian-arguments"
s.add_dependency "language-ruby"
s.add_dependency "zeitwerk"
s.metadata["rubygems_mfa_required"] = "true"
end

0 comments on commit a372702

Please sign in to comment.