rubocopital 0.6.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +16 -0
- data/.rubocop-performance.yml +48 -0
- data/.rubocop-rails.yml +63 -0
- data/.rubocop-rspec.yml +21 -9
- data/.rubocop.yml +4 -9
- data/CHANGELOG.md +85 -0
- data/README.md +2 -2
- data/default.yml +124 -5
- data/lib/rubocopital/version.rb +1 -1
- data/new_cops.yml +88 -0
- data/rubocopital.gemspec +6 -6
- metadata +19 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1add573833a9f293c3bad79c70583723785189ce072ca900351906dc11c1266f
|
4
|
+
data.tar.gz: 8f9e59888d63c4b879b73cb0d058d1a66d773689e6a11a03c303e56b5a07f742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 645b3490f93e5685502baca8625b5243f468dee7907604a91d5a93c8069eee2b4bdd3355f84d7ef67ea8060af365078074d26bcd3574e42840df69d4bb041d8e
|
7
|
+
data.tar.gz: 1ad3f29fa592c14f433fe80f2cc3ebdc0df6a17950382b3359bdaaccf04a83e4317bcb9f45844b145af9e0018dc744e06c396082bfabd5b6f9a99483cafabdc8
|
data/.github/workflows/ruby.yml
CHANGED
@@ -3,6 +3,22 @@ name: Ruby
|
|
3
3
|
on: [push, pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
|
+
build-ruby-30:
|
7
|
+
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v1
|
12
|
+
- name: Set up Ruby 3.0
|
13
|
+
uses: actions/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: 3.0.x
|
16
|
+
- name: Build and test with Rake
|
17
|
+
run: |
|
18
|
+
gem install bundler
|
19
|
+
bundle install --jobs 4 --retry 3
|
20
|
+
bundle exec rake
|
21
|
+
|
6
22
|
build-ruby-26:
|
7
23
|
|
8
24
|
runs-on: ubuntu-latest
|
data/.rubocop-performance.yml
CHANGED
@@ -1,7 +1,55 @@
|
|
1
1
|
require: rubocop-performance
|
2
2
|
|
3
|
+
Performance/AncestorsInclude:
|
4
|
+
Enabled: true
|
5
|
+
|
6
|
+
Performance/StringInclude:
|
7
|
+
Enabled: true
|
8
|
+
|
3
9
|
Performance/ChainArrayAllocation:
|
4
10
|
Enabled: true
|
5
11
|
|
6
12
|
Performance/OpenStruct:
|
7
13
|
Enabled: true
|
14
|
+
|
15
|
+
Performance/Squeeze:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Performance/SortReverse:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
Performance/ReverseFirst:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Performance/RedundantStringChars:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Performance/RedundantSortBlock:
|
28
|
+
Enabled: true
|
29
|
+
|
30
|
+
Performance/IoReadlines:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
Performance/DeleteSuffix:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Performance/BindCall:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
Performance/BigDecimalWithNumericArgument:
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Performance/BlockGivenWithExplicitBlock:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
Performance/CollectionLiteralInLoop:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Performance/ConstantRegexp:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
Performance/MethodObjectAsBlock:
|
52
|
+
Enabled: true
|
53
|
+
|
54
|
+
Performance/Sum:
|
55
|
+
Enabled: true
|
data/.rubocop-rails.yml
CHANGED
@@ -51,6 +51,57 @@ Rails/SafeNavigationWithBlank:
|
|
51
51
|
Rails/SkipsModelValidations:
|
52
52
|
Enabled: false
|
53
53
|
|
54
|
+
Rails/UniqueValidationWithoutIndex:
|
55
|
+
Enabled: true
|
56
|
+
|
57
|
+
Rails/RenderPlainText:
|
58
|
+
Enabled: true
|
59
|
+
|
60
|
+
Rails/RenderInline:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Rails/RedundantForeignKey:
|
64
|
+
Enabled: true
|
65
|
+
|
66
|
+
Rails/PluckInWhere:
|
67
|
+
Enabled: true
|
68
|
+
|
69
|
+
Rails/Pluck:
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
Rails/Pick:
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
Rails/NegateInclude:
|
76
|
+
Enabled: true
|
77
|
+
|
78
|
+
Rails/MailerName:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
Rails/FindById:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
Rails/ContentTag:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
Rails/MatchRoute:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Rails/ShortI18n:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Rails/PluckId:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
Rails/ActiveRecordCallbacksOrder:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
Rails/Inquiry:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Rails/WhereExists:
|
103
|
+
Enabled: true
|
104
|
+
|
54
105
|
Rails/UnknownEnv:
|
55
106
|
Environments:
|
56
107
|
- development
|
@@ -60,3 +111,15 @@ Rails/UnknownEnv:
|
|
60
111
|
- acceptance
|
61
112
|
- training
|
62
113
|
- production
|
114
|
+
|
115
|
+
# TODO Cops
|
116
|
+
Rails/AfterCommitOverride: # (new in 2.8)
|
117
|
+
Enabled: false
|
118
|
+
Rails/AttributeDefaultBlockValue: # (new in 2.9)
|
119
|
+
Enabled: false
|
120
|
+
Rails/SquishedSQLHeredocs: # (new in 2.8)
|
121
|
+
Enabled: false
|
122
|
+
Rails/WhereEquals: # (new in 2.9)
|
123
|
+
Enabled: false
|
124
|
+
Rails/WhereNot: # (new in 2.8)
|
125
|
+
Enabled: false
|
data/.rubocop-rspec.yml
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
require: rubocop-rspec
|
2
2
|
|
3
|
-
Capybara/CurrentPathExpectation:
|
3
|
+
RSpec/Capybara/CurrentPathExpectation:
|
4
4
|
Enabled: true
|
5
5
|
|
6
|
-
Capybara/FeatureMethods:
|
6
|
+
RSpec/Capybara/FeatureMethods:
|
7
7
|
Enabled: true
|
8
8
|
|
9
|
-
FactoryBot/AttributeDefinedStatically:
|
9
|
+
RSpec/FactoryBot/AttributeDefinedStatically:
|
10
10
|
Enabled: true
|
11
11
|
|
12
|
-
FactoryBot/CreateList:
|
12
|
+
RSpec/FactoryBot/CreateList:
|
13
13
|
Enabled: true
|
14
14
|
EnforcedStyle: create_list
|
15
15
|
|
16
|
-
FactoryBot/FactoryClassName:
|
16
|
+
RSpec/FactoryBot/FactoryClassName:
|
17
17
|
Enabled: true
|
18
18
|
|
19
|
-
Rails/HttpStatus:
|
19
|
+
RSpec/Rails/HttpStatus:
|
20
20
|
Enabled: true
|
21
21
|
EnforcedStyle: symbolic
|
22
22
|
|
@@ -138,9 +138,6 @@ RSpec/InstanceVariable:
|
|
138
138
|
AssignmentOnly: true
|
139
139
|
Enabled: true
|
140
140
|
|
141
|
-
RSpec/InvalidPredicateMatcher:
|
142
|
-
Enabled: true
|
143
|
-
|
144
141
|
RSpec/ItBehavesLike:
|
145
142
|
Enabled: true
|
146
143
|
EnforcedStyle: it_behaves_like
|
@@ -249,3 +246,18 @@ RSpec/VoidExpect:
|
|
249
246
|
|
250
247
|
RSpec/Yield:
|
251
248
|
Enabled: true
|
249
|
+
|
250
|
+
RSpec/RepeatedExampleGroupDescription:
|
251
|
+
Enabled: true
|
252
|
+
|
253
|
+
RSpec/VariableName:
|
254
|
+
Enabled: true
|
255
|
+
|
256
|
+
RSpec/VariableDefinition:
|
257
|
+
Enabled: true
|
258
|
+
|
259
|
+
RSpec/RepeatedExampleGroupBody:
|
260
|
+
Enabled: true
|
261
|
+
|
262
|
+
RSpec/EmptyHook:
|
263
|
+
Enabled: true
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,91 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.0.2] - 08 February 2021
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
- Fix new Rails cops being loaded when using RSpec configuration
|
13
|
+
- Fix RSpec cop error for non-existing RSpec/InvalidPredicateMatcher
|
14
|
+
- Fix RSpec cop name warnings
|
15
|
+
|
16
|
+
## [1.0.1] - 05 February 2021
|
17
|
+
|
18
|
+
### Fixed
|
19
|
+
|
20
|
+
- Fixed projects without Rubocop-Rails
|
21
|
+
|
22
|
+
## [1.0.0] - 05 February 2021
|
23
|
+
|
24
|
+
### Changed
|
25
|
+
|
26
|
+
- Upgrade Rubocop from 0.89.0 to 1.9.1
|
27
|
+
- Upgrade Rubocop-Performance from 1.7.1 to 1.9.2
|
28
|
+
- Upgrade Rubocop-Rails from 2.7.0 to 2.9.1
|
29
|
+
|
30
|
+
## [0.7.1] - 05 October 2020
|
31
|
+
|
32
|
+
- Upgrade rubocop to 0.89.0 to prevent bug in 0.88.0
|
33
|
+
|
34
|
+
- Added Style/ExplicitBlockArgument disabled
|
35
|
+
- Added Style/GlobalStdStream disabled
|
36
|
+
- Added Style/OptionalBooleanParameter disabled
|
37
|
+
- Added Style/SingleArgumentDig disabled
|
38
|
+
- Added Style/StringConcatenation disabled
|
39
|
+
|
40
|
+
- Added Lint/BinaryOperatorWithIdenticalOperands disabled
|
41
|
+
- Added Lint/DuplicateRescueException disabled
|
42
|
+
- Added Lint/EmptyConditionalBody disabled
|
43
|
+
- Added Lint/FloatComparison disabled
|
44
|
+
- Added Lint/MissingSuper disabled
|
45
|
+
- Added Lint/OutOfRangeRegexpRef disabled
|
46
|
+
- Added Lint/SelfAssignment disabled
|
47
|
+
- Added Lint/TopLevelReturnWithArgument disabled
|
48
|
+
- Added Lint/UnreachableLoop disabled
|
49
|
+
|
50
|
+
## [0.7.0] - 10 August 2020
|
51
|
+
|
52
|
+
- Added Rails/ActiveRecordCallbacksOrder
|
53
|
+
- Added Rails/Inquiry
|
54
|
+
- Added Rails/WhereExists
|
55
|
+
|
56
|
+
- Added Lint/RaiseException
|
57
|
+
- Added Lint/MixedRegexpCaptureTypes
|
58
|
+
- Added Lint/DeprecatedOpenSSLConstant
|
59
|
+
- Added Lint/DuplicateElsifCondition
|
60
|
+
- Added Lint/MixedRegexpCaptureTypes
|
61
|
+
|
62
|
+
- Added Performance/AncestorsInclude
|
63
|
+
- Added Performance/StringInclude
|
64
|
+
- Added Performance/Squeeze
|
65
|
+
- Added Performance/SortReverse
|
66
|
+
- Added Performance/ReverseFirst
|
67
|
+
- Added Performance/RedundantStringChars
|
68
|
+
- Added Performance/RedundantSortBlock
|
69
|
+
- Added Performance/IoReadlines
|
70
|
+
- Added Performance/ReverseFirst
|
71
|
+
- Added Performance/DeleteSuffix
|
72
|
+
- Added Performance/BindCall
|
73
|
+
- Added Performance/BigDecimalWithNumericArgument
|
74
|
+
- Added Performance/DeleteSuffix
|
75
|
+
|
76
|
+
- Added RSpec/RepeatedExampleGroupDescription
|
77
|
+
- Added RSpec/VariableName
|
78
|
+
- Added RSpec/VariableDefinition
|
79
|
+
- Added RSpec/RepeatedExampleGroupBody
|
80
|
+
- Added RSpec/EmptyHook
|
81
|
+
- Added RSpec/RepeatedExampleGroupBody
|
82
|
+
|
83
|
+
- Added Style/SlicingWithRange
|
84
|
+
- Added Style/RedundantRegexpEscape
|
85
|
+
- Added Style/RedundantRegexpCharacterClass
|
86
|
+
- Added Style/RedundantFetchBlock
|
87
|
+
- Added Style/RedundantAssignment
|
88
|
+
- Added Style/HashTransformValues
|
89
|
+
- Added Style/HashEachMethods
|
90
|
+
- Added Style/ExponentialNotation
|
91
|
+
- Added Style/BisectedAttrAccessor
|
92
|
+
- Added Style/AccessorGrouping
|
93
|
+
|
9
94
|
## [0.6.1] - 11 March 2020
|
10
95
|
|
11
96
|
- Bumped rake dependency to a higher version to mitigate CVE-2020-8130
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ This is the common configuration for ruby-style checks by [Rubocop](https://gith
|
|
7
7
|
Add this line to your application's Gemfile under the `development` and `test` groups to include a specific version of this gem:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'rubocopital', '~> 0
|
10
|
+
gem 'rubocopital', '~> 1.0', require: false
|
11
11
|
```
|
12
12
|
|
13
13
|
And then execute:
|
@@ -36,7 +36,7 @@ you can just add them below.
|
|
36
36
|
- default.yml
|
37
37
|
|
38
38
|
AllCops:
|
39
|
-
TargetRubyVersion:
|
39
|
+
TargetRubyVersion: 3.0
|
40
40
|
DisplayCopNames: false
|
41
41
|
DisplayStyleGuide: true
|
42
42
|
```
|
data/default.yml
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
inherit_from:
|
1
|
+
inherit_from:
|
2
|
+
- .rubocop-performance.yml
|
3
|
+
- new_cops.yml
|
2
4
|
|
3
5
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
6
|
+
TargetRubyVersion: 2.6
|
5
7
|
Exclude:
|
6
8
|
- db/migrate/*
|
7
9
|
- db/seeds/*
|
@@ -90,6 +92,12 @@ Style/EachWithObject:
|
|
90
92
|
Style/UnpackFirst:
|
91
93
|
Enabled: false
|
92
94
|
|
95
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
96
|
+
Enabled: true
|
97
|
+
|
98
|
+
Layout/SpaceAroundMethodCallOperator:
|
99
|
+
Enabled: true
|
100
|
+
|
93
101
|
Layout/EndAlignment:
|
94
102
|
EnforcedStyleAlignWith: variable
|
95
103
|
|
@@ -100,6 +108,9 @@ Layout/FirstParameterIndentation:
|
|
100
108
|
Enabled: true
|
101
109
|
EnforcedStyle: consistent
|
102
110
|
|
111
|
+
Layout/LineLength:
|
112
|
+
Max: 120
|
113
|
+
|
103
114
|
Layout/MultilineMethodCallIndentation:
|
104
115
|
EnforcedStyle: indented
|
105
116
|
|
@@ -112,9 +123,6 @@ Style/TrivialAccessors:
|
|
112
123
|
Metrics/AbcSize:
|
113
124
|
Enabled: false
|
114
125
|
|
115
|
-
Metrics/LineLength:
|
116
|
-
Max: 120
|
117
|
-
|
118
126
|
Metrics/BlockLength:
|
119
127
|
CountComments: false # count full line comments?
|
120
128
|
Max: 50
|
@@ -165,9 +173,72 @@ Style/NegatedUnless:
|
|
165
173
|
Style/StringLiterals:
|
166
174
|
Enabled: false
|
167
175
|
|
176
|
+
Style/ArrayCoercion:
|
177
|
+
Enabled: true
|
178
|
+
|
179
|
+
Style/CaseLikeIf:
|
180
|
+
Enabled: true
|
181
|
+
|
182
|
+
Style/HashAsLastArrayItem:
|
183
|
+
Enabled: true
|
184
|
+
|
185
|
+
Style/HashLikeCase:
|
186
|
+
Enabled: true
|
187
|
+
|
188
|
+
Style/HashTransformKeys:
|
189
|
+
Enabled: true
|
190
|
+
|
191
|
+
Style/HashTransformValues:
|
192
|
+
Enabled: true
|
193
|
+
|
194
|
+
Style/RedundantAssignment:
|
195
|
+
Enabled: true
|
196
|
+
|
197
|
+
Style/RedundantFetchBlock:
|
198
|
+
Enabled: true
|
199
|
+
|
200
|
+
Style/RedundantFileExtensionInRequire:
|
201
|
+
Enabled: true
|
202
|
+
|
203
|
+
Style/RedundantRegexpCharacterClass:
|
204
|
+
Enabled: true
|
205
|
+
|
206
|
+
Style/RedundantRegexpEscape:
|
207
|
+
Enabled: true
|
208
|
+
|
209
|
+
Style/SlicingWithRange:
|
210
|
+
Enabled: true
|
211
|
+
|
212
|
+
Style/HashEachMethods:
|
213
|
+
Enabled: true
|
214
|
+
|
215
|
+
Style/ExponentialNotation:
|
216
|
+
Enabled: true
|
217
|
+
|
218
|
+
Style/BisectedAttrAccessor:
|
219
|
+
Enabled: true
|
220
|
+
|
221
|
+
Style/AccessorGrouping:
|
222
|
+
Enabled: true
|
223
|
+
|
168
224
|
Style/StringLiteralsInInterpolation:
|
169
225
|
Enabled: false
|
170
226
|
|
227
|
+
Style/ExplicitBlockArgument:
|
228
|
+
Enabled: false
|
229
|
+
|
230
|
+
Style/GlobalStdStream:
|
231
|
+
Enabled: false
|
232
|
+
|
233
|
+
Style/OptionalBooleanParameter:
|
234
|
+
Enabled: false
|
235
|
+
|
236
|
+
Style/SingleArgumentDig:
|
237
|
+
Enabled: false
|
238
|
+
|
239
|
+
Style/StringConcatenation:
|
240
|
+
Enabled: false
|
241
|
+
|
171
242
|
Lint/DisjunctiveAssignmentInConstructor:
|
172
243
|
Enabled: true
|
173
244
|
|
@@ -185,3 +256,51 @@ Lint/ToJSON:
|
|
185
256
|
|
186
257
|
Gemspec/RubyVersionGlobalsUsage:
|
187
258
|
Enabled: true
|
259
|
+
|
260
|
+
Gemspec/RequiredRubyVersion:
|
261
|
+
Enabled: false
|
262
|
+
|
263
|
+
Lint/NonDeterministicRequireOrder:
|
264
|
+
Enabled: false
|
265
|
+
|
266
|
+
Lint/RaiseException:
|
267
|
+
Enabled: true
|
268
|
+
|
269
|
+
Lint/MixedRegexpCaptureTypes:
|
270
|
+
Enabled: true
|
271
|
+
|
272
|
+
Lint/DeprecatedOpenSSLConstant:
|
273
|
+
Enabled: true
|
274
|
+
|
275
|
+
Lint/StructNewOverride:
|
276
|
+
Enabled: true
|
277
|
+
|
278
|
+
Lint/DuplicateElsifCondition:
|
279
|
+
Enabled: true
|
280
|
+
|
281
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
282
|
+
Enabled: false
|
283
|
+
|
284
|
+
Lint/DuplicateRescueException:
|
285
|
+
Enabled: false
|
286
|
+
|
287
|
+
Lint/EmptyConditionalBody:
|
288
|
+
Enabled: false
|
289
|
+
|
290
|
+
Lint/FloatComparison:
|
291
|
+
Enabled: false
|
292
|
+
|
293
|
+
Lint/MissingSuper:
|
294
|
+
Enabled: false
|
295
|
+
|
296
|
+
Lint/OutOfRangeRegexpRef:
|
297
|
+
Enabled: false
|
298
|
+
|
299
|
+
Lint/SelfAssignment:
|
300
|
+
Enabled: false
|
301
|
+
|
302
|
+
Lint/TopLevelReturnWithArgument:
|
303
|
+
Enabled: false
|
304
|
+
|
305
|
+
Lint/UnreachableLoop:
|
306
|
+
Enabled: false
|
data/lib/rubocopital/version.rb
CHANGED
data/new_cops.yml
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
Lint/DuplicateRequire: # (new in 0.90)
|
2
|
+
Enabled: false
|
3
|
+
Lint/EmptyFile: # (new in 0.90)
|
4
|
+
Enabled: false
|
5
|
+
Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
|
6
|
+
Enabled: false
|
7
|
+
Lint/UselessMethodDefinition: # (new in 0.90)
|
8
|
+
Enabled: false
|
9
|
+
Style/CombinableLoops: # (new in 0.90)
|
10
|
+
Enabled: false
|
11
|
+
Style/KeywordParametersOrder: # (new in 0.90)
|
12
|
+
Enabled: false
|
13
|
+
Style/RedundantSelfAssignment: # (new in 0.90)
|
14
|
+
Enabled: false
|
15
|
+
Style/SoleNestedConditional: # (new in 0.89)
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Layout/BeginEndAlignment: # (new in 0.91)
|
19
|
+
Enabled: false
|
20
|
+
Lint/ConstantDefinitionInBlock: # (new in 0.91)
|
21
|
+
Enabled: false
|
22
|
+
Lint/IdentityComparison: # (new in 0.91)
|
23
|
+
Enabled: false
|
24
|
+
Lint/UselessTimes: # (new in 0.91)
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Lint/HashCompareByIdentity: # (new in 0.93)
|
28
|
+
Enabled: false
|
29
|
+
Lint/RedundantSafeNavigation: # (new in 0.93)
|
30
|
+
Enabled: false
|
31
|
+
Style/ClassEqualityComparison: # (new in 0.93)
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
|
35
|
+
Enabled: false
|
36
|
+
Lint/EmptyBlock: # (new in 1.1)
|
37
|
+
Enabled: false
|
38
|
+
Lint/ToEnumArguments: # (new in 1.1)
|
39
|
+
Enabled: false
|
40
|
+
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
|
41
|
+
Enabled: false
|
42
|
+
Style/ArgumentsForwarding: # (new in 1.1)
|
43
|
+
Enabled: false
|
44
|
+
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
|
45
|
+
Enabled: false
|
46
|
+
Style/SwapValues: # (new in 1.1)
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Layout/SpaceBeforeBrackets: # (new in 1.7)
|
50
|
+
Enabled: false
|
51
|
+
Lint/AmbiguousAssignment: # (new in 1.7)
|
52
|
+
Enabled: false
|
53
|
+
Lint/DeprecatedConstants: # (new in 1.8)
|
54
|
+
Enabled: false
|
55
|
+
Lint/DuplicateBranch: # (new in 1.3)
|
56
|
+
Enabled: false
|
57
|
+
Lint/EmptyClass: # (new in 1.3)
|
58
|
+
Enabled: false
|
59
|
+
Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
|
60
|
+
Enabled: false
|
61
|
+
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
62
|
+
Enabled: false
|
63
|
+
Lint/NumberedParameterAssignment: # (new in 1.9)
|
64
|
+
Enabled: false
|
65
|
+
Lint/OrAssignmentToConstant: # (new in 1.9)
|
66
|
+
Enabled: false
|
67
|
+
Lint/RedundantDirGlobSort: # (new in 1.8)
|
68
|
+
Enabled: false
|
69
|
+
Lint/SymbolConversion: # (new in 1.9)
|
70
|
+
Enabled: false
|
71
|
+
Lint/TripleQuotes: # (new in 1.9)
|
72
|
+
Enabled: false
|
73
|
+
Lint/UnexpectedBlockArity: # (new in 1.5)
|
74
|
+
Enabled: false
|
75
|
+
Style/CollectionCompact: # (new in 1.2)
|
76
|
+
Enabled: false
|
77
|
+
Style/EndlessMethod: # (new in 1.8)
|
78
|
+
Enabled: false
|
79
|
+
Style/HashExcept: # (new in 1.7)
|
80
|
+
Enabled: false
|
81
|
+
Style/IfWithBooleanLiteralBranches: # (new in 1.9)
|
82
|
+
Enabled: false
|
83
|
+
Style/NegatedIfElseCondition: # (new in 1.2)
|
84
|
+
Enabled: false
|
85
|
+
Style/NilLambda: # (new in 1.3)
|
86
|
+
Enabled: false
|
87
|
+
Style/RedundantArgument: # (new in 1.4)
|
88
|
+
Enabled: false
|
data/rubocopital.gemspec
CHANGED
@@ -32,12 +32,12 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ["lib"]
|
34
34
|
|
35
|
-
spec.add_runtime_dependency "rubocop", "~>
|
36
|
-
spec.add_runtime_dependency "rubocop-performance", "~> 1.
|
37
|
-
spec.add_runtime_dependency "rubocop-rails", "2.
|
38
|
-
spec.add_runtime_dependency "rubocop-rspec", "
|
35
|
+
spec.add_runtime_dependency "rubocop", "~> 1.9.0"
|
36
|
+
spec.add_runtime_dependency "rubocop-performance", "~> 1.9.2"
|
37
|
+
spec.add_runtime_dependency "rubocop-rails", "2.9.1"
|
38
|
+
spec.add_runtime_dependency "rubocop-rspec", "2.2.0"
|
39
39
|
|
40
|
-
spec.add_development_dependency "bundler"
|
41
|
-
spec.add_development_dependency "rake", "
|
40
|
+
spec.add_development_dependency "bundler"
|
41
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
42
42
|
spec.add_development_dependency "rspec", "~> 3.0"
|
43
43
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocopital
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcel Eeken
|
8
8
|
- Martijn Bleeker
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -17,83 +17,74 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 1.9.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 1.9.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rubocop-performance
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.
|
34
|
+
version: 1.9.2
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.
|
41
|
+
version: 1.9.2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rubocop-rails
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 2.
|
48
|
+
version: 2.9.1
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 2.
|
55
|
+
version: 2.9.1
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rubocop-rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 2.2.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 2.2.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: bundler
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '1.17'
|
77
|
-
- - "~>"
|
74
|
+
- - ">="
|
78
75
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
76
|
+
version: '0'
|
80
77
|
type: :development
|
81
78
|
prerelease: false
|
82
79
|
version_requirements: !ruby/object:Gem::Requirement
|
83
80
|
requirements:
|
84
|
-
- - "
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '1.17'
|
87
|
-
- - "~>"
|
81
|
+
- - ">="
|
88
82
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
83
|
+
version: '0'
|
90
84
|
- !ruby/object:Gem::Dependency
|
91
85
|
name: rake
|
92
86
|
requirement: !ruby/object:Gem::Requirement
|
93
87
|
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '12.3'
|
97
88
|
- - ">="
|
98
89
|
- !ruby/object:Gem::Version
|
99
90
|
version: 12.3.3
|
@@ -101,9 +92,6 @@ dependencies:
|
|
101
92
|
prerelease: false
|
102
93
|
version_requirements: !ruby/object:Gem::Requirement
|
103
94
|
requirements:
|
104
|
-
- - "~>"
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: '12.3'
|
107
95
|
- - ">="
|
108
96
|
- !ruby/object:Gem::Version
|
109
97
|
version: 12.3.3
|
@@ -150,6 +138,7 @@ files:
|
|
150
138
|
- default.yml
|
151
139
|
- lib/rubocopital.rb
|
152
140
|
- lib/rubocopital/version.rb
|
141
|
+
- new_cops.yml
|
153
142
|
- project.yml
|
154
143
|
- rubocopital.gemspec
|
155
144
|
homepage: https://github.com/youngcapital/rubocopital
|
@@ -159,7 +148,7 @@ metadata:
|
|
159
148
|
hompeage_uri: https://github.com/youngcapital/rubocopital
|
160
149
|
source_code_uri: https://github.com/youngcapital/rubocopital
|
161
150
|
changelog_uri: https://github.com/youngcapital/rubocopital/blob/master/CHANGELOG.md
|
162
|
-
post_install_message:
|
151
|
+
post_install_message:
|
163
152
|
rdoc_options: []
|
164
153
|
require_paths:
|
165
154
|
- lib
|
@@ -174,8 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
163
|
- !ruby/object:Gem::Version
|
175
164
|
version: '0'
|
176
165
|
requirements: []
|
177
|
-
rubygems_version: 3.1.
|
178
|
-
signing_key:
|
166
|
+
rubygems_version: 3.1.4
|
167
|
+
signing_key:
|
179
168
|
specification_version: 4
|
180
169
|
summary: Shared rubocop configuration
|
181
170
|
test_files: []
|