Skip to content

Instantly share code, notes, and snippets.

@tinacious
Last active March 7, 2021 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinacious/1700f6069c7a8db5835926782970d409 to your computer and use it in GitHub Desktop.
Save tinacious/1700f6069c7a8db5835926782970d409 to your computer and use it in GitHub Desktop.
Ruby linter configuration
AllCops:
NewCops: enable
Exclude:
- 'db/**/*'
- 'vendor/**/*'
Layout/LineLength:
Max: 150
IgnoredPatterns: ['\#']
Exclude:
- 'spec/**/*'
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/MultilineAssignmentLayout:
EnforcedStyle: same_line
Layout/EndAlignment:
EnforcedStyleAlignWith: start_of_line
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/MultilineMethodCallBraceLayout:
EnforcedStyle: symmetrical
Exclude:
- 'spec/**/*'
Layout/ClosingParenthesisIndentation:
IgnoredPatterns: ['\#']
Layout/DotPosition:
EnforcedStyle: trailing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment