armitage-rubocop 0.82.0.2 → 0.85.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: d4b2be69a4b5346c363d8012a6346a71bcba42fffeed0d690fa59a0ebe4e607f
4
- data.tar.gz: 27344328c3a216ca6542dcbcc6d4ed8b31b3b41622e4f88dec61605766f7215b
3
+ metadata.gz: 801ba79bcde3092cf474495c6193f0741ecf7255aa6823e03bd040c6ee99416b
4
+ data.tar.gz: 30d05d1f766efdebb0358b5ef85b515722bb218c47bfd031eb5a14997a09286f
5
5
  SHA512:
6
- metadata.gz: fa6777ec47fa937285cdd5aff37ab510df136da1afda3d6235804b8e180cb94d4ea63a2ac9e25ce90b6ee5364a605ca275726f1a59a12eb6706f3e785e68bcbf
7
- data.tar.gz: 8b9822eb1b66832220a92e43c3a230d36f15d0de117eb3fad6a7dca47a7e35a2ed754f1d98692312a7f9fe521f1517ff214e58838bcb61d1e57908c5263ffa40
6
+ metadata.gz: 7a2c4f90aeec589490828b9548a14647c8d418e0e8ba3f124337bd6927b3a4128471b54221b90221d72acbd270859c8ee6ffae0cb0171d35cc5f40253a0e221b
7
+ data.tar.gz: a6386d38de5ad307b23b5aa24e98b7afb120822914d623d84bb5827e6d04b62990458d47c2639935438b5b85fbeb99e0341aa53b0dfcf2597a82a9d3acddcb3f
@@ -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 = '0.82.0.2'
7
+ spec.version = '0.85.1'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,10 +22,10 @@ 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', '= 0.82.0'
26
- spec.add_dependency 'rubocop-performance', '= 1.5.2'
27
- spec.add_dependency 'rubocop-rails', '= 2.5.2'
28
- spec.add_dependency 'rubocop-rspec', '= 1.39.0'
25
+ spec.add_dependency 'rubocop', '= 0.85.1'
26
+ spec.add_dependency 'rubocop-performance', '= 1.6.1'
27
+ spec.add_dependency 'rubocop-rails', '= 2.6.0'
28
+ spec.add_dependency 'rubocop-rspec', '= 1.40.0'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.5.1'
30
30
 
31
31
  spec.add_development_dependency 'bundler'
@@ -64,6 +64,7 @@ Layout/CommentIndentation:
64
64
 
65
65
  Layout/ConditionPosition:
66
66
  Enabled: true
67
+ AutoCorrect: true
67
68
 
68
69
  Layout/DefEndAlignment:
69
70
  Enabled: true
@@ -89,6 +90,15 @@ Layout/EmptyLineAfterGuardClause:
89
90
  Layout/EmptyLineAfterMagicComment:
90
91
  Enabled: true
91
92
 
93
+ Layout/EmptyLinesAroundAttributeAccessor:
94
+ Enabled: true
95
+ AllowAliasSyntax: true
96
+ AllowedMethods:
97
+ - alias_method
98
+ - public
99
+ - protected
100
+ - private
101
+
92
102
  Layout/EmptyLineBetweenDefs:
93
103
  Enabled: true
94
104
  NumberOfEmptyLines: 1
@@ -182,7 +192,6 @@ Layout/FirstHashElementIndentation:
182
192
 
183
193
  Layout/HeredocIndentation:
184
194
  Enabled: true
185
- EnforcedStyle: squiggly
186
195
 
187
196
  Layout/IndentationConsistency:
188
197
  Enabled: true
@@ -26,6 +26,9 @@ Lint/Debugger:
26
26
  Lint/DeprecatedClassMethods:
27
27
  Enabled: true
28
28
 
29
+ Lint/DeprecatedOpenSSLConstant:
30
+ Enabled: true
31
+
29
32
  Lint/DuplicateCaseCondition:
30
33
  Enabled: true
31
34
 
@@ -53,9 +56,11 @@ Lint/EmptyInterpolation:
53
56
 
54
57
  Lint/EmptyWhen:
55
58
  Enabled: false
59
+ AllowComments: true
56
60
 
57
61
  Lint/EnsureReturn:
58
62
  Enabled: true
63
+ AutoCorrect: false
59
64
 
60
65
  Lint/ErbNewArguments:
61
66
  Enabled: true
@@ -107,6 +112,10 @@ Lint/Loop:
107
112
  Lint/MissingCopEnableDirective:
108
113
  Enabled: true
109
114
 
115
+ Lint/MixedRegexpCaptureTypes:
116
+ Enabled: true
117
+ # NOTE: if you use named captures - numbered captures will be ignored. it is bad. validate it.
118
+
110
119
  Lint/MultipleComparison:
111
120
  Enabled: true
112
121
 
@@ -131,10 +140,9 @@ Lint/NumberConversion:
131
140
  Lint/OrderedMagicComments:
132
141
  Enabled: true
133
142
 
134
- # WARNING!!!
135
143
  Lint/ParenthesesAsGroupedExpression:
136
- Enabled: false
137
- # WARNING!!!
144
+ Enabled: true
145
+ AutoCorrect: true
138
146
 
139
147
  Lint/PercentStringArray:
140
148
  Enabled: true
@@ -243,6 +251,12 @@ Lint/UriRegexp:
243
251
 
244
252
  Lint/UselessAccessModifier:
245
253
  Enabled: true
254
+ ContextCreatingMethods: []
255
+ MethodCreatingMethods:
256
+ - delegate
257
+ - def_delegator
258
+ - def_delegators
259
+ AutoCorrect: true
246
260
 
247
261
  Lint/UselessAssignment:
248
262
  Enabled: true
@@ -9,6 +9,7 @@ Naming/BinaryOperatorParameterName:
9
9
 
10
10
  Naming/ClassAndModuleCamelCase:
11
11
  Enabled: true
12
+ AllowedNames: []
12
13
 
13
14
  Naming/ConstantName:
14
15
  Enabled: true
@@ -17,6 +18,7 @@ Naming/FileName:
17
18
  Enabled: true
18
19
  ExpectMatchingDefinition: false
19
20
  IgnoreExecutableScripts: true
21
+ CheckDefinitionPathHierarchy: false
20
22
 
21
23
  Naming/HeredocDelimiterCase:
22
24
  Enabled: true
@@ -1,3 +1,6 @@
1
+ Performance/BindCall:
2
+ Enabled: true
3
+
1
4
  Performance/Caller:
2
5
  Enabled: true
3
6
 
@@ -18,6 +21,12 @@ Performance/Count:
18
21
  Enabled: true
19
22
  SafeAutoCorrect: false
20
23
 
24
+ Performance/DeletePrefix:
25
+ Enabled: true
26
+
27
+ Performance/DeleteSuffix:
28
+ Enabled: true
29
+
21
30
  Performance/Detect:
22
31
  Enabled: true
23
32
  SafeAutoCorrect: false
@@ -27,6 +27,7 @@ Rails/ApplicationMailer:
27
27
 
28
28
  Rails/RakeEnvironment:
29
29
  Enabled: true
30
+ AutoCorrect: true
30
31
 
31
32
  Rails/AssertNot:
32
33
  Enabled: true
@@ -44,6 +45,9 @@ Rails/BulkChangeTable:
44
45
  Rails/CreateTableWithTimestamps:
45
46
  Enabled: false
46
47
 
48
+ Rails/ContentTag:
49
+ Enabled: true
50
+
47
51
  Rails/Date:
48
52
  Enabled: true
49
53
  EnforcedStyle: flexible
@@ -56,6 +60,12 @@ Rails/DelegateAllowBlank:
56
60
 
57
61
  Rails/DynamicFindBy:
58
62
  Enabled: true
63
+ Whitelist:
64
+ - find_by_sql
65
+ AllowedMethods:
66
+ - find_by_sql
67
+ AllowedReceivers:
68
+ - Gem::Specification
59
69
 
60
70
  Rails/EnumHash:
61
71
  Enabled: true
@@ -120,6 +130,9 @@ Rails/Output:
120
130
  Rails/OutputSafety:
121
131
  Enabled: false
122
132
 
133
+ Rails/Pick:
134
+ Enabled: true
135
+
123
136
  Rails/PluralizationGrammar:
124
137
  Enabled: true
125
138
 
@@ -137,6 +150,9 @@ Rails/RedundantAllowNil:
137
150
  Include:
138
151
  - app/models/**/*.rb
139
152
 
153
+ Rails/RedundantForeignKey:
154
+ Enabled: false
155
+
140
156
  Rails/RedundantReceiverInWithOptions:
141
157
  Enabled: true
142
158
 
@@ -107,6 +107,7 @@ Style/DocumentationMethod:
107
107
 
108
108
  Style/DoubleNegation:
109
109
  Enabled: false
110
+ EnforcedStyle: allowed_in_returns
110
111
 
111
112
  Style/EachForSimpleLoop:
112
113
  Enabled: false
@@ -212,6 +213,7 @@ Style/IfUnlessModifierOfIfUnless:
212
213
 
213
214
  Style/IfWithSemicolon:
214
215
  Enabled: true
216
+ AutoCorrect: true
215
217
 
216
218
  Style/ImplicitRuntimeError:
217
219
  Enabled: false
@@ -396,6 +398,12 @@ Style/RedundantBegin:
396
398
  Style/RedundantConditional:
397
399
  Enabled: true
398
400
 
401
+ Style/RedundantRegexpCharacterClass:
402
+ Enabled: true
403
+
404
+ Style/RedundantRegexpEscape:
405
+ Enabled: true
406
+
399
407
  Style/RedundantException:
400
408
  Enabled: false
401
409
 
@@ -457,6 +465,9 @@ Style/SingleLineMethods:
457
465
  Exclude:
458
466
  - spec/**/*
459
467
 
468
+ Style/SlicingWithRange:
469
+ Enabled: true
470
+
460
471
  Style/SpecialGlobalVars:
461
472
  Enabled: true
462
473
 
@@ -233,6 +233,14 @@ RSpec/SubjectStub:
233
233
  RSpec/UnspecifiedException:
234
234
  Enabled: true
235
235
 
236
+ RSpec/VariableDefinition:
237
+ Enabled: true
238
+ EnforcedStyle: symbols
239
+
240
+ RSpec/VariableName:
241
+ Enabled: true
242
+ EnforcedStyle: snake_case
243
+
236
244
  RSpec/VerifiedDoubles:
237
245
  Enabled: false
238
246
  IgnoreNameless: true
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.82.0.2
4
+ version: 0.85.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-05-01 00:00:00.000000000 Z
11
+ date: 2020-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.82.0
19
+ version: 0.85.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: 0.82.0
26
+ version: 0.85.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.5.2
33
+ version: 1.6.1
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.5.2
40
+ version: 1.6.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.5.2
47
+ version: 2.6.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.5.2
54
+ version: 2.6.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.39.0
61
+ version: 1.40.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.39.0
68
+ version: 1.40.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement