Skip to content

Commit

Permalink
disable additional RuboCop rules and reformat bin/rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Aug 28, 2024
1 parent d2fff59 commit 033e5a7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ Layout/MultilineOperationIndentation:
Enabled: false
Lint/EmptyClass:
Enabled: false
Lint/MissingSuper:
Enabled: false
Lint/PercentStringArray:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
Lint/SuppressedException:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Expand All @@ -48,10 +52,14 @@ Naming/FileName:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Naming/VariableNumber:
Enabled: false
Performance/UnfreezeString:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/DescribeClass:
Enabled: false
RSpec/ExampleLength:
Expand Down Expand Up @@ -96,5 +104,5 @@ require:
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-capybara
Lint/MissingSuper:
Style/CaseEquality:
Enabled: false
10 changes: 7 additions & 3 deletions bin/rubocop
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
if File.read(bundle_binstub, 300).include?(
"This file was generated by Bundler"
)
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
abort(
"Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
)
end
end

Expand Down

0 comments on commit 033e5a7

Please sign in to comment.