Dutchie-Style 2.1.0 → 3.0.1
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/Dutchie-Style.gemspec +6 -6
- data/Gemfile +2 -2
- data/Gemfile.lock +64 -45
- data/config/default.yml +4 -0
- data/lib/Dutchie/Style/version.rb +1 -1
- data/lib/rubocop/cop/dutchie/launchdarkly_defaults.rb +8 -8
- data/old-default.yml +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 448d2072f40342a965f17d797b9629f32c19c9746521d26252487e2e5148d552
|
|
4
|
+
data.tar.gz: 3dbd3523a57718edbad9ca47eb8cee1db2baa0572973de829ae0a1242e6fd601
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0028b59d541dca95b28c24f7ba68f00e42c7338b1c09dfa5ad792dc366fe8eb85bf2baf8b0f87eb03444e1e527674630e2211c5ca1e21b9a034f94f47e90f70c'
|
|
7
|
+
data.tar.gz: b4fbe79451d27bec3cdd61560d452aa0be8071e20744cc0de825a399cdd8fa5c72296fa86e95bb653f95883648776f53a11d28ac7eacc0fe3563d40a324c0fde
|
data/Dutchie-Style.gemspec
CHANGED
|
@@ -29,12 +29,12 @@ Gem::Specification.new do |spec|
|
|
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
|
|
30
30
|
spec.require_paths = ["lib"]
|
|
31
31
|
|
|
32
|
-
spec.add_dependency "rubocop", "~> 1.
|
|
33
|
-
spec.add_dependency "rubocop-capybara", "~>
|
|
34
|
-
spec.add_dependency "rubocop-factory_bot", "~> 2.
|
|
35
|
-
spec.add_dependency "rubocop-rails", "~> 2.
|
|
36
|
-
spec.add_dependency "rubocop-rspec", "~>
|
|
37
|
-
spec.add_dependency "rubocop-rspec_rails", "~> 2.
|
|
32
|
+
spec.add_dependency "rubocop", "~> 1.81"
|
|
33
|
+
spec.add_dependency "rubocop-capybara", "~> 3.0"
|
|
34
|
+
spec.add_dependency "rubocop-factory_bot", "~> 2.28"
|
|
35
|
+
spec.add_dependency "rubocop-rails", "~> 2.32"
|
|
36
|
+
spec.add_dependency "rubocop-rspec", "~> 3.0"
|
|
37
|
+
spec.add_dependency "rubocop-rspec_rails", "~> 2.31"
|
|
38
38
|
|
|
39
39
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
40
40
|
end
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,41 +1,56 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
Dutchie-Style (
|
|
5
|
-
rubocop (~> 1.
|
|
6
|
-
rubocop-capybara (~>
|
|
7
|
-
rubocop-factory_bot (~> 2.
|
|
8
|
-
rubocop-rails (~> 2.
|
|
9
|
-
rubocop-rspec (~>
|
|
10
|
-
rubocop-rspec_rails (~> 2.
|
|
4
|
+
Dutchie-Style (3.0.1)
|
|
5
|
+
rubocop (~> 1.81)
|
|
6
|
+
rubocop-capybara (~> 3.0)
|
|
7
|
+
rubocop-factory_bot (~> 2.28)
|
|
8
|
+
rubocop-rails (~> 2.32)
|
|
9
|
+
rubocop-rspec (~> 3.0)
|
|
10
|
+
rubocop-rspec_rails (~> 2.31)
|
|
11
11
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
activesupport (
|
|
16
|
-
|
|
15
|
+
activesupport (8.1.3)
|
|
16
|
+
base64
|
|
17
|
+
bigdecimal
|
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
19
|
+
connection_pool (>= 2.2.5)
|
|
20
|
+
drb
|
|
17
21
|
i18n (>= 1.6, < 2)
|
|
22
|
+
json
|
|
23
|
+
logger (>= 1.4.2)
|
|
18
24
|
minitest (>= 5.1)
|
|
19
|
-
|
|
25
|
+
securerandom (>= 0.3)
|
|
26
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
27
|
+
uri (>= 0.13.1)
|
|
20
28
|
ast (2.4.3)
|
|
21
|
-
|
|
29
|
+
base64 (0.3.0)
|
|
30
|
+
bigdecimal (4.1.2)
|
|
31
|
+
concurrent-ruby (1.3.8)
|
|
32
|
+
connection_pool (3.0.2)
|
|
22
33
|
diff-lcs (1.4.2)
|
|
23
|
-
|
|
34
|
+
drb (2.2.3)
|
|
35
|
+
i18n (1.15.2)
|
|
24
36
|
concurrent-ruby (~> 1.0)
|
|
25
|
-
json (2.
|
|
26
|
-
language_server-protocol (3.17.0.
|
|
37
|
+
json (2.21.1)
|
|
38
|
+
language_server-protocol (3.17.0.6)
|
|
27
39
|
lint_roller (1.1.0)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
40
|
+
logger (1.7.0)
|
|
41
|
+
minitest (6.0.6)
|
|
42
|
+
drb (~> 2.0)
|
|
43
|
+
prism (~> 1.5)
|
|
44
|
+
parallel (1.28.0)
|
|
45
|
+
parser (3.3.12.0)
|
|
31
46
|
ast (~> 2.4.1)
|
|
32
47
|
racc
|
|
33
|
-
prism (1.
|
|
48
|
+
prism (1.9.0)
|
|
34
49
|
racc (1.8.1)
|
|
35
|
-
rack (3.
|
|
50
|
+
rack (3.2.6)
|
|
36
51
|
rainbow (3.1.1)
|
|
37
52
|
rake (12.3.3)
|
|
38
|
-
regexp_parser (2.
|
|
53
|
+
regexp_parser (2.12.0)
|
|
39
54
|
rspec (3.9.0)
|
|
40
55
|
rspec-core (~> 3.9.0)
|
|
41
56
|
rspec-expectations (~> 3.9.0)
|
|
@@ -49,44 +64,48 @@ GEM
|
|
|
49
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
50
65
|
rspec-support (~> 3.9.0)
|
|
51
66
|
rspec-support (3.9.3)
|
|
52
|
-
rubocop (1.
|
|
67
|
+
rubocop (1.88.2)
|
|
53
68
|
json (~> 2.3)
|
|
54
69
|
language_server-protocol (~> 3.17.0.2)
|
|
55
70
|
lint_roller (~> 1.1.0)
|
|
56
|
-
parallel (
|
|
71
|
+
parallel (>= 1.10)
|
|
57
72
|
parser (>= 3.3.0.2)
|
|
58
73
|
rainbow (>= 2.2.2, < 4.0)
|
|
59
74
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
60
|
-
rubocop-ast (>= 1.
|
|
75
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
61
76
|
ruby-progressbar (~> 1.7)
|
|
62
|
-
tsort (>= 0.2.0)
|
|
63
77
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
64
|
-
rubocop-ast (1.
|
|
78
|
+
rubocop-ast (1.50.0)
|
|
65
79
|
parser (>= 3.3.7.2)
|
|
66
|
-
prism (~> 1.
|
|
67
|
-
rubocop-capybara (
|
|
68
|
-
|
|
69
|
-
|
|
80
|
+
prism (~> 1.7)
|
|
81
|
+
rubocop-capybara (3.0.0)
|
|
82
|
+
lint_roller (~> 1.1)
|
|
83
|
+
rubocop (~> 1.81)
|
|
84
|
+
rubocop-factory_bot (2.28.0)
|
|
70
85
|
lint_roller (~> 1.1)
|
|
71
86
|
rubocop (~> 1.72, >= 1.72.1)
|
|
72
|
-
rubocop-rails (2.
|
|
87
|
+
rubocop-rails (2.36.0)
|
|
73
88
|
activesupport (>= 4.2.0)
|
|
89
|
+
lint_roller (~> 1.1)
|
|
74
90
|
rack (>= 1.1)
|
|
75
|
-
rubocop (>= 1.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
rubocop
|
|
81
|
-
rubocop-rspec_rails (2.
|
|
82
|
-
|
|
91
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
92
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
93
|
+
rubocop-rspec (3.10.2)
|
|
94
|
+
lint_roller (~> 1.1)
|
|
95
|
+
regexp_parser (>= 2.0)
|
|
96
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
97
|
+
rubocop-rspec_rails (2.32.0)
|
|
98
|
+
lint_roller (~> 1.1)
|
|
99
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
100
|
+
rubocop-rspec (~> 3.5)
|
|
83
101
|
ruby-progressbar (1.13.0)
|
|
84
|
-
|
|
102
|
+
securerandom (0.4.1)
|
|
85
103
|
tzinfo (2.0.6)
|
|
86
104
|
concurrent-ruby (~> 1.0)
|
|
87
|
-
unicode-display_width (3.
|
|
88
|
-
unicode-emoji (~> 4.
|
|
89
|
-
unicode-emoji (4.0
|
|
105
|
+
unicode-display_width (3.2.0)
|
|
106
|
+
unicode-emoji (~> 4.1)
|
|
107
|
+
unicode-emoji (4.2.0)
|
|
108
|
+
uri (1.1.1)
|
|
90
109
|
|
|
91
110
|
PLATFORMS
|
|
92
111
|
ruby
|
|
@@ -95,8 +114,8 @@ DEPENDENCIES
|
|
|
95
114
|
Dutchie-Style!
|
|
96
115
|
rake (~> 12.0)
|
|
97
116
|
rspec (~> 3.0)
|
|
98
|
-
rubocop (~> 1.
|
|
99
|
-
rubocop-rails (~> 2.
|
|
117
|
+
rubocop (~> 1.81)
|
|
118
|
+
rubocop-rails (~> 2.32)
|
|
100
119
|
|
|
101
120
|
BUNDLED WITH
|
|
102
|
-
2.
|
|
121
|
+
2.6.2
|
data/config/default.yml
CHANGED
|
@@ -144,7 +144,7 @@ module RuboCop
|
|
|
144
144
|
# Armageddon pattern checks
|
|
145
145
|
|
|
146
146
|
def check_flag_method(node)
|
|
147
|
-
flag_key,
|
|
147
|
+
flag_key, args = dutchie_flag_call?(node)
|
|
148
148
|
return unless flag_key
|
|
149
149
|
|
|
150
150
|
# Need at least one more argument after the key (the default value)
|
|
@@ -156,7 +156,7 @@ module RuboCop
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
def check_context_flag_method(node)
|
|
159
|
-
flag_key,
|
|
159
|
+
flag_key, args = context_flag_call?(node)
|
|
160
160
|
return unless flag_key
|
|
161
161
|
|
|
162
162
|
return if has_default_kwarg?(args)
|
|
@@ -167,7 +167,7 @@ module RuboCop
|
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
def check_dispensary_flag_method(node)
|
|
170
|
-
flag_key,
|
|
170
|
+
flag_key, args = dispensary_flag_call?(node)
|
|
171
171
|
return unless flag_key
|
|
172
172
|
|
|
173
173
|
return if has_default_kwarg?(args)
|
|
@@ -178,7 +178,7 @@ module RuboCop
|
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
def check_enterprise_flag_method(node)
|
|
181
|
-
flag_key,
|
|
181
|
+
flag_key, args = enterprise_flag_call?(node)
|
|
182
182
|
return unless flag_key
|
|
183
183
|
|
|
184
184
|
return if has_default_kwarg?(args)
|
|
@@ -189,7 +189,7 @@ module RuboCop
|
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
def check_on_method(node)
|
|
192
|
-
flag_key,
|
|
192
|
+
flag_key, args = on_call?(node)
|
|
193
193
|
return unless flag_key
|
|
194
194
|
|
|
195
195
|
# on? accepts default: as keyword or as second positional argument
|
|
@@ -202,7 +202,7 @@ module RuboCop
|
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
def check_off_method(node)
|
|
205
|
-
flag_key,
|
|
205
|
+
flag_key, args = off_call?(node)
|
|
206
206
|
return unless flag_key
|
|
207
207
|
|
|
208
208
|
# off? accepts default: as keyword or as second positional argument
|
|
@@ -217,7 +217,7 @@ module RuboCop
|
|
|
217
217
|
# MenuConnector pattern checks
|
|
218
218
|
|
|
219
219
|
def check_variation_method(node)
|
|
220
|
-
flag_key,
|
|
220
|
+
flag_key, args = variation_call?(node)
|
|
221
221
|
return unless flag_key
|
|
222
222
|
|
|
223
223
|
# variation(flag, context, default) - need at least 2 args after flag
|
|
@@ -238,7 +238,7 @@ module RuboCop
|
|
|
238
238
|
# Don't check mock variation calls in test code
|
|
239
239
|
return if in_test_file?(node)
|
|
240
240
|
|
|
241
|
-
flag_key,
|
|
241
|
+
flag_key, args = mock_variation_call?(node)
|
|
242
242
|
return unless flag_key
|
|
243
243
|
|
|
244
244
|
# Same logic as regular variation
|
data/old-default.yml
CHANGED
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: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christopher Ostrowski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -16,84 +16,84 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
19
|
+
version: '1.81'
|
|
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.81'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop-capybara
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '3.0'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '3.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rubocop-factory_bot
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '2.
|
|
47
|
+
version: '2.28'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '2.
|
|
54
|
+
version: '2.28'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rubocop-rails
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '2.
|
|
61
|
+
version: '2.32'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '2.
|
|
68
|
+
version: '2.32'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rubocop-rspec
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
75
|
+
version: '3.0'
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
82
|
+
version: '3.0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: rubocop-rspec_rails
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '2.
|
|
89
|
+
version: '2.31'
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '2.
|
|
96
|
+
version: '2.31'
|
|
97
97
|
description: Rubocop Settings for all dutchie Ruby Apps
|
|
98
98
|
email:
|
|
99
99
|
- chris@dutchie.com
|