Skip to content

Instantly share code, notes, and snippets.

@paulanthonywilson
Forked from tomas-stefano/rubocop.yml
Last active June 27, 2017 13:14
Show Gist options
  • Save paulanthonywilson/b0be3d6df7f409be51a68bbd85ff960f to your computer and use it in GitHub Desktop.
Save paulanthonywilson/b0be3d6df7f409be51a68bbd85ff960f to your computer and use it in GitHub Desktop.
Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Metrics/LineLength:
Max: 80
IgnoredPatterns: ['^\s*class\s']
Exclude:
- 'spec/**/*'
Metrics/MethodLength:
Max: 15
Style/ClassAndModuleChildren:
Enabled: false
Style/CollectionMethods:
Enabled: false
Layout/DotPosition:
EnforcedStyle: leading
Style/FormatString:
Enabled: false
Style/AndOr:
EnforcedStyle: conditionals
Style/Not:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/MethodDefParentheses:
EnforcedStyle: require_parentheses
Style/RaiseArgs:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Lint/ShadowingOuterLocalVariable:
Enabled: false
Rails:
Enabled: true
AllCops:
TargetRailsVersion: 4.2
Exclude:
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'Guardfile'
- 'lib/tasks/**/*'
- 'node_modules/**/*'
- 'script/**/*'
- 'spec/spec_helper.rb'
- 'spec/cassettes/**/*'
- 'features/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- 'Rakefile'
- 'spec/dummy/config/**/*'
- 'spec/dummy/db/**/*'
- 'spec/dummy/script/**/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment