Skip to content

Commit

Permalink
Move config for local custom cops to .rubocop/custom.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed May 24, 2024
1 parent 7aa7f63 commit 81a97c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ inherit_from:
- .rubocop/rspec-rails.yml
- .rubocop/rspec.yml
- .rubocop/style.yml
- .rubocop/custom.yml
- .rubocop_todo.yml
- .rubocop/strict.yml

Expand All @@ -38,4 +39,3 @@ require:
- rubocop-rspec_rails
- rubocop-performance
- rubocop-capybara
- ./lib/linter/rubocop_middle_dot
6 changes: 6 additions & 0 deletions .rubocop/custom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
require:
- ../lib/linter/rubocop_middle_dot

Style/MiddleDot:
Enabled: true
3 changes: 0 additions & 3 deletions .rubocop/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ Style/HashSyntax:
EnforcedShorthandSyntax: either
EnforcedStyle: ruby19_no_mixed_keys

Style/MiddleDot:
Enabled: true

Style/NumericLiterals:
AllowedPatterns:
- \d{4}_\d{2}_\d{2}_\d{6}
Expand Down

0 comments on commit 81a97c2

Please sign in to comment.