Skip to content

Instantly share code, notes, and snippets.

@noelrappin
Created May 3, 2016 21:40
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noelrappin/c49f4ed23601b73af7c95dbc443db337 to your computer and use it in GitHub Desktop.
Save noelrappin/c49f4ed23601b73af7c95dbc443db337 to your computer and use it in GitHub Desktop.
AllCops:
Exclude:
- "db/schema.rb" # You can't touch this
- ".bundle/**/*" # Auto-generated
- "bin/**/*" # Auto-generated
- "vendor/**/*" # We cannot solve the world's problems
TargetRubyVersion: 2.3
Rails:
Enabled: true
Metrics/AbcSize:
Enabled: false
Metrics/LineLength:
Max: 80
Metrics/MethodLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Style/CaseEquality:
Enabled: false
Style/ClassAndModuleChildren:
Exclude:
- "app/controllers/**/*"
- "app/helpers/**/*"
Style/EmptyLinesAroundBlockBody:
Exclude:
- "spec/**/*"
- "lib/tasks/*.rake"
Style/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines
Style/EmptyLinesAroundModuleBody:
EnforcedStyle: empty_lines
Style/FrozenStringLiteralComment:
Enabled: false
Style/SignalException:
EnforcedStyle: only_raise
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TrivialAccessors:
ExactNameMatch: true
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: no_comma
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: no_comma
Style/SpaceInsideBlockBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
SpaceBeforeBlockParameters: true
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
EnforcedStyleForEmptyBraces: no_space
Style/Documentation:
Enabled: false
Style/BlockDelimiters:
Exclude:
- "spec/**/*" # because let statements use braces for multiline blocks
Style/BlockEndNewline:
Exclude:
- "spec/**/*" # because let statements use braces for multiline blocks
Style/MultilineBlockLayout:
Exclude:
- "spec/**/*" # because let statements use braces for multiline blocks
Style/Semicolon:
AllowAsExpressionSeparator: true
Exclude:
- "spec/**/*" # because sometimes we use this in expect or then blocks
Style/RaiseArgs:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment