aroundhome_cops 3.0.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/aroundhome_cops.gemspec +3 -1
- data/default.yml +87 -1
- data/lib/aroundhome_cops.rb +1 -1
- metadata +33 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 892609c946c6d5b7c856b11c900354e126020bfdc86294456d97ee797b14da1f
|
4
|
+
data.tar.gz: '03096a520b19ce75cb83520668bc24f8c96e738525de3546b319a638ccd3c0e1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2715942fc7d5261183c74623d8536072162dc605e9e9f8e0b02847ee4f66519f14be2a86a0c5f5d44877e5d45203e4d61be54f5f37b9fd52cc87b36684b569aa
|
7
|
+
data.tar.gz: 94bb36c19e518f9ecbf029e473e821b1583f6c916cc15335dfd883680dac97f57a3cea53e7d8e972ddd7cba5a76c5fd9114c6df32a7259bdaba9db99907b3790
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## Version 4.3.0
|
2
|
+
* Disable `RSpec/PredicateMatcher` due to false positives
|
3
|
+
|
4
|
+
## Version 4.2.0
|
5
|
+
* Add rubocop-rake as a dependency, to enforce better specs
|
6
|
+
|
7
|
+
## Version 4.1.0
|
8
|
+
* Specify more precise defaults for rspec
|
9
|
+
* upgrade rubocop and rubocop-rspec and enable new offenses
|
10
|
+
|
11
|
+
## Version 4.0.0
|
12
|
+
* Opt into all Rubocop offenses up until 1.18
|
13
|
+
* Add rubocop-rspec as a dependency, to enforce better specs
|
14
|
+
|
1
15
|
## Version 3.0.0
|
2
16
|
|
3
17
|
* Support Rubocop 1.0 and opt into all offenses up until 1.13
|
data/aroundhome_cops.gemspec
CHANGED
@@ -20,5 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 2.5.0'
|
22
22
|
|
23
|
-
spec.add_dependency 'rubocop', '~> 1.
|
23
|
+
spec.add_dependency 'rubocop', '~> 1.22'
|
24
|
+
spec.add_dependency 'rubocop-rake', '~> 0.6'
|
25
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.5'
|
24
26
|
end
|
data/default.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rspec
|
3
|
+
- rubocop-rake
|
4
|
+
|
1
5
|
AllCops:
|
2
6
|
Exclude:
|
3
7
|
- 'bin/**/*'
|
@@ -20,7 +24,6 @@ AllCops:
|
|
20
24
|
- 'db/migrate/2016*.rb'
|
21
25
|
- 'db/migrate/2017*.rb'
|
22
26
|
SuggestExtensions:
|
23
|
-
rubocop-rspec: false
|
24
27
|
rubocop-rails: false
|
25
28
|
|
26
29
|
# While we like to write blocks like the following
|
@@ -128,6 +131,49 @@ Style/FormatStringToken:
|
|
128
131
|
Metrics/ParameterLists:
|
129
132
|
CountKeywordArgs: false
|
130
133
|
|
134
|
+
# Adding "and" prefix to list of allowed prefixes to allow for nested contexts
|
135
|
+
# that start with "and" as a connector word "when foo is true and bar is false"
|
136
|
+
RSpec/ContextWording:
|
137
|
+
Prefixes:
|
138
|
+
- when
|
139
|
+
- with
|
140
|
+
- without
|
141
|
+
- and
|
142
|
+
|
143
|
+
# Complex tests require more flexibility in their length than allowed by default (5).
|
144
|
+
RSpec/ExampleLength:
|
145
|
+
Max: 10
|
146
|
+
|
147
|
+
# Complex tests often rely on more objects than allowed by default (5).
|
148
|
+
RSpec/MultipleMemoizedHelpers:
|
149
|
+
Max: 10
|
150
|
+
|
151
|
+
# We rarely use named subjects in our own projects.
|
152
|
+
# While it is a good practice in some cases, we do not want to enforce it
|
153
|
+
# through Rubocop.
|
154
|
+
# https://www.rubydoc.info/gems/rubocop-rspec/1.6.0/RuboCop/Cop/RSpec/NamedSubject
|
155
|
+
RSpec/NamedSubject:
|
156
|
+
Enabled: false
|
157
|
+
|
158
|
+
# Complex tests often generate more readable output with deeper nesting. The
|
159
|
+
# default (3) doesn't provide enough flexibility.
|
160
|
+
RSpec/NestedGroups:
|
161
|
+
Max: 7
|
162
|
+
|
163
|
+
# While well intentioned at teaching about the existence of be_something matchers
|
164
|
+
# in RSpec, this one produces false positives on methods such as
|
165
|
+
#
|
166
|
+
# expect(hash.key?('foo')).to be_truthy
|
167
|
+
#
|
168
|
+
# Where it suggests to change towards:
|
169
|
+
#
|
170
|
+
# expect(hash).to be_key('foo')
|
171
|
+
#
|
172
|
+
# While this works, it is less readable. The hash IS NOT the key, but it HAS the key.
|
173
|
+
# Similar mistakes happen for other methods (e.g. File.exist?).
|
174
|
+
RSpec/PredicateMatcher:
|
175
|
+
Enabled: false
|
176
|
+
|
131
177
|
# ----------------- Rubocop-forced enablements --------------
|
132
178
|
|
133
179
|
# Since version 0.80 rubocop wants to cause fewer breaking changes by new cops.
|
@@ -142,6 +188,10 @@ Layout/SpaceBeforeBrackets: # (new in 1.7)
|
|
142
188
|
Enabled: true
|
143
189
|
Lint/AmbiguousAssignment: # (new in 1.7)
|
144
190
|
Enabled: true
|
191
|
+
Lint/AmbiguousOperatorPrecedence: # (new in 1.21)
|
192
|
+
Enabled: true
|
193
|
+
Lint/AmbiguousRange: # (new in 1.19)
|
194
|
+
Enabled: true
|
145
195
|
Lint/DeprecatedConstants: # (new in 1.8)
|
146
196
|
Enabled: true
|
147
197
|
Lint/DuplicateBranch: # (new in 1.3)
|
@@ -152,6 +202,8 @@ Lint/EmptyBlock: # (new in 1.1)
|
|
152
202
|
Enabled: true
|
153
203
|
Lint/EmptyClass: # (new in 1.3)
|
154
204
|
Enabled: true
|
205
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # (new in 1.21)
|
206
|
+
Enabled: true
|
155
207
|
Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
|
156
208
|
Enabled: true
|
157
209
|
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
@@ -162,6 +214,8 @@ Lint/OrAssignmentToConstant: # (new in 1.9)
|
|
162
214
|
Enabled: true
|
163
215
|
Lint/RedundantDirGlobSort: # (new in 1.8)
|
164
216
|
Enabled: true
|
217
|
+
Lint/RequireRelativeSelfPath: # (new in 1.22)
|
218
|
+
Enabled: true
|
165
219
|
Lint/SymbolConversion: # (new in 1.9)
|
166
220
|
Enabled: true
|
167
221
|
Lint/ToEnumArguments: # (new in 1.1)
|
@@ -172,6 +226,8 @@ Lint/UnexpectedBlockArity: # (new in 1.5)
|
|
172
226
|
Enabled: true
|
173
227
|
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
|
174
228
|
Enabled: true
|
229
|
+
Security/IoMethods: # (new in 1.22)
|
230
|
+
Enabled: true
|
175
231
|
Style/ArgumentsForwarding: # (new in 1.1)
|
176
232
|
Enabled: true
|
177
233
|
Style/CollectionCompact: # (new in 1.2)
|
@@ -190,9 +246,39 @@ Style/NegatedIfElseCondition: # (new in 1.2)
|
|
190
246
|
Enabled: true
|
191
247
|
Style/NilLambda: # (new in 1.3)
|
192
248
|
Enabled: true
|
249
|
+
Style/NumberedParameters: # (new in 1.22)
|
250
|
+
Enabled: true
|
251
|
+
Style/NumberedParametersLimit: # (new in 1.22)
|
252
|
+
Enabled: true
|
193
253
|
Style/RedundantArgument: # (new in 1.4)
|
194
254
|
Enabled: true
|
255
|
+
Style/RedundantSelfAssignmentBranch: # (new in 1.19)
|
256
|
+
Enabled: true
|
257
|
+
Style/SelectByRegexp: # (new in 1.22)
|
258
|
+
Enabled: true
|
195
259
|
Style/StringChars: # (new in 1.12)
|
196
260
|
Enabled: true
|
197
261
|
Style/SwapValues: # (new in 1.1)
|
198
262
|
Enabled: true
|
263
|
+
Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
|
264
|
+
Enabled: true
|
265
|
+
Lint/EmptyInPattern: # (new in 1.16)
|
266
|
+
Enabled: true
|
267
|
+
Naming/InclusiveLanguage: # (new in 1.18)
|
268
|
+
Enabled: true
|
269
|
+
Style/InPatternThen: # (new in 1.16)
|
270
|
+
Enabled: true
|
271
|
+
Style/MultilineInPatternThen: # (new in 1.16)
|
272
|
+
Enabled: true
|
273
|
+
Style/QuotedSymbols: # (new in 1.16)
|
274
|
+
Enabled: true
|
275
|
+
|
276
|
+
# ----------------- Rubocop-Rspec forced enablements --------------
|
277
|
+
RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
|
278
|
+
Enabled: true
|
279
|
+
RSpec/IdenticalEqualityAssertion: # (new in 2.4)
|
280
|
+
Enabled: true
|
281
|
+
RSpec/Rails/AvoidSetupHook: # (new in 2.4)
|
282
|
+
Enabled: true
|
283
|
+
RSpec/SubjectDeclaration: # (new in 2.5)
|
284
|
+
Enabled: true
|
data/lib/aroundhome_cops.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aroundhome_cops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Sandbrink
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.22'
|
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.
|
26
|
+
version: '1.22'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.5'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.5'
|
27
55
|
description:
|
28
56
|
email:
|
29
57
|
- jan.sandbrink@aroundhome.de
|
@@ -59,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
87
|
- !ruby/object:Gem::Version
|
60
88
|
version: '0'
|
61
89
|
requirements: []
|
62
|
-
rubygems_version: 3.2.
|
90
|
+
rubygems_version: 3.2.22
|
63
91
|
signing_key:
|
64
92
|
specification_version: 4
|
65
93
|
summary: Dependency and configuration for rubocop.
|