Created
April 12, 2019 17:30
-
-
Save huarmenta/f0e3b5c6af2cd3d95c32db796fbd0e9e to your computer and use it in GitHub Desktop.
Rubocop base configuration for engines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Inheritance | |
| # inherit_from: | |
| # - .rubocop_todo.yml | |
| # Extensions | |
| require: | |
| - rubocop-rspec | |
| - rubocop-performance | |
| Rails: | |
| Enabled: true | |
| AllCops: | |
| Exclude: | |
| - 'Rakefile' | |
| - 'db/**/*' | |
| - 'config/**/*' | |
| - 'bin/{bundle,rails,rake,setup,update}' | |
| - !ruby/regexp /old_and_unused\.rb$/ | |
| - 'spec/spec_helper.rb' | |
| - 'spec/dummy/**/*' | |
| Rails/UnknownEnv: | |
| Exclude: | |
| - 'spec/rails_helper.rb' | |
| Metrics/BlockLength: | |
| Exclude: | |
| - 'spec/**/*.rb' | |
| RSpec/EmptyExampleGroup: | |
| Exclude: | |
| - 'spec/**/*.rb' | |
| RSpec/ExampleLength: | |
| Enabled: false | |
| # TODO: Check https://github.com/rubocop-hq/rubocop-rspec/issues/682 | |
| RSpec/ImplicitSubject: | |
| Enabled: false | |
| RSpec/NestedGroups: | |
| Max: 4 | |
| Style/AsciiComments: | |
| Enabled: false | |
| Style/SymbolArray: | |
| EnforcedStyle: brackets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment