|
5 | 5 | - !ruby/regexp /(vendor|bundle|bin|db)\/.*/ |
6 | 6 | DisplayCopNames: true |
7 | 7 | DisplayStyleGuide: true |
8 | | - TargetRubyVersion: 2.2 |
| 8 | + TargetRubyVersion: 2.4 |
| 9 | + TargetRailsVersion: 4.2 |
9 | 10 | # https://github.com/bbatsov/rubocop/blob/master/manual/caching.md |
10 | 11 | # https://github.com/bbatsov/rubocop/blob/e8680418b351491e111a18cf5b453fc07a3c5239/config/default.yml#L60-L77 |
11 | 12 | UseCache: true |
@@ -40,104 +41,20 @@ Style/MissingElse: |
40 | 41 | Style/EmptyElse: |
41 | 42 | EnforcedStyle: empty |
42 | 43 |
|
43 | | -Style/AlignParameters: |
44 | | - EnforcedStyle: with_fixed_indentation |
45 | | - Enabled: true |
46 | | - |
47 | | -Style/AlignHash: |
48 | | - EnforcedHashRocketStyle: key |
49 | | - EnforcedColonStyle: key |
50 | | - EnforcedLastArgumentHashStyle: ignore_implicit |
51 | | - |
52 | | -Style/IndentHash: |
53 | | - EnforcedStyle: consistent |
54 | | - |
55 | | -Style/IndentationWidth: |
56 | | - Width: 2 |
57 | | - |
58 | | -Style/MultilineOperationIndentation: |
59 | | - EnforcedStyle: indented |
60 | | - |
61 | | -Style/ClosingParenthesisIndentation: |
62 | | - Enabled: false |
63 | | - |
64 | | -Style/SpaceInsideHashLiteralBraces: |
65 | | - EnforcedStyle: no_space |
66 | | - |
67 | | -Style/FirstParameterIndentation: |
68 | | - EnforcedStyle: special_for_inner_method_call_in_parentheses |
69 | | - |
70 | | -Style/ExtraSpacing: |
71 | | - Enabled: true |
72 | | - |
73 | 44 | Lint/BlockAlignment: |
74 | 45 | Enabled: true |
75 | 46 | EnforcedStyleAlignWith: either |
76 | 47 |
|
77 | 48 | Lint/EndAlignment: |
78 | 49 | Enabled: true |
79 | 50 |
|
80 | | -Style/SpaceAfterColon: |
81 | | - Enabled: true |
82 | | - |
83 | | -Style/SpaceAfterComma: |
84 | | - Enabled: true |
85 | | - |
86 | | -Style/SpaceAfterNot: |
87 | | - Enabled: true |
88 | | - |
89 | | -Style/SpaceAroundEqualsInParameterDefault: |
90 | | - EnforcedStyle: no_space |
91 | | - |
92 | | -Style/SpaceBeforeBlockBraces: |
93 | | - Enabled: false |
94 | | - # EnforcedStyle: space |
95 | | - |
96 | | -Style/SpaceInsideBlockBraces: |
97 | | - EnforcedStyle: space |
98 | | - EnforcedStyleForEmptyBraces: no_space |
99 | | - # Space between { and |. Overrides EnforcedStyle if there is a conflict. |
100 | | - SpaceBeforeBlockParameters: true |
101 | | - |
102 | | -Style/SpaceInsideBrackets: |
103 | | - Enabled: true |
104 | | - |
105 | | -Style/SpaceInsideParens: |
106 | | - Enabled: true |
107 | | - |
108 | | -Style/EmptyLines: |
109 | | - Enabled: true |
110 | | - |
111 | | -Style/EmptyLinesAroundAccessModifier: |
112 | | - Enabled: true |
113 | | - |
114 | | -Style/EmptyLinesAroundBlockBody: |
115 | | - EnforcedStyle: no_empty_lines |
116 | | - |
117 | | -Style/EmptyLinesAroundClassBody: |
118 | | - EnforcedStyle: no_empty_lines |
119 | | - |
120 | | -Style/EmptyLinesAroundModuleBody: |
121 | | - EnforcedStyle: no_empty_lines |
122 | | - |
123 | | -Style/EmptyLinesAroundMethodBody: |
124 | | - Enabled: true |
125 | | - |
126 | | -Style/EmptyLineBetweenDefs: |
127 | | - Enabled: true |
128 | | - |
129 | | -Style/LeadingCommentSpace: |
130 | | - Enabled: true |
131 | 51 |
|
132 | 52 | Style/TrailingCommaInLiteral: |
133 | 53 | EnforcedStyleForMultiline: no_comma |
134 | 54 |
|
135 | 55 | Style/TrailingCommaInArguments: |
136 | 56 | EnforcedStyleForMultiline: no_comma |
137 | 57 |
|
138 | | -Style/TrailingWhitespace: |
139 | | - Enabled: true |
140 | | - |
141 | 58 | Style/PercentLiteralDelimiters: |
142 | 59 | PreferredDelimiters: |
143 | 60 | '%': '{}' |
@@ -173,20 +90,105 @@ Style/VariableNumber: |
173 | 90 | Rails/HttpPositionalArguments: |
174 | 91 | Enabled: false |
175 | 92 |
|
176 | | -Style/IndentArray: |
177 | | - EnforcedStyle: consistent |
| 93 | +Rails/Blank: |
| 94 | + Enabled: false |
178 | 95 |
|
179 | 96 | Style/NumericLiterals: |
180 | 97 | Enabled: false |
181 | 98 |
|
182 | 99 | Style/Documentation: |
183 | 100 | Enabled: false |
184 | 101 |
|
185 | | -Style/SpaceInLambdaLiteral: |
| 102 | +Style/DoubleNegation: |
| 103 | + Enabled: false |
| 104 | + |
| 105 | +Layout/IndentArray: |
| 106 | + EnforcedStyle: consistent |
| 107 | + |
| 108 | +Layout/SpaceInLambdaLiteral: |
186 | 109 | EnforcedStyle: require_no_space |
187 | 110 |
|
188 | | -Style/DoubleNegation: |
| 111 | +Layout/AlignParameters: |
| 112 | + EnforcedStyle: with_fixed_indentation |
| 113 | + Enabled: true |
| 114 | + |
| 115 | +Layout/AlignHash: |
| 116 | + EnforcedHashRocketStyle: key |
| 117 | + EnforcedColonStyle: key |
| 118 | + EnforcedLastArgumentHashStyle: ignore_implicit |
| 119 | + |
| 120 | +Layout/IndentHash: |
| 121 | + EnforcedStyle: consistent |
| 122 | + |
| 123 | +Layout/IndentationWidth: |
| 124 | + Width: 2 |
| 125 | + |
| 126 | +Layout/MultilineOperationIndentation: |
| 127 | + EnforcedStyle: indented |
| 128 | + |
| 129 | +Layout/ClosingParenthesisIndentation: |
189 | 130 | Enabled: false |
190 | 131 |
|
191 | | -Metrics/LineLength: |
192 | | - Max: 100 |
| 132 | +Layout/SpaceInsideHashLiteralBraces: |
| 133 | + EnforcedStyle: no_space |
| 134 | + |
| 135 | +Layout/FirstParameterIndentation: |
| 136 | + EnforcedStyle: special_for_inner_method_call_in_parentheses |
| 137 | + |
| 138 | +Layout/ExtraSpacing: |
| 139 | + Enabled: true |
| 140 | + |
| 141 | +Layout/SpaceAfterColon: |
| 142 | + Enabled: true |
| 143 | + |
| 144 | +Layout/SpaceAfterComma: |
| 145 | + Enabled: true |
| 146 | + |
| 147 | +Layout/SpaceAfterNot: |
| 148 | + Enabled: true |
| 149 | + |
| 150 | +Layout/SpaceAroundEqualsInParameterDefault: |
| 151 | + EnforcedStyle: no_space |
| 152 | + |
| 153 | +Layout/SpaceBeforeBlockBraces: |
| 154 | + Enabled: false |
| 155 | + # EnforcedStyle: space |
| 156 | + |
| 157 | +Layout/SpaceInsideBlockBraces: |
| 158 | + EnforcedStyle: space |
| 159 | + EnforcedStyleForEmptyBraces: no_space |
| 160 | + # Space between { and |. Overrides EnforcedStyle if there is a conflict. |
| 161 | + SpaceBeforeBlockParameters: true |
| 162 | + |
| 163 | +Layout/SpaceInsideBrackets: |
| 164 | + Enabled: true |
| 165 | + |
| 166 | +Layout/SpaceInsideParens: |
| 167 | + Enabled: true |
| 168 | + |
| 169 | +Layout/EmptyLines: |
| 170 | + Enabled: true |
| 171 | + |
| 172 | +Layout/EmptyLinesAroundAccessModifier: |
| 173 | + Enabled: true |
| 174 | + |
| 175 | +Layout/EmptyLinesAroundBlockBody: |
| 176 | + EnforcedStyle: no_empty_lines |
| 177 | + |
| 178 | +Layout/EmptyLinesAroundClassBody: |
| 179 | + EnforcedStyle: no_empty_lines |
| 180 | + |
| 181 | +Layout/EmptyLinesAroundModuleBody: |
| 182 | + EnforcedStyle: no_empty_lines |
| 183 | + |
| 184 | +Layout/EmptyLinesAroundMethodBody: |
| 185 | + Enabled: true |
| 186 | + |
| 187 | +Layout/EmptyLineBetweenDefs: |
| 188 | + Enabled: true |
| 189 | + |
| 190 | +Layout/LeadingCommentSpace: |
| 191 | + Enabled: true |
| 192 | + |
| 193 | +Layout/TrailingWhitespace: |
| 194 | + Enabled: true |
0 commit comments