Skip to content

Instantly share code, notes, and snippets.

@seanknox
Last active March 16, 2016 05:26
Show Gist options
  • Save seanknox/68543be61e577ac8359b to your computer and use it in GitHub Desktop.
Save seanknox/68543be61e577ac8359b to your computer and use it in GitHub Desktop.
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
- 'lib/tasks/**/*'
Exclude:
- bin/*
- db/schema.rb
- vendor/bundle/**/*
TargetRubyVersion: 2.3
Rails:
Enabled: true
# We prefer clarity (and seachability) over concise/DRY migrations.
Metrics/AbcSize:
Exclude:
- db/migrate/*
# We don't care about method length, since we check method cyclomatic
# complexity.
Metrics/MethodLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
# Trailing commas make for clearer diffs because the last line won't appear
# to have been changed, as it would if it lacked a comma and had one added.
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
PreferredDelimiters:
# Using `[]` for string arrays instead of `()`, since normal arrays are
# indicated with `[]` not `()`.
'%w': '[]'
'%W': '[]'
'%i': '[]'
Style/Documentation:
Exclude:
- app/helpers/**/*
- db/**/*
Rails/TimeZone:
EnforcedStyle: 'flexible'
# This configuration was generated by `rubocop --auto-gen-config`
# on 2014-12-12 10:40:55 -0800 using RuboCop version 0.28.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 14
# Cop supports --auto-correct.
Lint/UnusedBlockArgument:
Enabled: false
# Offense count: 35
Metrics/AbcSize:
Max: 45.62
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 109
# Offense count: 410
Style/Documentation:
Enabled: false
# Offense count: 3
Style/EmptyElse:
Enabled: false
# Offense count: 32
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/EmptyLinesAroundBlockBody:
Enabled: false
# Offense count: 114
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MultilineOperationIndentation:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment