aroundhome_cops 3.0.0 → 4.0.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 +4 -0
- data/aroundhome_cops.gemspec +2 -1
- data/default.yml +44 -1
- data/lib/aroundhome_cops.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b484d9e0fd53c5e4dfee4a328e6eef3fde6db1093a1250b94952598c57bd4ff
|
4
|
+
data.tar.gz: c9f5915345577de64e6219fea97f4c5a1812b16563ba59aef4753ba11a55e127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05be08a5fe3739151a0b6a5b93a138a510b78578825cafea4e922bb42217bd3eb69127ea4c0c4c7c3d32ca82d5077ca901a8f3ec5b0c7fd1f19421dcce598eb0
|
7
|
+
data.tar.gz: 9ec6ddc38a5519f2bb734bb77f21e31da82c5b091f33f8513490446e091fb5e4da84c9741f81076e5c7f5350a9d990a3834dc047ef7346184c765dfaa08b40c9
|
data/CHANGELOG.md
CHANGED
data/aroundhome_cops.gemspec
CHANGED
data/default.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rspec
|
3
|
+
|
1
4
|
AllCops:
|
2
5
|
Exclude:
|
3
6
|
- 'bin/**/*'
|
@@ -20,7 +23,6 @@ AllCops:
|
|
20
23
|
- 'db/migrate/2016*.rb'
|
21
24
|
- 'db/migrate/2017*.rb'
|
22
25
|
SuggestExtensions:
|
23
|
-
rubocop-rspec: false
|
24
26
|
rubocop-rails: false
|
25
27
|
|
26
28
|
# While we like to write blocks like the following
|
@@ -128,6 +130,28 @@ Style/FormatStringToken:
|
|
128
130
|
Metrics/ParameterLists:
|
129
131
|
CountKeywordArgs: false
|
130
132
|
|
133
|
+
# Adding "and" prefix to list of allowed prefixes to allow for nested contexts
|
134
|
+
# that start with "and" as a connector word "when foo is true and bar is false"
|
135
|
+
RSpec/ContextWording:
|
136
|
+
Prefixes:
|
137
|
+
- when
|
138
|
+
- with
|
139
|
+
- without
|
140
|
+
- and
|
141
|
+
|
142
|
+
# Complex tests require more flexibility in their length than allowed by default (5).
|
143
|
+
RSpec/ExampleLength:
|
144
|
+
Max: 10
|
145
|
+
|
146
|
+
# Complex tests often rely on more objects than allowed by default (5).
|
147
|
+
RSpec/MultipleMemoizedHelpers:
|
148
|
+
Max: 10
|
149
|
+
|
150
|
+
# Complex tests often generate more readable output with deeper nesting. The
|
151
|
+
# default (3) doesn't provide enough flexibility.
|
152
|
+
RSpec/NestedGroups:
|
153
|
+
Max: 5
|
154
|
+
|
131
155
|
# ----------------- Rubocop-forced enablements --------------
|
132
156
|
|
133
157
|
# Since version 0.80 rubocop wants to cause fewer breaking changes by new cops.
|
@@ -196,3 +220,22 @@ Style/StringChars: # (new in 1.12)
|
|
196
220
|
Enabled: true
|
197
221
|
Style/SwapValues: # (new in 1.1)
|
198
222
|
Enabled: true
|
223
|
+
Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
|
224
|
+
Enabled: true
|
225
|
+
Lint/EmptyInPattern: # (new in 1.16)
|
226
|
+
Enabled: true
|
227
|
+
Naming/InclusiveLanguage: # (new in 1.18)
|
228
|
+
Enabled: true
|
229
|
+
Style/InPatternThen: # (new in 1.16)
|
230
|
+
Enabled: true
|
231
|
+
Style/MultilineInPatternThen: # (new in 1.16)
|
232
|
+
Enabled: true
|
233
|
+
Style/QuotedSymbols: # (new in 1.16)
|
234
|
+
Enabled: true
|
235
|
+
|
236
|
+
# ----------------- Rubocop-Rspec forced enablements --------------
|
237
|
+
|
238
|
+
RSpec/IdenticalEqualityAssertion: # (new in 2.4)
|
239
|
+
Enabled: true
|
240
|
+
RSpec/Rails/AvoidSetupHook: # (new in 2.4)
|
241
|
+
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:
|
4
|
+
version: 4.0.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-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.18'
|
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.18'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.4'
|
27
41
|
description:
|
28
42
|
email:
|
29
43
|
- jan.sandbrink@aroundhome.de
|
@@ -59,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
73
|
- !ruby/object:Gem::Version
|
60
74
|
version: '0'
|
61
75
|
requirements: []
|
62
|
-
rubygems_version: 3.2.
|
76
|
+
rubygems_version: 3.2.22
|
63
77
|
signing_key:
|
64
78
|
specification_version: 4
|
65
79
|
summary: Dependency and configuration for rubocop.
|