simplycop 1.5.0 → 1.6.0

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: 076036bcf8a50fab9721ef1a9bc81c58c1b37be20b72b6882fbbcd55505f7071
4
- data.tar.gz: f246b21e0afd394b49dbafd4445c90734f6232488d7d1578a4e3b118dff9ef53
3
+ metadata.gz: 22367bc02ae870de21a70f32d9b036317dfd0069e735699f7395cad4eb4d6492
4
+ data.tar.gz: 18c794e70eed8134e76888835b9e0421d08381c20aa9689a70bba1447406ffb3
5
5
  SHA512:
6
- metadata.gz: a19db9f0d33d7b4a376c3e54d3d08f58dad4c891f1349f5c4edb26e04e16b8b21aadf766fcaaef28d16fb113959d755676fa4e5b3fa7d04dc631b99cfffcb02c
7
- data.tar.gz: 723b0bb560e8fb0a229b131abba0ee984bb84f6aeb21500fa3dc9d7d25157a0d457f430ada57a8c3737d24218e95e3873efc317a0140da62624aac2cc295fa6f
6
+ metadata.gz: 178543057d26ba7a9c45dbdba4db0fb5ec4eda788aa7aefc9e699f60d6835ef2943193bde45db66d88c4b4e72b3d7ff434ed8414725444dd7fa99222284f4648
7
+ data.tar.gz: cb04137623d750344484aa83277ff826ec20c4e5d66f08e91b2af45857739dd3416823aafca8c5993525a4a38892c989e404d8f0180fc1ba03357daeaf1acacc
data/.simplycop.yml CHANGED
@@ -39,8 +39,6 @@ Layout/HeredocArgumentClosingParenthesis:
39
39
  Layout/SpaceBeforeBrackets:
40
40
  Enabled: true
41
41
 
42
- ###### COPS REVIEWED ABOVE THIS LINE ######
43
-
44
42
  Lint/AmbiguousAssignment:
45
43
  Enabled: true
46
44
 
@@ -48,146 +46,55 @@ Lint/AmbiguousBlockAssociation:
48
46
  Exclude:
49
47
  - spec/**/*
50
48
 
51
- Lint/AmbiguousOperator:
52
- Enabled: true
53
-
54
- Lint/AmbiguousRegexpLiteral:
55
- Enabled: true
56
-
57
- Lint/BinaryOperatorWithIdenticalOperands:
58
- Enabled: true
59
-
60
- Lint/CircularArgumentReference:
61
- Enabled: true
62
-
63
- Lint/ConstantDefinitionInBlock:
64
- Enabled: true
65
- Exclude:
66
- - spec/**/*.rb
67
-
68
- Lint/DeprecatedClassMethods:
69
- Enabled: true
70
-
71
49
  Lint/DeprecatedConstants:
72
50
  Enabled: true
73
51
 
74
- Lint/DeprecatedOpenSSLConstant:
75
- Enabled: true
76
-
77
52
  Lint/DuplicateBranch:
78
53
  Enabled: true
79
54
 
80
- Lint/DuplicateElsifCondition:
81
- Enabled: true
82
-
83
- Lint/DuplicateHashKey:
84
- Enabled: false
85
-
86
- Lint/DuplicateMethods:
87
- Enabled: true
88
- Severity: warning
89
-
90
55
  Lint/DuplicateRegexpCharacterClassElement:
91
56
  Enabled: true
92
57
 
93
- Lint/DuplicateRequire:
94
- Enabled: true
95
-
96
- Lint/DuplicateRescueException:
97
- Enabled: true
98
-
99
58
  Lint/EmptyBlock:
100
59
  Enabled: true
101
60
 
102
61
  Lint/EmptyClass:
103
62
  Enabled: true
104
63
 
105
- Lint/EmptyConditionalBody:
106
- Enabled: true
107
-
108
- Lint/EmptyFile:
109
- Enabled: true
110
-
111
- Lint/FloatComparison:
112
- Enabled: true
113
-
114
- Lint/IdentityComparison:
115
- Enabled: true
116
-
117
- Lint/ImplicitStringConcatenation:
64
+ Lint/HeredocMethodCallPosition:
118
65
  Enabled: true
119
66
 
120
- Lint/IneffectiveAccessModifier:
121
- Enabled: false
122
-
123
67
  Lint/LambdaWithoutLiteralBlock:
124
68
  Enabled: true
125
69
 
126
- Lint/MissingSuper:
127
- Enabled: false
128
-
129
- Lint/MixedRegexpCaptureTypes:
130
- Enabled: true
131
-
132
70
  Lint/NoReturnInBeginEndBlocks:
133
71
  Enabled: true
134
72
 
135
- Lint/OutOfRangeRegexpRef:
73
+ Lint/NumberedParameterAssignment:
136
74
  Enabled: true
137
75
 
138
- Lint/RaiseException:
76
+ Lint/OrAssignmentToConstant:
139
77
  Enabled: true
140
78
 
141
79
  Lint/RedundantDirGlobSort:
142
80
  Enabled: true
143
81
 
144
- Lint/SelfAssignment:
145
- Enabled: true
146
-
147
- Lint/StructNewOverride:
82
+ Lint/SymbolConversion:
148
83
  Enabled: true
149
84
 
150
85
  Lint/ToEnumArguments:
151
86
  Enabled: true
152
87
 
153
- Lint/TopLevelReturnWithArgument:
154
- Enabled: true
155
-
156
- Lint/TrailingCommaInAttributeDeclaration:
88
+ Lint/TripleQuotes:
157
89
  Enabled: true
158
90
 
159
- Lint/UnderscorePrefixedVariableName:
160
- Enabled: true
161
- Severity: warning
162
-
163
91
  Lint/UnexpectedBlockArity:
164
92
  Enabled: true
165
93
 
166
94
  Lint/UnmodifiedReduceAccumulator:
167
95
  Enabled: true
168
96
 
169
- Lint/UnreachableLoop:
170
- Enabled: true
171
-
172
- Lint/UnusedBlockArgument:
173
- Enabled: true
174
- Severity: warning
175
-
176
- Lint/UselessAccessModifier:
177
- Enabled: false
178
-
179
- Lint/UselessAssignment:
180
- Enabled: true
181
- Severity: warning
182
-
183
- Lint/UselessMethodDefinition:
184
- Enabled: true
185
-
186
- Lint/UselessTimes:
187
- Enabled: true
188
-
189
- Lint/Void:
190
- Enabled: true
97
+ ###### COPS REVIEWED ABOVE THIS LINE ######
191
98
 
192
99
  Metrics/BlockLength:
193
100
  Exclude:
@@ -295,6 +202,9 @@ Style/HashTransformValues:
295
202
  Style/IfInsideElse:
296
203
  Enabled: true
297
204
 
205
+ Style/IfWithBooleanLiteralBranches:
206
+ Enabled: true
207
+
298
208
  Style/KeywordParametersOrder:
299
209
  Enabled: true
300
210
 
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.5.0'
10
+ VERSION = '1.6.0'
11
11
  end
data/simplycop.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'rubocop', '~> 1.8.1'
20
+ spec.add_dependency 'rubocop', '~> 1.9.1'
21
21
  spec.add_dependency 'rubocop-rails', '~> 2.9.0'
22
22
  spec.add_dependency 'rubocop-rspec', '~> 2.1.0'
23
23
  spec.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-28 00:00:00.000000000 Z
11
+ date: 2021-02-05 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: 1.8.1
19
+ version: 1.9.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.8.1
26
+ version: 1.9.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement