-
-
Save absk1317/2e5c093aa9c82c308dfa2d6ad4ec6fe0 to your computer and use it in GitHub Desktop.
Rubocop config for Ruby 2.5 Rails 5+
This file contains 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
## | |
# .rubocop.yml | |
AllCops: | |
TargetRubyVersion: 2.5 | |
Include: | |
- 'config.ru' | |
- 'Gemfile' | |
- 'Guardfile' | |
- 'Rakefile' | |
Exclude: | |
- 'app/views/**/*' | |
- 'bin/*' | |
- 'db/schema.rb' | |
- 'db/migrate/*' | |
- 'log/**/*' | |
- 'node_modules/**/*' | |
- 'public/**/*' | |
- 'scripts/**/*' | |
- 'vendor/**/*' | |
- 'tmp/**/*' | |
- '.git/**/*' | |
Documentation: | |
Enabled: false | |
IndentationConsistency: | |
EnforcedStyle: 'rails' | |
Metrics/BlockLength: | |
Exclude: | |
- 'Guardfile' | |
Naming/FileName: | |
Exclude: | |
- 'Gemfile' | |
- 'Guardfile' | |
- 'Rakefile' | |
Rails: | |
Enabled: true | |
## | |
# ./spec/.rubocop.yml | |
inherit_from: | |
- ../.rubocop.yml | |
StringLiterals: | |
EnforcedStyle: double_quotes | |
Exclude: | |
- './*_helper.rb' | |
# describe block | |
Metrics/BlockLength: | |
Enabled: false | |
## | |
# ./spec/fabricators/.rubocop.yml | |
inherit_from: | |
- ../../.rubocop.yml | |
## | |
# ./spec/support/.rubocop.yml | |
inherit_from: | |
- ../../.rubocop.yml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment