armitage-rubocop 1.2.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f224eff3263b19fd9dd64b5783d656806e0def874f3c708376baa3ea44ea9b73
4
- data.tar.gz: 4e20193c21cb9f90e9e87569b6db63592ead287053c23468a3cd7a20c8a7554e
3
+ metadata.gz: fea71e911b6cc9479c86d2437befcf1e73c435da8faac6925aea6fd42bea49a0
4
+ data.tar.gz: b3668511d94edc22244f8103914722cc960ebf0a1e8d7af1358d3639aa32dbba
5
5
  SHA512:
6
- metadata.gz: e2c1e6486619014452d5150e85e4c2924bd245536309bb7a33235c8f3ac847c9a0c4509eb0e86ada8a16ddd91df56283fb10214bd2a23d15425e12e31084d6b9
7
- data.tar.gz: b5f736c62c0f55de2841628ab21489e01b2938f68de3b25722ebc442f6c43983497f95fd5ce1bc8121ac4a232112d0619f086b4cb117ead908300217dd42810f
6
+ metadata.gz: e1c96bcac6f1bb54b0a040a6639c1577b2cf3409b099fa1c459fb70121906cef3ae9bb864eafb1ad5f621079f6229baffc415746921ace1765f776b1d2749cd1
7
+ data.tar.gz: e1114919a49bb3da37243776be9d65120d55597c9def152a25cb1da8d593282ec20d9bb3f0e807b51d0a1c5ce14fb4ab9945bb97d72c3f53cd08b24898375a70
@@ -4,7 +4,7 @@ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.version = '1.2.0'
7
+ spec.version = '1.3.1'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
22
22
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
23
  end
24
24
 
25
- spec.add_dependency 'rubocop', '= 1.2.0'
26
- spec.add_dependency 'rubocop-performance', '= 1.8.1'
25
+ spec.add_dependency 'rubocop', '= 1.3.1'
26
+ spec.add_dependency 'rubocop-performance', '= 1.9.0'
27
27
  spec.add_dependency 'rubocop-rails', '= 2.8.1'
28
28
  spec.add_dependency 'rubocop-rspec', '= 2.0.0'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.5.1'
@@ -25,6 +25,8 @@ Lint/CircularArgumentReference:
25
25
 
26
26
  Lint/ConstantDefinitionInBlock:
27
27
  Enabled: false
28
+ AllowedMethods:
29
+ - enums
28
30
 
29
31
  Lint/ConstantResolution:
30
32
  Enabled: false
@@ -44,6 +46,9 @@ Lint/DisjunctiveAssignmentInConstructor:
44
46
  Enabled: true
45
47
  AutoCorrect: false
46
48
 
49
+ Lint/DuplicateBranch:
50
+ Enabled: true
51
+
47
52
  Lint/DuplicateCaseCondition:
48
53
  Enabled: true
49
54
 
@@ -76,6 +81,10 @@ Lint/EmptyBlock:
76
81
  Enabled: true
77
82
  AllowComments: true
78
83
 
84
+ Lint/EmptyClass:
85
+ Enabled: false
86
+ AllowComments: true
87
+
79
88
  Lint/EmptyConditionalBody:
80
89
  Enabled: true
81
90
  AllowComments: true
@@ -75,3 +75,6 @@ Naming/VariableName:
75
75
  Naming/VariableNumber:
76
76
  Enabled: true
77
77
  EnforcedStyle: snake_case
78
+ CheckMethodNames: true
79
+ CheckSymbols: true
80
+ AllowedIdentifiers: []
@@ -1,3 +1,6 @@
1
+ Performance/ArraySemiInfiniteRangeSlice:
2
+ Enabled: true
3
+
1
4
  Performance/AncestorsInclude:
2
5
  Enabled: true
3
6
 
@@ -7,8 +10,13 @@ Performance/BindCall:
7
10
  Performance/BigDecimalWithNumericArgument:
8
11
  Enabled: true
9
12
 
13
+ Performance/BlockGivenWithExplicitBlock:
14
+ Enabled: false
15
+ AutoCorrect: true
16
+
10
17
  Performance/Caller:
11
18
  Enabled: true
19
+ AutoCorrect: true
12
20
 
13
21
  Performance/CaseWhenSplat:
14
22
  Enabled: true
@@ -27,6 +35,9 @@ Performance/CollectionLiteralInLoop:
27
35
  Enabled: true
28
36
  MinSize: 1
29
37
 
38
+ Performance/ConstantRegexp:
39
+ Enabled: true
40
+
30
41
  Performance/Count:
31
42
  Enabled: true
32
43
  SafeAutoCorrect: false
@@ -62,6 +73,9 @@ Performance/InefficientHashSearch:
62
73
  Performance/IoReadlines:
63
74
  Enabled: true
64
75
 
76
+ Performance/MethodObjectAsBlock:
77
+ Enabled: true
78
+
65
79
  Performance/OpenStruct:
66
80
  Enabled: true
67
81
 
@@ -114,6 +128,7 @@ Performance/StringReplacement:
114
128
 
115
129
  Performance/Sum:
116
130
  Enabled: true
131
+ AutoCorrect: true
117
132
 
118
133
  Performance/TimesMap:
119
134
  Enabled: true
@@ -121,6 +136,7 @@ Performance/TimesMap:
121
136
 
122
137
  Performance/UnfreezeString:
123
138
  Enabled: true
139
+ AutoCorrect: true
124
140
 
125
141
  Performance/UriDefaultParser:
126
142
  Enabled: true
@@ -262,6 +262,7 @@ Style/IdenticalConditionalBranches:
262
262
  Style/IfInsideElse:
263
263
  Enabled: true
264
264
  AllowIfModifier: true
265
+ AutoCorrect: true
265
266
 
266
267
  Style/IfUnlessModifier:
267
268
  Enabled: false
@@ -397,6 +398,9 @@ Style/NilComparison:
397
398
  Enabled: true
398
399
  EnforcedStyle: comparison
399
400
 
401
+ Style/NilLambda:
402
+ Enabled: false
403
+
400
404
  Style/NonNilCheck:
401
405
  Enabled: true
402
406
  IncludeSemanticChanges: false
@@ -557,6 +561,9 @@ Style/SlicingWithRange:
557
561
  Style/SpecialGlobalVars:
558
562
  Enabled: true
559
563
 
564
+ Style/StaticClass:
565
+ Enabled: true
566
+
560
567
  Style/StabbyLambdaParentheses:
561
568
  Enabled: true
562
569
  EnforcedStyle: require_parentheses
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: 1.2.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-08 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.0
19
+ version: 1.3.1
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: 1.2.0
26
+ version: 1.3.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.8.1
33
+ version: 1.9.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.8.1
40
+ version: 1.9.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.1.2
182
+ rubygems_version: 3.2.0.rc.1
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: A set of rubocop settings