Skip to content

Instantly share code, notes, and snippets.

@heybenchen
Created August 13, 2018 19:24
Show Gist options
  • Save heybenchen/9e6b7b1da36026b932548626de824df2 to your computer and use it in GitHub Desktop.
Save heybenchen/9e6b7b1da36026b932548626de824df2 to your computer and use it in GitHub Desktop.
AllCops:
TargetRubyVersion: 2.3
Style/Documentation:
Enabled: false
Metrics/LineLength:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true
Style/MutableConstant:
Enabled: true
Layout/EmptyLines:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Enabled: true
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Enabled: true
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Enabled: true
Layout/MultilineOperationIndentation:
Enabled: true
Metrics/ModuleLength:
Enabled: false
Metrics/MethodLength:
Max: 15
Rails/Blank:
Enabled: true
Metrics/AbcSize:
Max: 20
Metrics/CyclomaticComplexity:
Max: 10
Metrics/MethodLength:
Max: 15
Metrics/PerceivedComplexity:
Max: 10
AllCops:
DisplayCopNames: true
Layout/AlignParameters:
EnforcedStyle: "with_fixed_indentation"
Layout/CaseIndentation:
EnforcedStyle: "end"
Layout/ClosingParenthesisIndentation:
Enabled: false
Layout/ElseAlignment:
Enabled: false
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: "empty_lines_except_namespace"
Layout/EmptyLinesAroundModuleBody:
EnforcedStyle: "empty_lines_except_namespace"
Layout/EndAlignment:
EnforcedStyleAlignWith: "start_of_line"
Layout/FirstParameterIndentation:
EnforcedStyle: "consistent"
Layout/IndentArray:
EnforcedStyle: "consistent"
Layout/IndentHash:
EnforcedStyle: "consistent"
Layout/IndentHeredoc:
EnforcedStyle: squiggly
Layout/MultilineMethodCallIndentation:
EnforcedStyle: "indented"
Layout/MultilineOperationIndentation:
EnforcedStyle: "indented"
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*.rb"
Lint/ShadowingOuterLocalVariable:
Enabled: false
Lint/UnneededSplatExpansion:
Enabled: false
Metrics/BlockLength:
ExcludedMethods:
- "context"
- "define"
- "describe"
- "let"
- "it"
Metrics/LineLength:
Max: 160
Naming/UncommunicativeBlockParamName:
AllowedNames:
- "by"
- "cc"
- "id"
- "ip"
- "to"
Naming/UncommunicativeMethodParamName:
AllowedNames:
- "by"
- "cc"
- "id"
- "ip"
- "to"
Performance/Caller:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/BracesAroundHashParameters:
Enabled: false
Style/Documentation:
Enabled: false
Style/EmptyElse:
EnforcedStyle: "empty"
Style/FormatStringToken:
EnforcedStyle: "template"
Style/GuardClause:
MinBodyLength: 2
Style/HashSyntax:
EnforcedStyle: "ruby19_no_mixed_keys"
Style/Lambda:
EnforcedStyle: "literal"
Style/NegatedIf:
EnforcedStyle: "postfix"
Style/NumericLiteralPrefix:
EnforcedOctalStyle: "zero_only"
Style/PercentLiteralDelimiters:
PreferredDelimiters:
"%i": "[]"
"%I": "[]"
"%r": "{}"
"%w": "[]"
"%W": "[]"
"%x": "{}"
Style/StringLiterals:
EnforcedStyle: "double_quotes"
Style/TernaryParentheses:
EnforcedStyle: "require_parentheses_when_complex"
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: "comma"
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: "comma"
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: "comma"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment