Skip to content

Instantly share code, notes, and snippets.

@hpneo
Created June 4, 2019 17:45
Show Gist options
  • Save hpneo/c9849dc63b37084fe7bf5c9244950dfe to your computer and use it in GitHub Desktop.
Save hpneo/c9849dc63b37084fe7bf5c9244950dfe to your computer and use it in GitHub Desktop.
---
AllCops:
DisabledByDefault: true
Exclude:
- bin/**/*
- node_modules/**/*
- log/**/*
- tmp/**/*
- vendor/**/*
- db/migrate/*
- db/schema.rb
Layout/AccessModifierIndentation:
EnforcedStyle: indent
Layout/BlockAlignment:
EnforcedStyleAlignWith: either
Layout/DefEndAlignment:
EnforcedStyleAlignWith: start_of_line
Layout/DotPosition:
EnforcedStyle: leading
Layout/EmptyComment:
Enabled: true
Layout/EmptyLineBetweenDefs:
Enabled: true
NumberOfEmptyLines: 1
Layout/EmptyLinesAroundBlockBody:
EnforcedStyle: no_empty_lines
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: no_empty_lines
Layout/EmptyLinesAroundModuleBody:
EnforcedStyle: no_empty_lines
Layout/EndAlignment:
EnforcedStyleAlignWith: start_of_line
Layout/ExtraSpacing:
AllowForAlignment: true
Layout/IndentArray:
EnforcedStyle: consistent
Layout/IndentHash:
EnforcedStyle: consistent
Layout/IndentationConsistency:
EnforcedStyle: normal
Layout/IndentationWidth:
Width: 2
Layout/SpaceAroundBlockParameters:
EnforcedStyleInsidePipes: no_space
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: space
Layout/SpaceAroundOperators:
Enabled: true
Layout/SpaceBeforeBlockBraces:
EnforcedStyle: space
Layout/SpaceInLambdaLiteral:
EnforcedStyle: require_no_space
Layout/SpaceInsideBlockBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
Layout/SpaceInsideReferenceBrackets:
EnforcedStyle: no_space
Layout/SpaceInsideStringInterpolation:
EnforcedStyle: no_space
Layout/Tab:
Enabled: true
Layout/TrailingWhitespace:
Enabled: true
Lint/SafeNavigationChain:
Enabled: true
Lint/ShadowedArgument:
Enabled: true
Lint/UnusedBlockArgument:
Enabled: true
Lint/UnusedMethodArgument:
Enabled: true
Naming/VariableName:
EnforcedStyle: snake_case
Rails/LexicallyScopedActionFilter:
Include:
- app/controllers/**/*.rb
Rails/TimeZone:
EnforcedStyle: flexible
Rails/UnknownEnv:
Environments:
- development
- test
- production
- staging
Style/BlockDelimiters:
EnforcedStyle: line_count_based
Style/BracesAroundHashParameters:
EnforcedStyle: no_braces
Style/EmptyElse:
EnforcedStyle: both
Style/EmptyMethod:
EnforcedStyle: expanded
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
Style/MethodDefParentheses:
EnforcedStyle: require_parentheses
Style/NumericLiterals:
MinDigits: 5
Strict: false
Style/RedundantReturn:
Enabled: true
Style/Semicolon:
Enabled: true
Style/SingleLineMethods:
Enabled: true
Style/StabbyLambdaParentheses:
EnforcedStyle: require_parentheses
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: no_comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: no_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: no_comma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment