Skip to content

Instantly share code, notes, and snippets.

@mjgiarlo
Last active November 23, 2015 21:24
Show Gist options
  • Save mjgiarlo/cffd914934b21a3673c2 to your computer and use it in GitHub Desktop.
Save mjgiarlo/cffd914934b21a3673c2 to your computer and use it in GitHub Desktop.
require: rubocop-rspec
AllCops:
RunRailsCops: true
DisplayCopNames: true
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'bin/**/*'
- 'db/**/*'
- 'script/**/*'
- 'vendor/**/*'
- 'spec/internal/**/*'
Metrics/LineLength:
Max: 120
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'
Style/BlockEndNewline:
Exclude:
- 'spec/**/*'
Style/MultilineBlockLayout:
Exclude:
- 'spec/**/*'
Style/IndentationConsistency:
EnforcedStyle: rails
Style/CollectionMethods:
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
detect: 'find'
find_all: 'select'
Style/WordArray:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
Style/ClassAndModuleChildren:
Enabled: false
Style/GlobalVars:
Exclude:
- 'spec/**/*'
Style/SingleLineBlockParams:
Enabled: false
Style/SignalException:
Enabled: false
RSpec/ExampleWording:
CustomTransform:
be: is
have: has
not: does not
NOT: does NOT
IgnoredWords:
- only
RSpec/InstanceVariable:
Enabled: false
Rails/Output:
Exclude:
- 'lib/generators/**/*'
Rails/Date:
Enabled: false
Rails/TimeZone:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment