Dutchie-Style 1.0.9 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dutchie-Style.gemspec +1 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +2 -2
- data/default.yml +32 -3
- data/lib/Dutchie/Style/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54099a06ca24cda06efc7fbe9bfd66ef6db9915d3d4316001b3e9b3dd2abee86
|
4
|
+
data.tar.gz: aa7436def2b17cb725e37902dbf7cc7f59ce80d7124736caa5481241c9ef3d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f199124b20b52f97697d568dfe01e680ba091a6a56b567e7e18240b9c42e1045b4e6cd6a106a3aba7b34c6ad476f8de7397c04b48929c94a7ed33120241297e
|
7
|
+
data.tar.gz: 4969c72fdadd133ce3f9e0b9df30719908ea717d0e95098bf6ddbd722268a5b71ad43e48937c43db8a64f0b06a0722715823f813a26e93913e79636b387f98e0
|
data/Dutchie-Style.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
|
-
spec.add_dependency "rubocop", "~>
|
29
|
+
spec.add_dependency "rubocop", "~> 1.30.1"
|
30
30
|
spec.add_dependency "rubocop-rspec"
|
31
31
|
spec.add_dependency "rubocop-rails"
|
32
32
|
end
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/default.yml
CHANGED
@@ -21,13 +21,27 @@ AllCops:
|
|
21
21
|
- '*.yml'
|
22
22
|
- '.pryrc'
|
23
23
|
|
24
|
+
|
25
|
+
# Capybara cops
|
26
|
+
|
27
|
+
# Allows us to use scenario/feature instead of it/describes
|
28
|
+
RSpec/Capybara:
|
29
|
+
Enabled: true
|
30
|
+
EnabledMethods: ['feature', 'scenario']
|
31
|
+
|
24
32
|
# https://docs.rubocop.org/rubocop/1.10/cops_layout.html#layoutclassstructure
|
25
33
|
Layout/ClassStructure:
|
26
34
|
Enabled: true
|
27
35
|
|
28
36
|
# Commonly used screens these days easily fit more than 80 characters.
|
37
|
+
# Ignores long lines with Heredocs or URIs in them
|
29
38
|
Layout/LineLength:
|
30
39
|
Max: 120
|
40
|
+
AllowHeredoc: true
|
41
|
+
# There's a bug which considers commas after a URI too long so we can't use built-in AllowURI setting.
|
42
|
+
# Pattern matches valid URI encapsulated within a string literal.
|
43
|
+
AllowedPatterns: ['["\u0027].*https?[\w\:\/\$\–\-\#\.\+\!\*\‘\(\)\,]*.*["\u0027]']
|
44
|
+
|
31
45
|
|
32
46
|
# No space makes the method definition shorter and differentiates
|
33
47
|
# from a regular assignment.
|
@@ -63,7 +77,9 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
63
77
|
|
64
78
|
# Exclude RSpec
|
65
79
|
Metrics/BlockLength:
|
66
|
-
|
80
|
+
Exclude:
|
81
|
+
- "spec/factories/**/*.rb"
|
82
|
+
IgnoredMethods: ['describe', 'context']
|
67
83
|
|
68
84
|
# Too short methods lead to extraction of single-use methods, which can make
|
69
85
|
# the code easier to read (by naming things), but can also clutter the class
|
@@ -159,7 +175,7 @@ Style/MethodCallWithArgsParentheses:
|
|
159
175
|
VersionChanged: '0.61'
|
160
176
|
IgnoreMacros: true
|
161
177
|
IgnoredMethods: []
|
162
|
-
|
178
|
+
AllowedPatterns: []
|
163
179
|
IncludedMacros: []
|
164
180
|
AllowParenthesesInMultilineCall: false
|
165
181
|
AllowParenthesesInChaining: false
|
@@ -203,6 +219,10 @@ Style/SingleLineBlockParams:
|
|
203
219
|
Style/MethodDefParentheses:
|
204
220
|
Enabled: false
|
205
221
|
|
222
|
+
# Ignores requirement to add underscore to separate every 3 digits in a number
|
223
|
+
Style/NumericLiterals:
|
224
|
+
Enabled: false
|
225
|
+
|
206
226
|
# Shadowing outer local variables with block parameters is often useful
|
207
227
|
# to not reinvent a new name for the same thing, it highlights the relation
|
208
228
|
# between the outer variable and the parameter. The cases where it's actually
|
@@ -243,6 +263,11 @@ Rails/FindBy:
|
|
243
263
|
- app/**/*.rb
|
244
264
|
|
245
265
|
# RSpec
|
266
|
+
|
267
|
+
# Start context description without 'when', 'with', or 'without'.
|
268
|
+
RSpec/ContextWording:
|
269
|
+
Enabled: false
|
270
|
+
|
246
271
|
RSpec/AlignLeftLetBrace:
|
247
272
|
Enabled: true
|
248
273
|
|
@@ -250,7 +275,11 @@ RSpec/AlignRightLetBrace:
|
|
250
275
|
Enabled: false
|
251
276
|
|
252
277
|
RSpec/MultipleMemoizedHelpers:
|
253
|
-
|
278
|
+
Enabled: false
|
254
279
|
|
255
280
|
RSpec/NestedGroups:
|
256
281
|
Max: 5
|
282
|
+
|
283
|
+
# Allows us to mark specs as "skip"
|
284
|
+
RSpec/Pending:
|
285
|
+
Enabled: false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Dutchie-Style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Ostrowski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-16 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:
|
19
|
+
version: 1.30.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:
|
26
|
+
version: 1.30.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
|
-
rubygems_version: 3.
|
93
|
+
rubygems_version: 3.2.22
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Rubocop Settings for all dutchie Ruby Apps
|