|
| 1 | +require: |
| 2 | + - rubocop-performance |
| 3 | + - rubocop-rake |
| 4 | + - rubocop-rspec |
| 5 | + |
| 6 | +AllCops: |
| 7 | + TargetRubyVersion: 2.6 |
| 8 | + Exclude: |
| 9 | + - bin/**/* |
| 10 | + - vendor/**/* |
| 11 | + NewCops: enable |
| 12 | + |
| 13 | +Layout/ArgumentAlignment: |
| 14 | + EnforcedStyle: with_fixed_indentation |
| 15 | + |
| 16 | +Layout/BlockAlignment: |
| 17 | + EnforcedStyleAlignWith: start_of_block |
| 18 | + |
| 19 | +Layout/CaseIndentation: |
| 20 | + # Disabled because IndentOneStep can't be configured for one-liner cases. |
| 21 | + # See: https://github.com/rubocop-hq/rubocop/issues/6447 |
| 22 | + Enabled: false |
| 23 | + |
| 24 | +Layout/ClassStructure: |
| 25 | + Enabled: true |
| 26 | + |
| 27 | +Layout/EndAlignment: |
| 28 | + EnforcedStyleAlignWith: variable |
| 29 | + |
| 30 | +Layout/ExtraSpacing: |
| 31 | + AllowForAlignment: false |
| 32 | + AllowBeforeTrailingComments: false |
| 33 | + ForceEqualSignAlignment: false |
| 34 | + |
| 35 | +Layout/FirstArgumentIndentation: |
| 36 | + EnforcedStyle: consistent |
| 37 | + |
| 38 | +Layout/FirstArrayElementIndentation: |
| 39 | + EnforcedStyle: consistent |
| 40 | + |
| 41 | +Layout/FirstArrayElementLineBreak: |
| 42 | + Enabled: true |
| 43 | + |
| 44 | +Layout/FirstHashElementIndentation: |
| 45 | + EnforcedStyle: consistent |
| 46 | + |
| 47 | +Layout/FirstHashElementLineBreak: |
| 48 | + Enabled: true |
| 49 | + |
| 50 | +Layout/FirstMethodArgumentLineBreak: |
| 51 | + Enabled: false |
| 52 | + |
| 53 | +Layout/FirstMethodParameterLineBreak: |
| 54 | + Enabled: true |
| 55 | + |
| 56 | +Layout/HeredocArgumentClosingParenthesis: |
| 57 | + Enabled: true |
| 58 | + |
| 59 | +Layout/LineLength: |
| 60 | + Max: 80 |
| 61 | + |
| 62 | +Layout/MultilineArrayLineBreaks: |
| 63 | + Enabled: true |
| 64 | + |
| 65 | +Layout/MultilineHashKeyLineBreaks: |
| 66 | + Enabled: true |
| 67 | + |
| 68 | +Layout/MultilineMethodArgumentLineBreaks: |
| 69 | + Enabled: true |
| 70 | + |
| 71 | +# Layout/MultilineMethodCallBraceLayout: |
| 72 | +# EnforcedStyle: new_line |
| 73 | + |
| 74 | +Layout/MultilineMethodCallIndentation: |
| 75 | + EnforcedStyle: indented |
| 76 | + |
| 77 | +Layout/MultilineMethodDefinitionBraceLayout: |
| 78 | + EnforcedStyle: new_line |
| 79 | + |
| 80 | +Layout/MultilineOperationIndentation: |
| 81 | + EnforcedStyle: indented |
| 82 | + |
| 83 | +Layout/ParameterAlignment: |
| 84 | + EnforcedStyle: with_fixed_indentation |
| 85 | + |
| 86 | +Lint/DuplicateBranch: |
| 87 | + Enabled: true |
| 88 | + |
| 89 | +Lint/DuplicateRegexpCharacterClassElement: |
| 90 | + Enabled: true |
| 91 | + |
| 92 | +Lint/EmptyBlock: |
| 93 | + Enabled: true |
| 94 | + AllowComments: true |
| 95 | + |
| 96 | +Lint/EmptyClass: |
| 97 | + Enabled: true |
| 98 | + AllowComments: true |
| 99 | + |
| 100 | +Lint/HeredocMethodCallPosition: |
| 101 | + Enabled: true |
| 102 | + |
| 103 | +Lint/NoReturnInBeginEndBlocks: |
| 104 | + Enabled: true |
| 105 | + |
| 106 | +Metrics/BlockLength: |
| 107 | + CountAsOne: |
| 108 | + - array |
| 109 | + - hash |
| 110 | + - heredoc |
| 111 | + Exclude: |
| 112 | + - "*.gemspec" |
| 113 | + - spec/**/*_spec.rb |
| 114 | + |
| 115 | +Metrics/ClassLength: |
| 116 | + CountAsOne: |
| 117 | + - array |
| 118 | + - hash |
| 119 | + - heredoc |
| 120 | + Max: 120 |
| 121 | + |
| 122 | +Metrics/CyclomaticComplexity: |
| 123 | + Max: 10 |
| 124 | + |
| 125 | +Metrics/MethodLength: |
| 126 | + CountAsOne: |
| 127 | + - array |
| 128 | + - hash |
| 129 | + - heredoc |
| 130 | + Max: 20 |
| 131 | + |
| 132 | +Metrics/ModuleLength: |
| 133 | + CountAsOne: |
| 134 | + - array |
| 135 | + - hash |
| 136 | + - heredoc |
| 137 | + |
| 138 | +Metrics/ParameterLists: |
| 139 | + Max: 10 |
| 140 | + |
| 141 | +RSpec/MultipleMemoizedHelpers: |
| 142 | + Max: 10 |
| 143 | + |
| 144 | +RSpec/NestedGroups: |
| 145 | + Max: 8 |
| 146 | + |
| 147 | +Style/BlockDelimiters: |
| 148 | + EnforcedStyle: semantic |
| 149 | + AllowBracesOnProceduralOneLiners: true |
| 150 | + |
| 151 | +Style/StringLiterals: |
| 152 | + EnforcedStyle: double_quotes |
| 153 | + ConsistentQuotesInMultiline: true |
| 154 | + |
| 155 | +Style/StringLiteralsInInterpolation: |
| 156 | + EnforcedStyle: double_quotes |
| 157 | + |
| 158 | +Style/SymbolArray: |
| 159 | + EnforcedStyle: brackets |
| 160 | + |
| 161 | +Style/TrailingCommaInArguments: |
| 162 | + EnforcedStyleForMultiline: comma |
| 163 | + |
| 164 | +Style/TrailingCommaInArrayLiteral: |
| 165 | + EnforcedStyleForMultiline: comma |
| 166 | + |
| 167 | +Style/TrailingCommaInHashLiteral: |
| 168 | + EnforcedStyleForMultiline: comma |
| 169 | + |
| 170 | +Style/WordArray: |
| 171 | + EnforcedStyle: brackets |
0 commit comments