Dutchie-Style 1.0.9 → 2.0.0
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 +30 -1
- 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: 2979ce72ee0581c527a64720f84203514d2d3f9f68ec96a7e48b0785a3b5574a
|
4
|
+
data.tar.gz: '040977d7c8ecdaf0000a5fe714677365bb8361ec743f26a8682fc1b8f39a7f78'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2272007d026c87ea281c4502251e87cd1fc21c238840f5cda86e1a35155b16df1c82763f76b80fee0935b53eaeb6d470767abd46065ad4f37297ab43e86951
|
7
|
+
data.tar.gz: 36c8d0bc49b88c07d86f149966422acf23d17635acd07147a644d9ebc0002bf8a3cdc78576e73ac58b2073759e426a6cd2399cbe2306610c275ac2529510d810
|
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
|
+
Capybara/FeatureMethods:
|
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
|
+
IgnoredPatterns: ['["\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,6 +77,8 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
63
77
|
|
64
78
|
# Exclude RSpec
|
65
79
|
Metrics/BlockLength:
|
80
|
+
Exclude:
|
81
|
+
- "spec/factories/**/*.rb"
|
66
82
|
ExcludedMethods: ['describe', 'context']
|
67
83
|
|
68
84
|
# Too short methods lead to extraction of single-use methods, which can make
|
@@ -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.0
|
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-15 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
|