Skip to content

Instantly share code, notes, and snippets.

@abacha
Last active January 29, 2021 16:59
Show Gist options
  • Save abacha/52b86174b3133e76902f7a3c1b85cc11 to your computer and use it in GitHub Desktop.
Save abacha/52b86174b3133e76902f7a3c1b85cc11 to your computer and use it in GitHub Desktop.
rubocop guide defaults
AllCops:
TargetRubyVersion: 2.5
NewCops: enable
Exclude:
- db/**/*
- config/**/*
- spec/rails_helper.rb
- spec/spec_helper.rb
- spec/turnip_helper.rb
- Gemfile
- Gemfile.lock
- Rakefile
- bin/*
- Guardfile
- vendor/**/*
Layout/DotPosition:
EnforcedStyle: trailing
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*"
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Metrics/BlockLength:
Exclude:
- spec/**/*.rb
Naming/MethodParameterName:
AllowedNames: [io, id, to, _]
Style/Documentation:
Enabled: false
Style/ExponentialNotation:
Enabled: true
Style/GuardClause:
MinBodyLength: 3
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/RedundantFetchBlock:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/SlicingWithRange:
Enabled: true
Style/EvalWithLocation:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment