aroundhome_cops 2.1.0 → 4.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 677a8fd1caf9f01b7edbf601523d6b7682b6c80a5f3733e53181aa91d4fe80c8
4
- data.tar.gz: e165928316c12030231e86c0f57276cb7a36b2a4787e95f28657fc4a35806e57
3
+ metadata.gz: ad7cf8c4f2e3bc38092798cb7b402c496e97b17860ee3b54a93c7772b31064c2
4
+ data.tar.gz: dfe328629f993ec3a742e71e93a6b9c633f7c115766c59b0dfa5b4c8774afc6d
5
5
  SHA512:
6
- metadata.gz: 9c3db4236a4c8006abb661fc8dfdb6e86aa8ee571d77ae499e362ea3752e68147ccb5677d36efc4c3264305d2479451d55289fc93ae48d882dee6fc018d21d00
7
- data.tar.gz: b4f999e50282e2131759451409a86001c7efde00fed869c7f3f69c1c1664081cea7d31c176d6563937ea83b41dc8315f084c7a1178768a3cc57b79307ca6ba83
6
+ metadata.gz: 30f56dec47ec145cfd8456d663cff8fba04950510d526bd8d0f04b15e3943ddc89b15bd88215e17033349de4c55223e6fb31b6a48b8e41326d2a9c0e62432b81
7
+ data.tar.gz: c2f76650583c22985cb277d35204f08ff32a89c54fdfa670c10b16bb72f8e47c5a85710891428948f51fa318bd18b544569cc3028e1420cd17f1851edc451bb8
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## Version 4.2.0
2
+ * Add rubocop-rake as a dependency, to enforce better specs
3
+
4
+ ## Version 4.1.0
5
+ * Specify more precise defaults for rspec
6
+ * upgrade rubocop and rubocop-rspec and enable new offenses
7
+
8
+ ## Version 4.0.0
9
+ * Opt into all Rubocop offenses up until 1.18
10
+ * Add rubocop-rspec as a dependency, to enforce better specs
11
+
12
+ ## Version 3.0.0
13
+
14
+ * Support Rubocop 1.0 and opt into all offenses up until 1.13
15
+
1
16
  ## Version 2.1.0
2
17
 
3
18
  * Allow ambiguous blocks in specs
