.rubocop.yml
· 1.3 KiB · YAML
Raw
AllCops:
Exclude:
- "**/*.erb"
- bin/*
- db/*schema.rb
NewCops: enable
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementLineBreak:
Enabled: true
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementLineBreak:
Enabled: true
Layout/FirstMethodArgumentLineBreak:
Enabled: true
Layout/FirstMethodParameterLineBreak:
Enabled: true
Layout/FirstParameterIndentation:
EnforcedStyle: consistent
Layout/LineLength:
Max: 120
Layout/MultilineArrayLineBreaks:
Enabled: true
Layout/MultilineHashKeyLineBreaks:
Enabled: true
Layout/MultilineMethodArgumentLineBreaks:
Enabled: true
Layout/MultilineMethodParameterLineBreaks:
Enabled: true
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Lint/MissingSuper:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
| 1 | AllCops: |
| 2 | Exclude: |
| 3 | - "**/*.erb" |
| 4 | - bin/* |
| 5 | - db/*schema.rb |
| 6 | NewCops: enable |
| 7 | |
| 8 | Layout/ArgumentAlignment: |
| 9 | EnforcedStyle: with_fixed_indentation |
| 10 | |
| 11 | Layout/FirstArgumentIndentation: |
| 12 | EnforcedStyle: consistent |
| 13 | |
| 14 | Layout/FirstArrayElementIndentation: |
| 15 | EnforcedStyle: consistent |
| 16 | |
| 17 | Layout/FirstArrayElementLineBreak: |
| 18 | Enabled: true |
| 19 | |
| 20 | Layout/FirstHashElementIndentation: |
| 21 | EnforcedStyle: consistent |
| 22 | |
| 23 | Layout/FirstHashElementLineBreak: |
| 24 | Enabled: true |
| 25 | |
| 26 | Layout/FirstMethodArgumentLineBreak: |
| 27 | Enabled: true |
| 28 | |
| 29 | Layout/FirstMethodParameterLineBreak: |
| 30 | Enabled: true |
| 31 | |
| 32 | Layout/FirstParameterIndentation: |
| 33 | EnforcedStyle: consistent |
| 34 | |
| 35 | Layout/LineLength: |
| 36 | Max: 120 |
| 37 | |
| 38 | Layout/MultilineArrayLineBreaks: |
| 39 | Enabled: true |
| 40 | |
| 41 | Layout/MultilineHashKeyLineBreaks: |
| 42 | Enabled: true |
| 43 | |
| 44 | Layout/MultilineMethodArgumentLineBreaks: |
| 45 | Enabled: true |
| 46 | |
| 47 | Layout/MultilineMethodParameterLineBreaks: |
| 48 | Enabled: true |
| 49 | |
| 50 | Layout/ParameterAlignment: |
| 51 | EnforcedStyle: with_fixed_indentation |
| 52 | |
| 53 | Lint/MissingSuper: |
| 54 | Enabled: false |
| 55 | |
| 56 | Metrics/AbcSize: |
| 57 | Enabled: false |
| 58 | |
| 59 | Metrics/BlockLength: |
| 60 | Enabled: false |
| 61 | |
| 62 | Metrics/ClassLength: |
| 63 | Enabled: false |
| 64 | |
| 65 | Metrics/MethodLength: |
| 66 | Enabled: false |
| 67 | |
| 68 | Style/BlockDelimiters: |
| 69 | Enabled: false |
| 70 | |
| 71 | Style/ClassAndModuleChildren: |
| 72 | Enabled: false |
| 73 | |
| 74 | Style/Documentation: |
| 75 | Enabled: false |
| 76 | |
| 77 | Style/FrozenStringLiteralComment: |
| 78 | Enabled: false |
| 79 |