Skip to content

Commit

Permalink
Add .rubocop/strict.yml to load after the _todo
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed May 24, 2024
1 parent fb61536 commit 7aa7f63
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ AllCops:
UseCache: true

inherit_from:
- .rubocop_todo.yml
- .rubocop/layout.yml
- .rubocop/metrics.yml
- .rubocop/naming.yml
- .rubocop/rails.yml
- .rubocop/rspec-rails.yml
- .rubocop/rspec.yml
- .rubocop/style.yml
- .rubocop_todo.yml
- .rubocop/strict.yml

inherit_mode:
merge:
Expand Down
23 changes: 23 additions & 0 deletions .rubocop/strict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Inherit from TODO here to make sure we enforce the rules below (and TODO is ignored)
inherit_from:
- ../.rubocop_todo.yml

Lint/Debugger: # Remove any `binding.pry`
Enabled: true
Exclude: []

RSpec/Focus: # Require full spec run on CI
Enabled: true
Exclude: []

Rails/Output: # Remove any `puts` debugging
Enabled: true
Exclude: []

Rails/FindEach: # Using `each` could impact performance, use `find_each`
Enabled: true
Exclude: []

Rails/UniqBeforePluck: # Require `uniq.pluck` and not `pluck.uniq`
Enabled: true
Exclude: []

0 comments on commit 7aa7f63

Please sign in to comment.