Skip to content

Commit

Permalink
Required changes for .rubocop.yml to work
Browse files Browse the repository at this point in the history
  • Loading branch information
AKeyframe committed Oct 4, 2024
1 parent 08c12d4 commit e8432c8
Show file tree
Hide file tree
Showing 2 changed files with 591 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-performance
- rubocop-rails
- .rubocop/custom_cop/top_level_constants_per_file.rb

AllCops:
TargetRubyVersion: 2.5
TargetRailsVersion: 5.1
Include:
- '**/config.ru'
- '**/Rakefile'
- '**/*.rake'
Exclude:
- 'bin/**/*'
- 'db/**/*'
Expand Down Expand Up @@ -62,3 +65,11 @@ Style/TrailingCommaInArrayLiteral:

Style/TrailingCommaInHashLiteral:
Enabled: false

CustomCop/TopLevelConstantsPerFile:
Enabled: true
Include:
- 'app/**/*'
- 'lib/**/*'
Exclude:
- '**/*[^.rb]' # exclude non-.rb files (ex: .rake files)
Loading

0 comments on commit e8432c8

Please sign in to comment.