Skip to content

Instantly share code, notes, and snippets.

@prathamesh-sonpatki
Created July 8, 2020 17:54
Show Gist options
  • Save prathamesh-sonpatki/320290347e50966eb43d56ed259def0a to your computer and use it in GitHub Desktop.
Save prathamesh-sonpatki/320290347e50966eb43d56ed259def0a to your computer and use it in GitHub Desktop.
inherit_from: .rubocop_todo.yml
require:
- rubocop-rspec
- rubocop-rails
- rubocop-performance
AllCops:
EnabledByDefault: true
TargetRubyVersion: 2.6.5
Exclude:
- 'db/**/*'
- 'bin/**/*'
- 'vendor/bundle/**/*'
- 'config/environments/**/*'
- 'spec/rails_helper.rb'
- 'spec/spec_helper.rb'
- 'config/boot.rb'
Metrics/ClassLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Layout/CommentIndentation:
Enabled: false
Layout/MultilineAssignmentLayout:
Enabled: false
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods
Layout/LineLength:
Enabled: false
Style/DocumentationMethod:
Enabled: false
Style/MethodCalledOnDoEndBlock:
Enabled: false
Style/OptionHash:
Enabled: false
Style/Copyright:
Enabled: false
Style/BlockComments:
Enabled: false
Style/Documentation:
Enabled: false
Style/MissingElse:
Enabled: false
Style/MethodCallWithArgsParentheses:
Enabled: false
Style/ConstantVisibility:
Enabled: false
Lint/NumberConversion:
Enabled: false
Lint/ConstantResolution:
Enabled: false
Rails:
Enabled: true
Rails/SkipsModelValidations:
Enabled: false
FactoryBot/AttributeDefinedStatically:
Enabled: true
RSpec/MultipleExpectations:
Enabled: false
RSpec/ExampleLength:
Enabled: false
Style/GlobalVars:
Enabled: false
Metrics/ModuleLength:
Max: 300
RSpec/AnyInstance:
Enabled: false
RSpec/ExpectInHook:
Enabled: false
Rails/SaveBang:
Enabled: false
RSpec/AlignRightLetBrace:
Enabled: false
RSpec/AlignLeftLetBrace:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/InverseOf:
Enabled: false
Metrics/BlockLength:
Enabled: false
Style/DisableCopsWithinSourceCodeDirective:
Enabled: false
Style/StringHashKeys:
Exclude:
- 'config/routes.rb'
Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always_true
AutoCorrect: true
Style/ClassAndModuleChildren:
Exclude:
- 'app/controllers/**/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment