rubocop-kyanagi 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d76c791bce89357b5fa2575b1654b2683413d1cb6d44bd50616e410a1cf214a7
4
+ data.tar.gz: b85d8ab244c28feaf240d21f98daa82ddb752ffd5a8c5fdd7c1b805c0ea4b141
5
+ SHA512:
6
+ metadata.gz: 914b94917ba9084a63e98682dc28137ef4aa265723e69c4350fbb6cb6ad390bd29f9ba8edc2db194a70dd0e131b0543f5b5d04db504d78317621832b7d4904b6
7
+ data.tar.gz: fe3fe8262f6e17ef6965cbe7686173a0509bef95524c98d079c8d6dec9d46d2347a289b6b3ea78a63311b5cbb0cdaf5ba16f862f0b8bca5f39e38f72b4a41c06
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Kouhei Yanagita
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # Ruby styling of @kyanagi
2
+
3
+ My personal RuboCop configurations.
4
+
5
+ ## Installation
6
+
7
+ Add the following entry to your Gemfile:
8
+
9
+ ```ruby
10
+ gem "kyanagi_cop", require: false, group: [:development]
11
+ ```
12
+
13
+ Then run `bundle install`.
14
+
15
+ Edit your `.rubocop.yml`:
16
+
17
+ ```yml
18
+ inherit_gem:
19
+ kyanagi_cop:
20
+ - ruby.yml
21
+ - rails.yml
22
+ - rspec.yml
23
+ - factory_bot.yml
24
+ ```
25
+
26
+ If you do not need certain configurations, specify only the required YAML files.
27
+
28
+ ## Author
29
+
30
+ Kouhei Yanagita
31
+
32
+ ## License
33
+
34
+ [MIT](https://opensource.org/license/mit/)
data/factory_bot.yml ADDED
@@ -0,0 +1,32 @@
1
+ require:
2
+ - rubocop-factory_bot
3
+
4
+ AllCops:
5
+ DisabledByDefault: true
6
+
7
+ FactoryBot:
8
+ Enabled: false
9
+ Include:
10
+ - "spec/factories/**/*.rb"
11
+ - "test/factories/**/*.rb"
12
+
13
+ FactoryBot/AttributeDefinedStatically:
14
+ Enabled: true
15
+
16
+ FactoryBot/CreateList:
17
+ Enabled: true
18
+
19
+ FactoryBot/FactoryAssociationWithStrategy:
20
+ Enabled: true
21
+
22
+ FactoryBot/FactoryClassName:
23
+ Enabled: true
24
+
25
+ FactoryBot/FactoryNameStyle:
26
+ Enabled: true
27
+
28
+ FactoryBot/RedundantFactoryOption:
29
+ Enabled: true
30
+
31
+ FactoryBot/SyntaxMethods:
32
+ Enabled: true
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "rubocop-kyanagi"
5
+ spec.version = "0.0.1"
6
+ spec.authors = ["Kouhei Yanagita"]
7
+ spec.email = ["yanagi@shakenbu.org"]
8
+
9
+ spec.summary = "kyanagi's personal RuboCop configurations"
10
+ spec.description = "kyanagi's personal RuboCop configurations"
11
+ spec.homepage = "https://github.com/kyanagi/rubocop-kyanagi"
12
+ spec.license = "MIT"
13
+
14
+ spec.metadata["homepage_uri"] = spec.homepage
15
+ spec.metadata["source_code_uri"] = spec.homepage
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+
19
+ spec.add_dependency "rubocop-rubycw"
20
+ spec.add_dependency "rubocop-performance"
21
+ spec.add_dependency "rubocop-rails"
22
+ spec.add_dependency "rubocop-rspec"
23
+ spec.add_dependency "rubocop-factory_bot"
24
+ end
data/rails.yml ADDED
@@ -0,0 +1,204 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ AllCops:
5
+ DisabledByDefault: true
6
+ NewCops: enable
7
+ Exclude:
8
+ - "bin/*"
9
+ - "db/*schema.rb"
10
+ - "db/migrate/**/*"
11
+ - "vendor/**/*"
12
+ - "node_modules/**/*"
13
+ - "tmp/**/*"
14
+
15
+ Rails/ActionControllerFlashBeforeRender:
16
+ Enabled: true
17
+
18
+ Rails/ActionOrder:
19
+ Enabled: true
20
+
21
+ Rails/ActiveRecordCallbacksOrder:
22
+ Enabled: true
23
+
24
+ Rails/ActiveRecordOverride:
25
+ Enabled: true
26
+
27
+ Rails/AttributeDefaultBlockValue:
28
+ Enabled: true
29
+
30
+ Rails/BelongsTo:
31
+ Enabled: true
32
+
33
+ Rails/BulkChangeTable:
34
+ Enabled: true
35
+ Database: mysql
36
+
37
+ Rails/CompactBlank:
38
+ Enabled: true
39
+
40
+ Rails/ContentTag:
41
+ Enabled: true
42
+
43
+ Rails/CreateTableWithTimestamps:
44
+ Enabled: true
45
+
46
+ Rails/DangerousColumnNames:
47
+ Enabled: true
48
+
49
+ Rails/Date:
50
+ Enabled: true
51
+
52
+ Rails/EagerEvaluationLogMessage:
53
+ Enabled: true
54
+
55
+ Rails/EnumHash:
56
+ Enabled: true
57
+
58
+ Rails/EnumSyntax:
59
+ Enabled: true
60
+
61
+ Rails/EnumUniqueness:
62
+ Enabled: true
63
+
64
+ Rails/EnvLocal:
65
+ Enabled: true
66
+
67
+ Rails/FindEach:
68
+ Enabled: true
69
+
70
+ Rails/FreezeTime:
71
+ Enabled: true
72
+
73
+ Rails/HasManyOrHasOneDependent:
74
+ Enabled: true
75
+
76
+ Rails/HelperInstanceVariable:
77
+ Enabled: true
78
+
79
+ Rails/HttpPositionalArguments:
80
+ Enabled: true
81
+
82
+ Rails/HttpStatus:
83
+ Enabled: true
84
+ EnforcedStyle: numeric
85
+
86
+ Rails/IgnoredSkipActionFilterOption:
87
+ Enabled: true
88
+
89
+ Rails/IndexBy:
90
+ Enabled: true
91
+
92
+ Rails/IndexWith:
93
+ Enabled: true
94
+
95
+ Rails/InverseOf:
96
+ Enabled: true
97
+
98
+ Rails/LexicallyScopedActionFilter:
99
+ Enabled: true
100
+
101
+ Rails/MailerName:
102
+ Enabled: true
103
+
104
+ Rails/MigrationClassName:
105
+ Enabled: true
106
+
107
+ Rails/NotNullColumn:
108
+ Enabled: true
109
+
110
+ Rails/Output:
111
+ Enabled: true
112
+
113
+ Rails/OutputSafety:
114
+ Enabled: true
115
+
116
+ Rails/Pick:
117
+ Enabled: true
118
+
119
+ Rails/Pluck:
120
+ Enabled: true
121
+
122
+ Rails/PluckInWhere:
123
+ Enabled: true
124
+
125
+ Rails/Presence:
126
+ Enabled: true
127
+
128
+ Rails/RakeEnvironment:
129
+ Enabled: true
130
+
131
+ Rails/RedundantActiveRecordAllMethod:
132
+ Enabled: true
133
+
134
+ Rails/RedundantAllowNil:
135
+ Enabled: true
136
+
137
+ Rails/RedundantForeignKey:
138
+ Enabled: true
139
+
140
+ Rails/RedundantPresenceValidationOnBelongsTo:
141
+ Enabled: true
142
+
143
+ Rails/RedundantTravelBack:
144
+ Enabled: true
145
+
146
+ Rails/ReflectionClassName:
147
+ Enabled: true
148
+
149
+ Rails/RelativeDateConstant:
150
+ Enabled: true
151
+
152
+ Rails/RenderPlainText:
153
+ Enabled: true
154
+
155
+ Rails/ResponseParsedBody:
156
+ Enabled: true
157
+
158
+ Rails/ReversibleMigration:
159
+ Enabled: true
160
+
161
+ Rails/ScopeArgs:
162
+ Enabled: true
163
+
164
+ Rails/ThreeStateBooleanColumn:
165
+ Enabled: true
166
+
167
+ Rails/TimeZone:
168
+ Enabled: true
169
+
170
+ Rails/ToFormattedS:
171
+ Enabled: true
172
+
173
+ Rails/ToSWithArgument:
174
+ Enabled: true
175
+
176
+ Rails/TopLevelHashWithIndifferentAccess:
177
+ Enabled: true
178
+
179
+ Rails/UniqBeforePluck:
180
+ Enabled: true
181
+
182
+ Rails/UniqueValidationWithoutIndex:
183
+ Enabled: true
184
+
185
+ Rails/UnknownEnv:
186
+ Enabled: true
187
+
188
+ Rails/UnusedRenderContent:
189
+ Enabled: true
190
+
191
+ Rails/Validation:
192
+ Enabled: true
193
+
194
+ Rails/WhereEquals:
195
+ Enabled: true
196
+
197
+ Rails/WhereMissing:
198
+ Enabled: true
199
+
200
+ Rails/WhereNotWithMultipleConditions:
201
+ Enabled: true
202
+
203
+ Rails/WhereRange:
204
+ Enabled: true
data/rspec.yml ADDED
@@ -0,0 +1,158 @@
1
+ require:
2
+ - rubocop-rspec
3
+
4
+ AllCops:
5
+ DisabledByDefault: true
6
+ NewCops: enable
7
+ Exclude:
8
+ - "bin/*"
9
+ - "db/*schema.rb"
10
+ - "db/migrate/**/*"
11
+ - "vendor/**/*"
12
+ - "node_modules/**/*"
13
+ - "tmp/**/*"
14
+
15
+ RSpec/AroundBlock:
16
+ Enabled: true
17
+
18
+ RSpec/BeEq:
19
+ Enabled: true
20
+
21
+ RSpec/BeEql:
22
+ Enabled: true
23
+
24
+ RSpec/BeNil:
25
+ Enabled: true
26
+
27
+ RSpec/BeforeAfterAll:
28
+ Enabled: true
29
+
30
+ RSpec/ClassCheck:
31
+ Enabled: true
32
+
33
+ RSpec/ContainExactly:
34
+ Enabled: true
35
+
36
+ RSpec/ContextMethod:
37
+ Enabled: true
38
+
39
+ RSpec/EmptyExampleGroup:
40
+ Enabled: true
41
+
42
+ RSpec/EmptyHook:
43
+ Enabled: true
44
+
45
+ RSpec/EmptyLineAfterExample:
46
+ Enabled: true
47
+
48
+ RSpec/EmptyLineAfterExampleGroup:
49
+ Enabled: true
50
+
51
+ RSpec/EmptyLineAfterFinalLet:
52
+ Enabled: true
53
+
54
+ RSpec/EmptyLineAfterHook:
55
+ Enabled: true
56
+
57
+ RSpec/Eq:
58
+ Enabled: true
59
+
60
+ RSpec/ExpectActual:
61
+ Enabled: true
62
+
63
+ RSpec/Focus:
64
+ Enabled: true
65
+
66
+ RSpec/HookArgument:
67
+ Enabled: true
68
+
69
+ RSpec/HooksBeforeExamples:
70
+ Enabled: true
71
+
72
+ RSpec/ImplicitBlockExpectation:
73
+ Enabled: true
74
+
75
+ RSpec/ImplicitSubject:
76
+ Enabled: true
77
+ EnforcedStyle: disallow
78
+
79
+ RSpec/IndexedLet:
80
+ Enabled: true
81
+
82
+ RSpec/ItBehavesLike:
83
+ Enabled: true
84
+
85
+ RSpec/IteratedExpectation:
86
+ Enabled: true
87
+
88
+ RSpec/LeakyConstantDeclaration:
89
+ Enabled: true
90
+
91
+ RSpec/LetBeforeExamples:
92
+ Enabled: true
93
+
94
+ RSpec/LetSetup:
95
+ Enabled: true
96
+
97
+ RSpec/MatchArray:
98
+ Enabled: true
99
+
100
+ RSpec/MissingExpectationTargetMethod:
101
+ Enabled: true
102
+
103
+ RSpec/NoExpectationExample:
104
+ Enabled: true
105
+
106
+ RSpec/NotToNot:
107
+ Enabled: true
108
+
109
+ RSpec/OverwritingSetup:
110
+ Enabled: true
111
+
112
+ RSpec/PredicateMatcher:
113
+ Enabled: true
114
+
115
+ RSpec/ReceiveMessages:
116
+ Enabled: true
117
+
118
+ RSpec/RedundantPredicateMatcher:
119
+ Enabled: true
120
+
121
+ RSpec/ScatteredLet:
122
+ Enabled: true
123
+
124
+ RSpec/ScatteredSetup:
125
+ Enabled: true
126
+
127
+ RSpec/SharedContext:
128
+ Enabled: true
129
+
130
+ RSpec/SingleArgumentMessageChain:
131
+ Enabled: true
132
+
133
+ RSpec/SpecFilePathFormat:
134
+ Enabled: true
135
+
136
+ RSpec/SpecFilePathSuffix:
137
+ Enabled: true
138
+
139
+ RSpec/StubbedMock:
140
+ Enabled: true
141
+
142
+ RSpec/VariableDefinition:
143
+ Enabled: true
144
+
145
+ RSpec/VariableName:
146
+ Enabled: true
147
+
148
+ RSpec/VerifiedDoubleReference:
149
+ Enabled: true
150
+
151
+ RSpec/VerifiedDoubles:
152
+ Enabled: true
153
+
154
+ RSpec/VoidExpect:
155
+ Enabled: true
156
+
157
+ RSpec/Yield:
158
+ Enabled: true
data/ruby.yml ADDED
@@ -0,0 +1,854 @@
1
+ require:
2
+ - rubocop-rubycw
3
+ - rubocop-performance
4
+
5
+ AllCops:
6
+ DisabledByDefault: true
7
+ NewCops: enable
8
+ Exclude:
9
+ - "bin/*"
10
+ - "db/*schema.rb"
11
+ - "db/migrate/**/*"
12
+ - "vendor/**/*"
13
+ - "node_modules/**/*"
14
+ - "tmp/**/*"
15
+
16
+ Rubycw/Rubycw:
17
+ Enabled: true
18
+
19
+ Bundler:
20
+ Enabled: true
21
+
22
+ Security:
23
+ Enabled: true
24
+
25
+ Lint:
26
+ Enabled: true
27
+
28
+ Lint/MissingCopEnableDirective:
29
+ Enabled: false
30
+
31
+ Naming:
32
+ Enabled: true
33
+
34
+ Naming/AsciiIdentifiers:
35
+ Enabled: false
36
+
37
+ Naming/MethodParameterName:
38
+ MinNameLength: 1
39
+
40
+ Layout/AccessModifierIndentation:
41
+ Enabled: true
42
+
43
+ Layout/ArgumentAlignment:
44
+ Enabled: true
45
+
46
+ Layout/ArrayAlignment:
47
+ Enabled: true
48
+ EnforcedStyle: with_fixed_indentation
49
+
50
+ Layout/AssignmentIndentation:
51
+ Enabled: true
52
+
53
+ Layout/BeginEndAlignment:
54
+ Enabled: true
55
+
56
+ Layout/BlockAlignment:
57
+ Enabled: true
58
+ EnforcedStyleAlignWith: start_of_block
59
+
60
+ Layout/BlockEndNewline:
61
+ Enabled: true
62
+
63
+ Layout/CaseIndentation:
64
+ Enabled: true
65
+
66
+ Layout/ClosingParenthesisIndentation:
67
+ Enabled: true
68
+
69
+ Layout/CommentIndentation:
70
+ Enabled: true
71
+
72
+ Layout/ConditionPosition:
73
+ Enabled: true
74
+
75
+ Layout/DefEndAlignment:
76
+ Enabled: true
77
+
78
+ Layout/DotPosition:
79
+ Enabled: true
80
+
81
+ Layout/ElseAlignment:
82
+ Enabled: true
83
+
84
+ Layout/EmptyComment:
85
+ Enabled: true
86
+
87
+ Layout/EmptyLineAfterMagicComment:
88
+ Enabled: true
89
+
90
+ Layout/EmptyLineBetweenDefs:
91
+ Enabled: true
92
+
93
+ Layout/EmptyLines:
94
+ Enabled: true
95
+
96
+ Layout/EmptyLinesAroundAccessModifier:
97
+ Enabled: true
98
+
99
+ Layout/EmptyLinesAroundArguments:
100
+ Enabled: true
101
+
102
+ Layout/EmptyLinesAroundAttributeAccessor:
103
+ Enabled: true
104
+
105
+ Layout/EmptyLinesAroundBeginBody:
106
+ Enabled: true
107
+
108
+ Layout/EmptyLinesAroundBlockBody:
109
+ Enabled: true
110
+
111
+ Layout/EmptyLinesAroundClassBody:
112
+ Enabled: true
113
+
114
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
115
+ Enabled: true
116
+
117
+ Layout/EmptyLinesAroundMethodBody:
118
+ Enabled: true
119
+
120
+ Layout/EmptyLinesAroundModuleBody:
121
+ Enabled: true
122
+
123
+ Layout/ExtraSpacing:
124
+ Enabled: true
125
+
126
+ Layout/EndAlignment:
127
+ Enabled: true
128
+
129
+ Layout/EndOfLine:
130
+ Enabled: true
131
+ EnforcedStyle: lf
132
+
133
+ Layout/FirstArgumentIndentation:
134
+ Enabled: true
135
+
136
+ Layout/FirstArrayElementIndentation:
137
+ Enabled: true
138
+ EnforcedStyle: consistent
139
+
140
+ Layout/FirstHashElementIndentation:
141
+ Enabled: true
142
+ EnforcedStyle: consistent
143
+
144
+ Layout/FirstParameterIndentation:
145
+ Enabled: true
146
+
147
+ Layout/HashAlignment:
148
+ Enabled: true
149
+
150
+ Layout/IndentationConsistency:
151
+ Enabled: true
152
+
153
+ Layout/IndentationStyle:
154
+ Enabled: true
155
+
156
+ Layout/IndentationWidth:
157
+ Enabled: true
158
+
159
+ Layout/InitialIndentation:
160
+ Enabled: true
161
+
162
+ Layout/LeadingCommentSpace:
163
+ Enabled: true
164
+ AllowRBSInlineAnnotation: true
165
+ AllowSteepAnnotation: true
166
+
167
+ Layout/LeadingEmptyLines:
168
+ Enabled: true
169
+
170
+ Layout/LineContinuationSpacing:
171
+ Enabled: true
172
+
173
+ Layout/LineLength:
174
+ Enabled: true
175
+ Max: 140
176
+
177
+ Layout/MultilineArrayBraceLayout:
178
+ Enabled: true
179
+
180
+ Layout/MultilineBlockLayout:
181
+ Enabled: true
182
+
183
+ Layout/MultilineHashBraceLayout:
184
+ Enabled: true
185
+
186
+ Layout/MultilineMethodCallBraceLayout:
187
+ Enabled: true
188
+
189
+ Layout/MultilineMethodCallIndentation:
190
+ Enabled: true
191
+ EnforcedStyle: indented
192
+
193
+ Layout/MultilineMethodDefinitionBraceLayout:
194
+ Enabled: true
195
+ EnforcedStyle: same_line
196
+
197
+ Layout/MultilineOperationIndentation:
198
+ Enabled: true
199
+ EnforcedStyle: indented
200
+
201
+ Layout/ParameterAlignment:
202
+ Enabled: true
203
+
204
+ Layout/RescueEnsureAlignment:
205
+ Enabled: true
206
+
207
+ Layout/SpaceAfterColon:
208
+ Enabled: true
209
+
210
+ Layout/SpaceAfterComma:
211
+ Enabled: true
212
+
213
+ Layout/SpaceAfterMethodName:
214
+ Enabled: true
215
+
216
+ Layout/SpaceAfterNot:
217
+ Enabled: true
218
+
219
+ Layout/SpaceAfterSemicolon:
220
+ Enabled: true
221
+
222
+ Layout/SpaceAroundBlockParameters:
223
+ Enabled: true
224
+
225
+ Layout/SpaceAroundEqualsInParameterDefault:
226
+ Enabled: true
227
+
228
+ Layout/SpaceAroundKeyword:
229
+ Enabled: true
230
+
231
+ Layout/SpaceAroundMethodCallOperator:
232
+ Enabled: true
233
+
234
+ Layout/SpaceBeforeBlockBraces:
235
+ Enabled: true
236
+
237
+ Layout/SpaceBeforeBrackets:
238
+ Enabled: true
239
+
240
+ Layout/SpaceBeforeComma:
241
+ Enabled: true
242
+
243
+ Layout/SpaceBeforeComment:
244
+ Enabled: true
245
+
246
+ Layout/SpaceBeforeFirstArg:
247
+ Enabled: true
248
+
249
+ Layout/SpaceBeforeSemicolon:
250
+ Enabled: true
251
+
252
+ Layout/SpaceInLambdaLiteral:
253
+ Enabled: true
254
+
255
+ Layout/SpaceInsideArrayLiteralBrackets:
256
+ Enabled: true
257
+
258
+ Layout/SpaceInsideArrayPercentLiteral:
259
+ Enabled: true
260
+
261
+ Layout/SpaceInsideBlockBraces:
262
+ Enabled: true
263
+ EnforcedStyleForEmptyBraces: space
264
+
265
+ Layout/SpaceInsideHashLiteralBraces:
266
+ Enabled: true
267
+
268
+ Layout/SpaceInsideParens:
269
+ Enabled: true
270
+
271
+ Layout/SpaceInsidePercentLiteralDelimiters:
272
+ Enabled: true
273
+
274
+ Layout/SpaceInsideReferenceBrackets:
275
+ Enabled: true
276
+
277
+ Layout/SpaceInsideStringInterpolation:
278
+ Enabled: true
279
+
280
+ Layout/TrailingEmptyLines:
281
+ Enabled: true
282
+
283
+ Layout/TrailingWhitespace:
284
+ Enabled: true
285
+
286
+ Style/AmbiguousEndlessMethodDefinition:
287
+ Enabled: true
288
+
289
+ Style/ArgumentsForwarding:
290
+ Enabled: true
291
+
292
+ Style/ArrayIntersect:
293
+ Enabled: true
294
+
295
+ Style/ArrayJoin:
296
+ Enabled: true
297
+
298
+ Style/Attr:
299
+ Enabled: true
300
+
301
+ Style/AutoResourceCleanup:
302
+ Enabled: true
303
+
304
+ Style/BarePercentLiterals:
305
+ Enabled: true
306
+ EnforcedStyle: percent_q
307
+
308
+ Style/BlockDelimiters:
309
+ Enabled: true
310
+ EnforcedStyle: line_count_based
311
+
312
+ Style/CaseEquality:
313
+ Enabled: true
314
+
315
+ Style/CaseLikeIf:
316
+ Enabled: true
317
+
318
+ Style/CharacterLiteral:
319
+ Enabled: true
320
+
321
+ Style/ClassAndModuleChildren:
322
+ Enabled: true
323
+
324
+ Style/ClassCheck:
325
+ Enabled: true
326
+
327
+ Style/ClassEqualityComparison:
328
+ Enabled: true
329
+
330
+ Style/ClassMethods:
331
+ Enabled: true
332
+
333
+ Style/ClassVars:
334
+ Enabled: true
335
+
336
+ Style/CollectionCompact:
337
+ Enabled: true
338
+
339
+ Style/ColonMethodCall:
340
+ Enabled: true
341
+
342
+ Style/ColonMethodDefinition:
343
+ Enabled: true
344
+
345
+ Style/CombinableDefined:
346
+ Enabled: true
347
+
348
+ Style/CommentAnnotation:
349
+ Enabled: true
350
+
351
+ Style/ComparableClamp:
352
+ Enabled: true
353
+
354
+ Style/ConcatArrayLiterals:
355
+ Enabled: true
356
+
357
+ Style/DataInheritance:
358
+ Enabled: true
359
+
360
+ Style/DefWithParentheses:
361
+ Enabled: true
362
+
363
+ Style/DigChain:
364
+ Enabled: true
365
+
366
+ Style/Dir:
367
+ Enabled: true
368
+
369
+ Style/DirEmpty:
370
+ Enabled: true
371
+
372
+ Style/DocumentDynamicEvalDefinition:
373
+ Enabled: true
374
+
375
+ Style/DoubleCopDisableDirective:
376
+ Enabled: true
377
+
378
+ Style/EachForSimpleLoop:
379
+ Enabled: true
380
+
381
+ Style/EachWithObject:
382
+ Enabled: true
383
+
384
+ Style/EmptyBlockParameter:
385
+ Enabled: true
386
+
387
+ Style/EmptyElse:
388
+ Enabled: true
389
+
390
+ Style/EmptyHeredoc:
391
+ Enabled: true
392
+
393
+ Style/EmptyLambdaParameter:
394
+ Enabled: true
395
+
396
+ Style/EmptyLiteral:
397
+ Enabled: true
398
+
399
+ Style/EmptyMethod:
400
+ Enabled: true
401
+
402
+ Style/Encoding:
403
+ Enabled: true
404
+
405
+ Style/EndlessMethod:
406
+ Enabled: true
407
+
408
+ Style/EnvHome:
409
+ Enabled: true
410
+
411
+ Style/EvalWithLocation:
412
+ Enabled: true
413
+
414
+ Style/ExpandPathArguments:
415
+ Enabled: true
416
+
417
+ Style/ExplicitBlockArgument:
418
+ Enabled: true
419
+
420
+ Style/FileRead:
421
+ Enabled: true
422
+
423
+ Style/FileWrite:
424
+ Enabled: true
425
+
426
+ Style/For:
427
+ Enabled: true
428
+
429
+ Style/FormatString:
430
+ Enabled: true
431
+ EnforcedStyle: sprintf
432
+
433
+ Style/GlobalStdStream:
434
+ Enabled: true
435
+
436
+ Style/GlobalVars:
437
+ Enabled: true
438
+
439
+ Style/HashAsLastArrayItem:
440
+ Enabled: true
441
+
442
+ Style/HashConversion:
443
+ Enabled: true
444
+
445
+ Style/HashEachMethods:
446
+ Enabled: true
447
+
448
+ Style/HashLikeCase:
449
+ Enabled: true
450
+
451
+ Style/HashSyntax:
452
+ Enabled: true
453
+
454
+ Style/HashTransformKeys:
455
+ Enabled: true
456
+
457
+ Style/HashTransformValues:
458
+ Enabled: true
459
+
460
+ Style/IdenticalConditionalBranches:
461
+ Enabled: true
462
+
463
+ Style/IfInsideElse:
464
+ Enabled: true
465
+
466
+ Style/IfUnlessModifierOfIfUnless:
467
+ Enabled: true
468
+
469
+ Style/IfWithSemicolon:
470
+ Enabled: true
471
+
472
+ Style/KeywordArgumentsMerging:
473
+ Enabled: true
474
+
475
+ Style/KeywordParametersOrder:
476
+ Enabled: true
477
+
478
+ Style/Lambda:
479
+ Enabled: true
480
+ EnforcedStyle: literal
481
+
482
+ Style/LambdaCall:
483
+ Enabled: true
484
+
485
+ Style/MagicCommentFormat:
486
+ Enabled: true
487
+
488
+ Style/MapCompactWithConditionalBlock:
489
+ Enabled: true
490
+
491
+ Style/MapIntoArray:
492
+ Enabled: true
493
+
494
+ Style/MapToHash:
495
+ Enabled: true
496
+
497
+ Style/MapToSet:
498
+ Enabled: true
499
+
500
+ Style/MethodCallWithoutArgsParentheses:
501
+ Enabled: true
502
+
503
+ Style/MethodDefParentheses:
504
+ Enabled: true
505
+
506
+ Style/MinMax:
507
+ Enabled: true
508
+
509
+ Style/MinMaxComparison:
510
+ Enabled: true
511
+
512
+ Style/MissingRespondToMissing:
513
+ Enabled: true
514
+
515
+ Style/MixinGrouping:
516
+ Enabled: true
517
+
518
+ Style/MixinUsage:
519
+ Enabled: true
520
+
521
+ Style/MultilineIfModifier:
522
+ Enabled: true
523
+
524
+ Style/MultilineIfThen:
525
+ Enabled: true
526
+
527
+ Style/MultilineInPatternThen:
528
+ Enabled: true
529
+
530
+ Style/MultilineMemoization:
531
+ Enabled: true
532
+
533
+ Style/MultilineTernaryOperator:
534
+ Enabled: true
535
+
536
+ Style/MultilineWhenThen:
537
+ Enabled: true
538
+
539
+ # Style/MutableConstant:
540
+ # Enabled: true
541
+
542
+ Style/NestedFileDirname:
543
+ Enabled: true
544
+
545
+ Style/NestedModifier:
546
+ Enabled: true
547
+
548
+ Style/NestedParenthesizedCalls:
549
+ Enabled: true
550
+
551
+ Style/NestedTernaryOperator:
552
+ Enabled: true
553
+
554
+ Style/NilComparison:
555
+ Enabled: true
556
+
557
+ Style/NonNilCheck:
558
+ Enabled: true
559
+
560
+ Style/Not:
561
+ Enabled: true
562
+
563
+ Style/NumericLiteralPrefix:
564
+ Enabled: true
565
+
566
+ Style/NumericPredicate:
567
+ Enabled: true
568
+ EnforcedStyle: comparison
569
+
570
+ Style/ObjectThen:
571
+ Enabled: true
572
+
573
+ Style/OneLineConditional:
574
+ Enabled: true
575
+
576
+ Style/OpenStructUse:
577
+ Enabled: true
578
+
579
+ Style/OperatorMethodCall:
580
+ Enabled: true
581
+
582
+ Style/OptionalArguments:
583
+ Enabled: true
584
+
585
+ Style/OptionalBooleanParameter:
586
+ Enabled: true
587
+
588
+ Style/OrAssignment:
589
+ Enabled: true
590
+
591
+ Style/ParenthesesAroundCondition:
592
+ Enabled: true
593
+
594
+ Style/PreferredHashMethods:
595
+ Enabled: true
596
+
597
+ Style/Proc:
598
+ Enabled: true
599
+
600
+ Style/QuotedSymbols:
601
+ Enabled: true
602
+
603
+ Style/RaiseArgs:
604
+ Enabled: true
605
+
606
+ Style/RandomWithOffset:
607
+ Enabled: true
608
+
609
+ Style/RedundantArrayConstructor:
610
+ Enabled: true
611
+
612
+ Style/RedundantAssignment:
613
+ Enabled: true
614
+
615
+ Style/RedundantBegin:
616
+ Enabled: true
617
+
618
+ Style/RedundantCapitalW:
619
+ Enabled: true
620
+
621
+ Style/RedundantCondition:
622
+ Enabled: true
623
+
624
+ Style/RedundantConditional:
625
+ Enabled: true
626
+
627
+ Style/RedundantCurrentDirectoryInPath:
628
+ Enabled: true
629
+
630
+ Style/RedundantDoubleSplatHashBraces:
631
+ Enabled: true
632
+
633
+ Style/RedundantEach:
634
+ Enabled: true
635
+
636
+ Style/RedundantException:
637
+ Enabled: true
638
+
639
+ Style/RedundantFetchBlock:
640
+ Enabled: true
641
+
642
+ Style/RedundantFileExtensionInRequire:
643
+ Enabled: true
644
+
645
+ Style/RedundantFilterChain:
646
+ Enabled: true
647
+
648
+ Style/RedundantFreeze:
649
+ Enabled: true
650
+
651
+ Style/RedundantHeredocDelimiterQuotes:
652
+ Enabled: true
653
+
654
+ Style/RedundantInitialize:
655
+ Enabled: true
656
+
657
+ Style/RedundantInterpolation:
658
+ Enabled: true
659
+
660
+ Style/RedundantInterpolationUnfreeze:
661
+ Enabled: true
662
+
663
+ Style/RedundantLineContinuation:
664
+ Enabled: true
665
+
666
+ Style/RedundantParentheses:
667
+ Enabled: true
668
+
669
+ Style/RedundantRegexpArgument:
670
+ Enabled: true
671
+
672
+ Style/RedundantRegexpCharacterClass:
673
+ Enabled: true
674
+
675
+ Style/RedundantRegexpConstructor:
676
+ Enabled: true
677
+
678
+ Style/RedundantRegexpEscape:
679
+ Enabled: true
680
+
681
+ Style/RedundantReturn:
682
+ Enabled: true
683
+
684
+ Style/RedundantSelf:
685
+ Enabled: true
686
+
687
+ Style/RedundantSelfAssignment:
688
+ Enabled: true
689
+
690
+ Style/RedundantSelfAssignmentBranch:
691
+ Enabled: true
692
+
693
+ Style/RedundantSort:
694
+ Enabled: true
695
+
696
+ Style/RedundantSortBy:
697
+ Enabled: true
698
+
699
+ Style/RedundantStringEscape:
700
+ Enabled: true
701
+
702
+ Style/RegexpLiteral:
703
+ Enabled: true
704
+
705
+ Style/RescueModifier:
706
+ Enabled: true
707
+
708
+ Style/RescueStandardError:
709
+ Enabled: true
710
+ EnforcedStyle: implicit
711
+
712
+ Style/ReturnNilInPredicateMethodDefinition:
713
+ Enabled: true
714
+
715
+ Style/SafeNavigation:
716
+ Enabled: true
717
+
718
+ Style/Sample:
719
+ Enabled: true
720
+
721
+ Style/SelfAssignment:
722
+ Enabled: true
723
+
724
+ Style/Semicolon:
725
+ Enabled: true
726
+ AllowAsExpressionSeparator: true
727
+
728
+ Style/SignalException:
729
+ Enabled: true
730
+
731
+ Style/SingleArgumentDig:
732
+ Enabled: true
733
+
734
+ Style/SingleLineDoEndBlock:
735
+ Enabled: true
736
+
737
+ Style/SingleLineMethods:
738
+ Enabled: true
739
+
740
+ Style/SlicingWithRange:
741
+ Enabled: true
742
+
743
+ Style/SoleNestedConditional:
744
+ Enabled: true
745
+
746
+ Style/SpecialGlobalVars:
747
+ Enabled: true
748
+ EnforcedStyle: use_builtin_english_names
749
+
750
+ Style/StabbyLambdaParentheses:
751
+ Enabled: true
752
+
753
+ Style/StderrPuts:
754
+ Enabled: true
755
+
756
+ Style/StringChars:
757
+ Enabled: true
758
+
759
+ Style/StringLiterals:
760
+ Enabled: true
761
+ EnforcedStyle: double_quotes
762
+ Include:
763
+ - "app/**/*"
764
+ - "lib/**/*"
765
+ - "test/**/*"
766
+ - "spec/**/*"
767
+
768
+ Style/StringLiteralsInInterpolation:
769
+ Enabled: true
770
+
771
+ Style/Strip:
772
+ Enabled: true
773
+
774
+ Style/StructInheritance:
775
+ Enabled: true
776
+
777
+ Style/SuperArguments:
778
+ Enabled: true
779
+
780
+ Style/SuperWithArgsParentheses:
781
+ Enabled: true
782
+
783
+ Style/SwapValues:
784
+ Enabled: true
785
+
786
+ Style/SymbolArray:
787
+ Enabled: true
788
+ EnforcedStyle: brackets
789
+
790
+ Style/SymbolLiteral:
791
+ Enabled: true
792
+
793
+ Style/TrailingBodyOnClass:
794
+ Enabled: true
795
+
796
+ Style/TrailingBodyOnMethodDefinition:
797
+ Enabled: true
798
+
799
+ Style/TrailingBodyOnModule:
800
+ Enabled: true
801
+
802
+ Style/TrailingCommaInArguments:
803
+ Enabled: true
804
+
805
+ Style/TrailingCommaInArrayLiteral:
806
+ Enabled: true
807
+ EnforcedStyleForMultiline: consistent_comma
808
+
809
+ Style/TrailingCommaInHashLiteral:
810
+ Enabled: true
811
+ EnforcedStyleForMultiline: consistent_comma
812
+
813
+ Style/TrailingMethodEndStatement:
814
+ Enabled: true
815
+
816
+ Style/TrivialAccessors:
817
+ Enabled: true
818
+
819
+ Style/UnlessElse:
820
+ Enabled: true
821
+
822
+ Style/UnpackFirst:
823
+ Enabled: true
824
+
825
+ Style/VariableInterpolation:
826
+ Enabled: true
827
+
828
+ Style/WhileUntilDo:
829
+ Enabled: true
830
+
831
+ Style/YAMLFileRead:
832
+ Enabled: true
833
+
834
+ Style/YodaCondition:
835
+ Enabled: true
836
+ EnforcedStyle: forbid_for_equality_operators_only
837
+
838
+ Style/ZeroLengthPredicate:
839
+ Enabled: true
840
+
841
+ Performance/FlatMap:
842
+ Enabled: true
843
+
844
+ Performance/MapCompact:
845
+ Enabled: true
846
+
847
+ Performance/RangeInclude:
848
+ Enabled: true
849
+
850
+ Performance/RegexpMatch:
851
+ Enabled: true
852
+
853
+ Performance/ReverseEach:
854
+ Enabled: true
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-kyanagi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kouhei Yanagita
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-01-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop-rubycw
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-factory_bot
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: kyanagi's personal RuboCop configurations
84
+ email:
85
+ - yanagi@shakenbu.org
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - LICENSE.txt
91
+ - README.md
92
+ - factory_bot.yml
93
+ - kyanagi_cop.gemspec
94
+ - rails.yml
95
+ - rspec.yml
96
+ - ruby.yml
97
+ homepage: https://github.com/kyanagi/rubocop-kyanagi
98
+ licenses:
99
+ - MIT
100
+ metadata:
101
+ homepage_uri: https://github.com/kyanagi/rubocop-kyanagi
102
+ source_code_uri: https://github.com/kyanagi/rubocop-kyanagi
103
+ post_install_message:
104
+ rdoc_options: []
105
+ require_paths:
106
+ - lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ requirements: []
118
+ rubygems_version: 3.5.22
119
+ signing_key:
120
+ specification_version: 4
121
+ summary: kyanagi's personal RuboCop configurations
122
+ test_files: []