Skip to content

Instantly share code, notes, and snippets.

@CodingItWrong
Last active September 6, 2016 19:24
Show Gist options
  • Save CodingItWrong/65d4ae05a0b71f692341ddf737b3cb9c to your computer and use it in GitHub Desktop.
Save CodingItWrong/65d4ae05a0b71f692341ddf737b3cb9c to your computer and use it in GitHub Desktop.
My Rubucop Settings
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
AllCops:
TargetRubyVersion: 2.2
# Don't check Ruby files that aren't application code
Exclude:
- 'Gemfile'
- 'Rakefile'
- 'bin/**/*'
- 'config/**/*'
- 'db/schema.rb'
- 'db/seeds.rb'
- 'spec/rails_helper.rb'
- 'spec/spec_helper.rb'
# Don't restrict length of modules/files
Metrics/ModuleLength:
Enabled: false
# Allow braces for blocks that mainly return a value, including RSpec lets and
# subjects
Style/BlockDelimiters:
EnforcedStyle: semantic
# Don't require a class comment
Style/Documentation:
Enabled: false
# Always use double-quoted string literals
Style/StringLiterals:
EnforcedStyle: double_quotes
# Don't require thousand separators
Style/NumericLiterals:
Enabled: false
# Require trailing commas for multiline arrays/hashes
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
# Allow but do not require modifier usage of if/unless
Style/IfUnlessModifier:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment