Skip to content

Instantly share code, notes, and snippets.

@teliosdev
Created March 6, 2017 07:26
Show Gist options
  • Save teliosdev/2014a75360c6a9dc8af19aa284c44c46 to your computer and use it in GitHub Desktop.
Save teliosdev/2014a75360c6a9dc8af19aa284c44c46 to your computer and use it in GitHub Desktop.
My Rubocop File.
AllCops:
TargetRubyVersion: 2.3
Metrics/LineLength:
Enabled: false
Metrics/MethodLength:
Max: 15
Metrics/BlockLength:
Exclude:
- 'spec/*.rb'
- 'spec/**/*.rb'
Metrics/AbcSize:
Max: 25
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/SignalException:
EnforcedStyle: only_fail
Style/AccessModifierIndentation:
EnforcedStyle: outdent
Style/Documentation:
Enabled: false
Style/Encoding:
Enabled: true
EnforcedStyle: always
AutoCorrectEncodingComment: "# encoding: utf-8\n"
Style/RegexpLiteral:
EnforcedStyle: mixed
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/AlignHash:
EnforcedLastArgumentHashStyle: ignore_implicit
Style/AlignArray:
Enabled: false
Style/IndentArray:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/RaiseArgs:
EnforcedStyle: compact
Style/ParallelAssignment:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment