armitage-rubocop 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/armitage-rubocop.gemspec +2 -2
- data/lib/general/layout.yml +9 -0
- data/lib/general/naming.yml +4 -0
- data/lib/general/performance.yml +0 -12
- data/lib/general/rails.yml +10 -0
- data/lib/general/style.yml +12 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0bf9fa7a30766077438b5633f4fc5b0dd1c85437cf9d45b452c1406e68941d7
|
4
|
+
data.tar.gz: 300d10725e5a48f3128bb7582690befd0d6af01fd779c6a30af4c063b784b57d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231a52ae38b45cc2c148dee51c1c577289370770dc211dfbaf793f97799e080b45a9089eef64f279a4e7da2ea5127060eabc89e9dff2d89b0d7ca7cedb73ddc3
|
7
|
+
data.tar.gz: 6d97decb62aad2be61d187c42c168e0a8f1e580f88ae478d1c60987070f39378fce83faebcee98454768f5c3771e92a76f6e8cedb27c1a7bce2ce1375d0fbfcd
|
data/armitage-rubocop.gemspec
CHANGED
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'armitage-rubocop'
|
9
|
-
spec.version = '0.
|
9
|
+
spec.version = '0.25.0'
|
10
10
|
spec.license = 'MIT'
|
11
11
|
spec.authors = ['Rustam Ibragimov']
|
12
12
|
spec.email = ['iamdaiver@icloud.com']
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
22
|
end
|
23
23
|
|
24
|
-
spec.add_dependency 'rubocop', '= 0.
|
24
|
+
spec.add_dependency 'rubocop', '= 0.67.2'
|
25
25
|
spec.add_dependency 'rubocop-rspec', '= 1.32.0'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'bundler'
|
data/lib/general/layout.yml
CHANGED
@@ -219,6 +219,15 @@ Layout/MultilineOperationIndentation:
|
|
219
219
|
EnforcedStyle: aligned
|
220
220
|
IndentationWidth: ~
|
221
221
|
|
222
|
+
Layout/MultilineHashKeyLineBreaks:
|
223
|
+
Enabled: false
|
224
|
+
|
225
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
Layout/MultilineArrayLineBreaks:
|
229
|
+
Enabled: false
|
230
|
+
|
222
231
|
Layout/RescueEnsureAlignment:
|
223
232
|
Enabled: true
|
224
233
|
|
data/lib/general/naming.yml
CHANGED
data/lib/general/performance.yml
CHANGED
@@ -40,9 +40,6 @@ Performance/FlatMap:
|
|
40
40
|
Performance/InefficientHashSearch:
|
41
41
|
Enabled: true
|
42
42
|
|
43
|
-
Performance/LstripRstrip:
|
44
|
-
Enabled: true
|
45
|
-
|
46
43
|
Performance/OpenStruct:
|
47
44
|
Enabled: true
|
48
45
|
|
@@ -59,18 +56,12 @@ Performance/RedundantMerge:
|
|
59
56
|
Enabled: true
|
60
57
|
MaxKeyValuePairs: 2
|
61
58
|
|
62
|
-
Performance/RedundantSortBy:
|
63
|
-
Enabled: true
|
64
|
-
|
65
59
|
Performance/RegexpMatch:
|
66
60
|
Enabled: true
|
67
61
|
|
68
62
|
Performance/ReverseEach:
|
69
63
|
Enabled: true
|
70
64
|
|
71
|
-
Performance/Sample:
|
72
|
-
Enabled: true
|
73
|
-
|
74
65
|
Performance/Size:
|
75
66
|
Enabled: true
|
76
67
|
|
@@ -88,8 +79,5 @@ Performance/TimesMap:
|
|
88
79
|
Performance/UnfreezeString:
|
89
80
|
Enabled: true
|
90
81
|
|
91
|
-
Performance/UnneededSort:
|
92
|
-
Enabled: true
|
93
|
-
|
94
82
|
Performance/UriDefaultParser:
|
95
83
|
Enabled: true
|
data/lib/general/rails.yml
CHANGED
@@ -5,6 +5,11 @@ Rails/ActionFilter:
|
|
5
5
|
Rails/ActiveRecordAliases:
|
6
6
|
Enabled: true
|
7
7
|
|
8
|
+
Rails/ActiveRecordOverride:
|
9
|
+
Enabled: true
|
10
|
+
Include:
|
11
|
+
- app/models/**/*.rb
|
12
|
+
|
8
13
|
Rails/ActiveSupportAliases:
|
9
14
|
Enabled: true
|
10
15
|
|
@@ -107,6 +112,11 @@ Rails/Present:
|
|
107
112
|
Rails/ReadWriteAttribute:
|
108
113
|
Enabled: true
|
109
114
|
|
115
|
+
Rails/RedundantAllowNil:
|
116
|
+
Enabled: true
|
117
|
+
Include:
|
118
|
+
- app/models/**/*.rb
|
119
|
+
|
110
120
|
Rails/RedundantReceiverInWithOptions:
|
111
121
|
Enabled: true
|
112
122
|
|
data/lib/general/style.yml
CHANGED
@@ -385,6 +385,9 @@ Style/RedundantReturn:
|
|
385
385
|
Style/RedundantSelf:
|
386
386
|
Enabled: true
|
387
387
|
|
388
|
+
Style/RedundantSortBy:
|
389
|
+
Enabled: true
|
390
|
+
|
388
391
|
Style/RegexpLiteral:
|
389
392
|
Enabled: false
|
390
393
|
|
@@ -400,6 +403,9 @@ Style/ReturnNil:
|
|
400
403
|
Style/SafeNavigation:
|
401
404
|
Enabled: true
|
402
405
|
|
406
|
+
Style/Sample:
|
407
|
+
Enabled: true
|
408
|
+
|
403
409
|
Style/SelfAssignment:
|
404
410
|
Enabled: true
|
405
411
|
|
@@ -448,6 +454,9 @@ Style/StringLiteralsInInterpolation:
|
|
448
454
|
Style/StringMethods:
|
449
455
|
Enabled: false
|
450
456
|
|
457
|
+
Style/Strip:
|
458
|
+
Enabled: true
|
459
|
+
|
451
460
|
Style/StructInheritance:
|
452
461
|
Enabled: true
|
453
462
|
|
@@ -512,6 +521,9 @@ Style/UnneededInterpolation:
|
|
512
521
|
Style/UnneededPercentQ:
|
513
522
|
Enabled: true
|
514
523
|
|
524
|
+
Style/UnneededSort:
|
525
|
+
Enabled: true
|
526
|
+
|
515
527
|
Style/UnpackFirst:
|
516
528
|
Enabled: true
|
517
529
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: armitage-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Ibragimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.67.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.67.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|