meowcop 2.7.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/rubocop.yml +40 -2
- data/lib/meowcop.rb +4 -1
- data/lib/meowcop/cli.rb +29 -19
- data/lib/meowcop/version.rb +2 -2
- metadata +19 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 072ae96e1b565e8a6f39a67b7691e8e6aa7d0c64837a37dbe4c10202a0ffa359
|
4
|
+
data.tar.gz: 2ac706b4aa7e57c81323a1425c101a8ea614e70574e2d05a47ca62712de82e8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78c43e20c35dc97a082e2c78636d77ac68a750f7ef7daaacf74412d8095aff20e9fd81cc55929722afdd373f9aa82fa16c7a014de9abff89a7f7ba6d7881d197
|
7
|
+
data.tar.gz: 3a441bbe972276a44ebc1cc6fcf5da3d93e0633eb4164bc2f96d46c4403f6071fd3ddc3ccc7c9b95810f74c3fbb1941a0dbd67d3595a785fe9ce772063d0cfcb
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/meowcop.svg)](https://badge.fury.io/rb/meowcop)
|
4
4
|
|
5
5
|
MeowCop is a gem for shareable [RuboCop](https://www.rubocop.org) configuration, it focuses [Lint](https://en.wikipedia.org/wiki/Lint_(software)).
|
6
|
-
It's recommended by Sider
|
6
|
+
It's recommended by Sider.
|
7
7
|
|
8
8
|
## Design
|
9
9
|
|
data/config/rubocop.yml
CHANGED
@@ -106,6 +106,8 @@ Layout/EmptyLineAfterGuardClause:
|
|
106
106
|
Enabled: false
|
107
107
|
Layout/EmptyLinesAroundAccessModifier:
|
108
108
|
Enabled: false
|
109
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
110
|
+
Enabled: false
|
109
111
|
Layout/EmptyLinesAroundBeginBody:
|
110
112
|
Enabled: false
|
111
113
|
Layout/EmptyLinesAroundBlockBody:
|
@@ -180,6 +182,8 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
180
182
|
Enabled: false
|
181
183
|
Layout/SpaceAroundKeyword:
|
182
184
|
Enabled: false
|
185
|
+
Layout/SpaceAroundMethodCallOperator:
|
186
|
+
Enabled: false
|
183
187
|
Layout/SpaceAroundOperators:
|
184
188
|
Enabled: false
|
185
189
|
Layout/SpaceBeforeBlockBraces:
|
@@ -256,10 +260,14 @@ Naming/MethodParameterName:
|
|
256
260
|
# === Disabled cops: BEGIN ===
|
257
261
|
Style/AccessModifierDeclarations:
|
258
262
|
Enabled: false
|
263
|
+
Style/AccessorGrouping:
|
264
|
+
Enabled: false
|
259
265
|
Style/Alias:
|
260
266
|
Enabled: false
|
261
267
|
Style/AndOr:
|
262
268
|
Enabled: false
|
269
|
+
Style/ArrayCoercion:
|
270
|
+
Enabled: false
|
263
271
|
Style/ArrayJoin:
|
264
272
|
Enabled: false
|
265
273
|
Style/AsciiComments:
|
@@ -272,14 +280,16 @@ Style/BarePercentLiterals:
|
|
272
280
|
Enabled: false
|
273
281
|
Style/BeginBlock:
|
274
282
|
Enabled: false
|
283
|
+
Style/BisectedAttrAccessor:
|
284
|
+
Enabled: false
|
275
285
|
Style/BlockComments:
|
276
286
|
Enabled: false
|
277
287
|
Style/BlockDelimiters:
|
278
288
|
Enabled: false
|
279
|
-
Style/BracesAroundHashParameters:
|
280
|
-
Enabled: false
|
281
289
|
Style/CaseEquality:
|
282
290
|
Enabled: false
|
291
|
+
Style/CaseLikeIf:
|
292
|
+
Enabled: false
|
283
293
|
Style/CharacterLiteral:
|
284
294
|
Enabled: false
|
285
295
|
Style/ClassAndModuleChildren:
|
@@ -314,6 +324,8 @@ Style/DefWithParentheses:
|
|
314
324
|
Enabled: false
|
315
325
|
Style/Dir:
|
316
326
|
Enabled: false
|
327
|
+
Style/DisableCopsWithinSourceCodeDirective:
|
328
|
+
Enabled: false
|
317
329
|
Style/Documentation:
|
318
330
|
Enabled: false
|
319
331
|
Style/DocumentationMethod:
|
@@ -348,6 +360,8 @@ Style/EvenOdd:
|
|
348
360
|
Enabled: false
|
349
361
|
Style/ExpandPathArguments:
|
350
362
|
Enabled: false
|
363
|
+
Style/ExponentialNotation:
|
364
|
+
Enabled: false
|
351
365
|
Style/FloatDivision:
|
352
366
|
Enabled: false
|
353
367
|
Style/For:
|
@@ -362,8 +376,18 @@ Style/GlobalVars:
|
|
362
376
|
Enabled: false
|
363
377
|
Style/GuardClause:
|
364
378
|
Enabled: false
|
379
|
+
Style/HashAsLastArrayItem:
|
380
|
+
Enabled: false
|
381
|
+
Style/HashEachMethods:
|
382
|
+
Enabled: false
|
383
|
+
Style/HashLikeCase:
|
384
|
+
Enabled: false
|
365
385
|
Style/HashSyntax:
|
366
386
|
Enabled: false
|
387
|
+
Style/HashTransformKeys:
|
388
|
+
Enabled: false
|
389
|
+
Style/HashTransformValues:
|
390
|
+
Enabled: false
|
367
391
|
Style/IdenticalConditionalBranches:
|
368
392
|
Enabled: false
|
369
393
|
Style/IfInsideElse:
|
@@ -482,6 +506,8 @@ Style/RaiseArgs:
|
|
482
506
|
Enabled: false
|
483
507
|
Style/RandomWithOffset:
|
484
508
|
Enabled: false
|
509
|
+
Style/RedundantAssignment:
|
510
|
+
Enabled: false
|
485
511
|
Style/RedundantBegin:
|
486
512
|
Enabled: false
|
487
513
|
Style/RedundantCapitalW:
|
@@ -492,6 +518,10 @@ Style/RedundantConditional:
|
|
492
518
|
Enabled: false
|
493
519
|
Style/RedundantException:
|
494
520
|
Enabled: false
|
521
|
+
Style/RedundantFetchBlock:
|
522
|
+
Enabled: false
|
523
|
+
Style/RedundantFileExtensionInRequire:
|
524
|
+
Enabled: false
|
495
525
|
Style/RedundantFreeze:
|
496
526
|
Enabled: false
|
497
527
|
Style/RedundantInterpolation:
|
@@ -500,6 +530,10 @@ Style/RedundantParentheses:
|
|
500
530
|
Enabled: false
|
501
531
|
Style/RedundantPercentQ:
|
502
532
|
Enabled: false
|
533
|
+
Style/RedundantRegexpCharacterClass:
|
534
|
+
Enabled: false
|
535
|
+
Style/RedundantRegexpEscape:
|
536
|
+
Enabled: false
|
503
537
|
Style/RedundantReturn:
|
504
538
|
Enabled: false
|
505
539
|
Style/RedundantSelf:
|
@@ -532,6 +566,8 @@ Style/SingleLineBlockParams:
|
|
532
566
|
Enabled: false
|
533
567
|
Style/SingleLineMethods:
|
534
568
|
Enabled: false
|
569
|
+
Style/SlicingWithRange:
|
570
|
+
Enabled: false
|
535
571
|
Style/SpecialGlobalVars:
|
536
572
|
Enabled: false
|
537
573
|
Style/StabbyLambdaParentheses:
|
@@ -566,6 +602,8 @@ Style/TrailingCommaInArguments:
|
|
566
602
|
Enabled: false
|
567
603
|
Style/TrailingCommaInArrayLiteral:
|
568
604
|
Enabled: false
|
605
|
+
Style/TrailingCommaInBlockArgs:
|
606
|
+
Enabled: false
|
569
607
|
Style/TrailingCommaInHashLiteral:
|
570
608
|
Enabled: false
|
571
609
|
Style/TrailingMethodEndStatement:
|
data/lib/meowcop.rb
CHANGED
data/lib/meowcop/cli.rb
CHANGED
@@ -23,17 +23,24 @@
|
|
23
23
|
# THE SOFTWARE.
|
24
24
|
require 'fileutils'
|
25
25
|
|
26
|
-
module
|
26
|
+
module MeowCop
|
27
27
|
class CLI
|
28
28
|
CONFIG_FILE_NAME = ".rubocop.yml".freeze
|
29
29
|
|
30
|
+
EXIT_SUCCESS = 0
|
31
|
+
EXIT_FAILURE = 1
|
32
|
+
|
33
|
+
Options = Struct.new(:version, :help)
|
34
|
+
|
30
35
|
def self.start(args)
|
31
36
|
action_name = args.shift || 'help'
|
32
37
|
|
33
38
|
instance = self.new
|
39
|
+
|
34
40
|
unless instance.public_methods(false).include?(action_name.to_sym)
|
35
|
-
puts "Could not find command #{action_name}."
|
36
|
-
|
41
|
+
puts "Could not find command '#{action_name}'."
|
42
|
+
instance.help(args)
|
43
|
+
return EXIT_FAILURE
|
37
44
|
end
|
38
45
|
|
39
46
|
instance.public_send(action_name, args)
|
@@ -44,30 +51,33 @@ module Meowcop
|
|
44
51
|
FileUtils.copy_file(config_file_path, CONFIG_FILE_NAME)
|
45
52
|
puts "Meow! #{CONFIG_FILE_NAME} has been #{action} successfully."
|
46
53
|
|
47
|
-
|
54
|
+
EXIT_SUCCESS
|
48
55
|
end
|
49
56
|
|
50
57
|
def run(args)
|
51
58
|
require 'rubocop'
|
52
59
|
|
53
|
-
|
54
|
-
args = [
|
55
|
-
'--config', config_file_path,
|
56
|
-
*args
|
57
|
-
]
|
58
|
-
cli.run(args)
|
60
|
+
RuboCop::CLI.new.run(['--config', config_file_path, *args])
|
59
61
|
end
|
60
62
|
|
61
63
|
def help(_args)
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
64
|
+
puts <<-END
|
65
|
+
Usage: meowcop <command>
|
66
|
+
|
67
|
+
Commands:
|
68
|
+
init Setup .rubocop.yml
|
69
|
+
run Run RuboCop with MeowCop
|
70
|
+
version Show version
|
71
|
+
help Show help
|
72
|
+
END
|
73
|
+
|
74
|
+
EXIT_SUCCESS
|
75
|
+
end
|
76
|
+
|
77
|
+
def version(_args)
|
78
|
+
puts VERSION
|
79
|
+
|
80
|
+
EXIT_SUCCESS
|
71
81
|
end
|
72
82
|
|
73
83
|
private
|
data/lib/meowcop/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "2.
|
1
|
+
module MeowCop
|
2
|
+
VERSION = "2.12.0".freeze
|
3
3
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meowcop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sleeek Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.88.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.88.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -36,32 +36,26 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '3.0'
|
39
|
+
version: '2.1'
|
43
40
|
type: :development
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
44
|
- - ">="
|
48
45
|
- !ruby/object:Gem::Version
|
49
|
-
version: '1
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '3.0'
|
46
|
+
version: '2.1'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: rake
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
|
-
- - "
|
51
|
+
- - ">="
|
58
52
|
- !ruby/object:Gem::Version
|
59
53
|
version: '13.0'
|
60
54
|
type: :development
|
61
55
|
prerelease: false
|
62
56
|
version_requirements: !ruby/object:Gem::Requirement
|
63
57
|
requirements:
|
64
|
-
- - "
|
58
|
+
- - ">="
|
65
59
|
- !ruby/object:Gem::Version
|
66
60
|
version: '13.0'
|
67
61
|
- !ruby/object:Gem::Dependency
|
@@ -70,43 +64,43 @@ dependencies:
|
|
70
64
|
requirements:
|
71
65
|
- - ">="
|
72
66
|
- !ruby/object:Gem::Version
|
73
|
-
version: 5.
|
67
|
+
version: '5.14'
|
74
68
|
type: :development
|
75
69
|
prerelease: false
|
76
70
|
version_requirements: !ruby/object:Gem::Requirement
|
77
71
|
requirements:
|
78
72
|
- - ">="
|
79
73
|
- !ruby/object:Gem::Version
|
80
|
-
version: 5.
|
74
|
+
version: '5.14'
|
81
75
|
- !ruby/object:Gem::Dependency
|
82
76
|
name: minitest-reporters
|
83
77
|
requirement: !ruby/object:Gem::Requirement
|
84
78
|
requirements:
|
85
79
|
- - ">="
|
86
80
|
- !ruby/object:Gem::Version
|
87
|
-
version: 1.
|
81
|
+
version: '1.4'
|
88
82
|
type: :development
|
89
83
|
prerelease: false
|
90
84
|
version_requirements: !ruby/object:Gem::Requirement
|
91
85
|
requirements:
|
92
86
|
- - ">="
|
93
87
|
- !ruby/object:Gem::Version
|
94
|
-
version: 1.
|
88
|
+
version: '1.4'
|
95
89
|
- !ruby/object:Gem::Dependency
|
96
90
|
name: activesupport
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
98
92
|
requirements:
|
99
|
-
- - "
|
93
|
+
- - ">="
|
100
94
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
95
|
+
version: '5.2'
|
102
96
|
type: :development
|
103
97
|
prerelease: false
|
104
98
|
version_requirements: !ruby/object:Gem::Requirement
|
105
99
|
requirements:
|
106
|
-
- - "
|
100
|
+
- - ">="
|
107
101
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
109
|
-
description: MeowCop is a RuboCop configuration recommended by Sider
|
102
|
+
version: '5.2'
|
103
|
+
description: MeowCop is a RuboCop configuration recommended by Sider.
|
110
104
|
email: support@sider.review
|
111
105
|
executables:
|
112
106
|
- meowcop
|
@@ -136,14 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
130
|
requirements:
|
137
131
|
- - ">="
|
138
132
|
- !ruby/object:Gem::Version
|
139
|
-
version: 2.
|
133
|
+
version: 2.4.0
|
140
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
135
|
requirements:
|
142
136
|
- - ">="
|
143
137
|
- !ruby/object:Gem::Version
|
144
138
|
version: '0'
|
145
139
|
requirements: []
|
146
|
-
rubygems_version: 3.1.
|
140
|
+
rubygems_version: 3.1.4
|
147
141
|
signing_key:
|
148
142
|
specification_version: 4
|
149
143
|
summary: A RuboCop configuration focusing Lint
|