Skip to content

Commit

Permalink
Add RuboCop Packaging (#936)
Browse files Browse the repository at this point in the history
For parity with activeadmin and arbre

Refs:
- activeadmin/activeadmin#6462
- activeadmin/arbre#212
  • Loading branch information
tagliala committed Sep 8, 2024
1 parent 4b4ec73 commit aa07a79
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require:
- rubocop-minitest
- rubocop-packaging
- rubocop-performance

AllCops:
Expand Down Expand Up @@ -215,6 +216,18 @@ Minitest/UnspecifiedException:
Minitest/UselessAssertion:
Enabled: true

Packaging/BundlerSetupInTests:
Enabled: true

Packaging/GemspecGit:
Enabled: true

Packaging/RequireHardcodingLib:
Enabled: true

Packaging/RequireRelativeHardcodingLib:
Enabled: true

Performance:
Enabled: true

Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ end
group :rubocop do
gem 'rubocop'
gem 'rubocop-minitest'
gem 'rubocop-packaging'
gem 'rubocop-performance'
end
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ GEM
rubocop-minitest (0.36.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
rubocop-performance (1.21.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
Expand Down Expand Up @@ -265,6 +267,7 @@ DEPENDENCIES
rails-controller-testing
rubocop
rubocop-minitest
rubocop-packaging
rubocop-performance
simplecov
simplecov-cobertura
Expand Down

0 comments on commit aa07a79

Please sign in to comment.