@@ -18,5 +18,9 @@ Gem::Specification.new do |spec|
18
18
  .reject { |f| f.match(%r{^spec/}) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'rubocop', '~> 0.86'
21
+ spec.required_ruby_version = '>= 2.5.0'
22
+
23
+ spec.add_dependency 'rubocop', '~> 1.22'
24
+ spec.add_dependency 'rubocop-rake', '~> 0.6'
25
+ spec.add_dependency 'rubocop-rspec', '~> 2.5'
22
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/**/*'
@@ -19,6 +23,8 @@ AllCops:
19
23
  - 'db/migrate/2015*.rb'
20
24
  - 'db/migrate/2016*.rb'
21
25
  - 'db/migrate/2017*.rb'
26
+ SuggestExtensions:
27
+ rubocop-rails: false
22
28
 
23
29
  # While we like to write blocks like the following
24
30
  # expect { add_special_project }.not_to change { SpecialProject.count }
@@ -47,7 +53,7 @@ Layout/LineLength:
47
53
  # long, since they are less comparable to methods and more comparable to
48
54
  # modules/classes.
49
55
  Metrics/BlockLength:
50
- ExcludedMethods:
56
+ IgnoredMethods:
51
57
  - context
52
58
  - describe
53
59
  - namespace
@@ -125,6 +131,35 @@ Style/FormatStringToken:
125
131
  Metrics/ParameterLists:
126
132
  CountKeywordArgs: false
127
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
+
128
163
  # ----------------- Rubocop-forced enablements --------------
129
164
 
130
165
  # Since version 0.80 rubocop wants to cause fewer breaking changes by new cops.
@@ -133,44 +168,103 @@ Metrics/ParameterLists:
133
168
  # them below.
134
169
  # Disabled cops will appear above with a comment explaining disablement.
135
170
 
136
- Layout/SpaceAroundMethodCallOperator:
171
+ Gemspec/DateAssignment: # (new in 1.10)
137
172
  Enabled: true
138
-
139
- Lint/RaiseException:
173
+ Layout/SpaceBeforeBrackets: # (new in 1.7)
140
174
  Enabled: true
141
-
142
- Lint/StructNewOverride:
175
+ Lint/AmbiguousAssignment: # (new in 1.7)
143
176
  Enabled: true
144
-
145
- Style/ExponentialNotation:
177
+ Lint/AmbiguousOperatorPrecedence: # (new in 1.21)
146
178
  Enabled: true
147
-
148
- Style/HashEachMethods:
179
+ Lint/AmbiguousRange: # (new in 1.19)
149
180
  Enabled: true
150
-
151
- Style/HashTransformKeys:
181
+ Lint/DeprecatedConstants: # (new in 1.8)
152
182
  Enabled: true
153
-
154
- Style/HashTransformValues:
183
+ Lint/DuplicateBranch: # (new in 1.3)
155
184
  Enabled: true
156
-
157
- Layout/EmptyLinesAroundAttributeAccessor:
185
+ Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
158
186
  Enabled: true
159
-
160
- Lint/DeprecatedOpenSSLConstant:
187
+ Lint/EmptyBlock: # (new in 1.1)
161
188
  Enabled: true
162
-
163
- Lint/MixedRegexpCaptureTypes:
189
+ Lint/EmptyClass: # (new in 1.3)
164
190
  Enabled: true
165
-
166
- Style/RedundantFetchBlock:
191
+ Lint/IncompatibleIoSelectWithFiberScheduler: # (new in 1.21)
167
192
  Enabled: true
168
-
169
- Style/RedundantRegexpCharacterClass:
193
+ Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
170
194
  Enabled: true
171
-
172
- Style/RedundantRegexpEscape:
195
+ Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
196
+ Enabled: true
197
+ Lint/NumberedParameterAssignment: # (new in 1.9)
198
+ Enabled: true
199
+ Lint/OrAssignmentToConstant: # (new in 1.9)
200
+ Enabled: true
201
+ Lint/RedundantDirGlobSort: # (new in 1.8)
202
+ Enabled: true
203
+ Lint/RequireRelativeSelfPath: # (new in 1.22)
204
+ Enabled: true
205
+ Lint/SymbolConversion: # (new in 1.9)
206
+ Enabled: true
207
+ Lint/ToEnumArguments: # (new in 1.1)
208
+ Enabled: true
209
+ Lint/TripleQuotes: # (new in 1.9)
210
+ Enabled: true
211
+ Lint/UnexpectedBlockArity: # (new in 1.5)
212
+ Enabled: true
213
+ Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
214
+ Enabled: true
215
+ Security/IoMethods: # (new in 1.22)
216
+ Enabled: true
217
+ Style/ArgumentsForwarding: # (new in 1.1)
218
+ Enabled: true
219
+ Style/CollectionCompact: # (new in 1.2)
220
+ Enabled: true
221
+ Style/DocumentDynamicEvalDefinition: # (new in 1.1)
222
+ Enabled: true
223
+ Style/EndlessMethod: # (new in 1.8)
224
+ Enabled: true
225
+ Style/HashConversion: # (new in 1.10)
226
+ Enabled: true
227
+ Style/HashExcept: # (new in 1.7)
228
+ Enabled: true
229
+ Style/IfWithBooleanLiteralBranches: # (new in 1.9)
230
+ Enabled: true
231
+ Style/NegatedIfElseCondition: # (new in 1.2)
232
+ Enabled: true
233
+ Style/NilLambda: # (new in 1.3)
234
+ Enabled: true
235
+ Style/NumberedParameters: # (new in 1.22)
236
+ Enabled: true
237
+ Style/NumberedParametersLimit: # (new in 1.22)
238
+ Enabled: true
239
+ Style/RedundantArgument: # (new in 1.4)
240
+ Enabled: true
241
+ Style/RedundantSelfAssignmentBranch: # (new in 1.19)
242
+ Enabled: true
243
+ Style/SelectByRegexp: # (new in 1.22)
244
+ Enabled: true
245
+ Style/StringChars: # (new in 1.12)
246
+ Enabled: true
247
+ Style/SwapValues: # (new in 1.1)
248
+ Enabled: true
249
+ Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
250
+ Enabled: true
251
+ Lint/EmptyInPattern: # (new in 1.16)
252
+ Enabled: true
253
+ Naming/InclusiveLanguage: # (new in 1.18)
254
+ Enabled: true
255
+ Style/InPatternThen: # (new in 1.16)
256
+ Enabled: true
257
+ Style/MultilineInPatternThen: # (new in 1.16)
258
+ Enabled: true
259
+ Style/QuotedSymbols: # (new in 1.16)
173
260
  Enabled: true
174
261
 
175
- Style/SlicingWithRange:
262
+ # ----------------- Rubocop-Rspec forced enablements --------------
263
+ RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
264
+ Enabled: true
265
+ RSpec/IdenticalEqualityAssertion: # (new in 2.4)
266
+ Enabled: true
267
+ RSpec/Rails/AvoidSetupHook: # (new in 2.4)
268
+ Enabled: true
269
+ RSpec/SubjectDeclaration: # (new in 2.5)
176
270
  Enabled: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '2.1.0'
4
+ VERSION = '4.2.0'
5
5
  end
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: 2.1.0
4
+ version: 4.2.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: 2020-07-28 00:00:00.000000000 Z
11
+ date: 2021-10-14 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: '0.86'
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: '0.86'
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
@@ -34,6 +62,7 @@ files:
34
62
  - ".gitignore"
35
63
  - ".gitlab-ci.yml"
36
64
  - ".rubocop.yml"
65
+ - ".ruby-version"
37
66
  - CHANGELOG.md
38
67
  - Gemfile
39
68
  - README.md
@@ -51,14 +80,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
80
  requirements:
52
81
  - - ">="
53
82
  - !ruby/object:Gem::Version
54
- version: '0'
83
+ version: 2.5.0
55
84
  required_rubygems_version: !ruby/object:Gem::Requirement
56
85
  requirements:
57
86
  - - ">="
58
87
  - !ruby/object:Gem::Version
59
88
  version: '0'
60
89
  requirements: []
61
- rubygems_version: 3.1.2
90
+ rubygems_version: 3.2.22
62
91
  signing_key:
63
92
  specification_version: 4
64
93
  summary: Dependency and configuration for rubocop.