Dutchie-Style 1.0.3 → 1.0.9
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 +2 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +35 -13
- data/default.yml +45 -10
- data/lib/Dutchie/Style/version.rb +3 -1
- metadata +22 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 304c7a57d19f039460011d0d8a47454bfb838f73de6113da8bac3e552ab29f61
|
|
4
|
+
data.tar.gz: 31ef6fbbacf0d729cc0107d59f86267288f7abc6bc396f31b653da4f044976ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47f5540ae2e8a454664c8776b702080bee8ceb78507b5d876b1cabaa1ff40f3f357325b2041662d779e38d72e5bb7fc0e07e559911bf3e6d69aa3ef8d0318eae
|
|
7
|
+
data.tar.gz: cc499085838e10a922164dd1d9596d8f2c978583127d25b3859ee43e68e15237433c4757c7cbf26f67a46e9c4708ab560479d464484fcaf4ade78e595cea60fa
|
data/Dutchie-Style.gemspec
CHANGED
|
@@ -26,6 +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", "~> 0.
|
|
29
|
+
spec.add_dependency "rubocop", "~> 0.93.1"
|
|
30
30
|
spec.add_dependency "rubocop-rspec"
|
|
31
|
+
spec.add_dependency "rubocop-rails"
|
|
31
32
|
end
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
Dutchie-Style (1.0.
|
|
5
|
-
rubocop (~> 0.
|
|
4
|
+
Dutchie-Style (1.0.9)
|
|
5
|
+
rubocop (~> 0.93.1)
|
|
6
|
+
rubocop-rails
|
|
6
7
|
rubocop-rspec
|
|
7
8
|
|
|
8
9
|
GEM
|
|
9
10
|
remote: https://rubygems.org/
|
|
10
11
|
specs:
|
|
12
|
+
activesupport (6.0.3.2)
|
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
|
+
i18n (>= 0.7, < 2)
|
|
15
|
+
minitest (~> 5.1)
|
|
16
|
+
tzinfo (~> 1.1)
|
|
17
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
|
11
18
|
ast (2.4.1)
|
|
19
|
+
concurrent-ruby (1.1.7)
|
|
12
20
|
diff-lcs (1.4.2)
|
|
21
|
+
i18n (1.8.5)
|
|
22
|
+
concurrent-ruby (~> 1.0)
|
|
23
|
+
minitest (5.14.2)
|
|
13
24
|
parallel (1.19.2)
|
|
14
|
-
parser (2.7.
|
|
25
|
+
parser (2.7.2.0)
|
|
15
26
|
ast (~> 2.4.1)
|
|
27
|
+
rack (2.2.3)
|
|
16
28
|
rainbow (3.0.0)
|
|
17
29
|
rake (12.3.3)
|
|
18
|
-
regexp_parser (1.
|
|
30
|
+
regexp_parser (1.8.2)
|
|
19
31
|
rexml (3.2.4)
|
|
20
32
|
rspec (3.9.0)
|
|
21
33
|
rspec-core (~> 3.9.0)
|
|
@@ -30,21 +42,30 @@ GEM
|
|
|
30
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
31
43
|
rspec-support (~> 3.9.0)
|
|
32
44
|
rspec-support (3.9.3)
|
|
33
|
-
rubocop (0.
|
|
45
|
+
rubocop (0.93.1)
|
|
34
46
|
parallel (~> 1.10)
|
|
35
|
-
parser (>= 2.7.
|
|
47
|
+
parser (>= 2.7.1.5)
|
|
36
48
|
rainbow (>= 2.2.2, < 4.0)
|
|
37
|
-
regexp_parser (>= 1.
|
|
49
|
+
regexp_parser (>= 1.8)
|
|
38
50
|
rexml
|
|
39
|
-
rubocop-ast (>= 0.
|
|
51
|
+
rubocop-ast (>= 0.6.0)
|
|
40
52
|
ruby-progressbar (~> 1.7)
|
|
41
53
|
unicode-display_width (>= 1.4.0, < 2.0)
|
|
42
|
-
rubocop-ast (0.
|
|
43
|
-
parser (>= 2.7.
|
|
44
|
-
rubocop-
|
|
45
|
-
|
|
54
|
+
rubocop-ast (0.7.1)
|
|
55
|
+
parser (>= 2.7.1.5)
|
|
56
|
+
rubocop-rails (2.6.0)
|
|
57
|
+
activesupport (>= 4.2.0)
|
|
58
|
+
rack (>= 1.1)
|
|
59
|
+
rubocop (>= 0.82.0)
|
|
60
|
+
rubocop-rspec (1.44.1)
|
|
61
|
+
rubocop (~> 0.87)
|
|
62
|
+
rubocop-ast (>= 0.7.1)
|
|
46
63
|
ruby-progressbar (1.10.1)
|
|
64
|
+
thread_safe (0.3.6)
|
|
65
|
+
tzinfo (1.2.7)
|
|
66
|
+
thread_safe (~> 0.1)
|
|
47
67
|
unicode-display_width (1.7.0)
|
|
68
|
+
zeitwerk (2.4.0)
|
|
48
69
|
|
|
49
70
|
PLATFORMS
|
|
50
71
|
ruby
|
|
@@ -53,7 +74,8 @@ DEPENDENCIES
|
|
|
53
74
|
Dutchie-Style!
|
|
54
75
|
rake (~> 12.0)
|
|
55
76
|
rspec (~> 3.0)
|
|
56
|
-
rubocop (~> 0.
|
|
77
|
+
rubocop (~> 0.93.1)
|
|
78
|
+
rubocop-rails (~> 2.6.0)
|
|
57
79
|
|
|
58
80
|
BUNDLED WITH
|
|
59
81
|
2.1.4
|
data/default.yml
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require:
|
|
2
2
|
- rubocop-rspec
|
|
3
|
+
- rubocop-rails
|
|
3
4
|
|
|
4
5
|
AllCops:
|
|
5
6
|
TargetRubyVersion: 2.6
|
|
@@ -20,6 +21,10 @@ AllCops:
|
|
|
20
21
|
- '*.yml'
|
|
21
22
|
- '.pryrc'
|
|
22
23
|
|
|
24
|
+
# https://docs.rubocop.org/rubocop/1.10/cops_layout.html#layoutclassstructure
|
|
25
|
+
Layout/ClassStructure:
|
|
26
|
+
Enabled: true
|
|
27
|
+
|
|
23
28
|
# Commonly used screens these days easily fit more than 80 characters.
|
|
24
29
|
Layout/LineLength:
|
|
25
30
|
Max: 120
|
|
@@ -56,6 +61,10 @@ Layout/SpaceInsideBlockBraces:
|
|
|
56
61
|
Layout/SpaceInsideHashLiteralBraces:
|
|
57
62
|
EnforcedStyle: no_space
|
|
58
63
|
|
|
64
|
+
# Exclude RSpec
|
|
65
|
+
Metrics/BlockLength:
|
|
66
|
+
ExcludedMethods: ['describe', 'context']
|
|
67
|
+
|
|
59
68
|
# Too short methods lead to extraction of single-use methods, which can make
|
|
60
69
|
# the code easier to read (by naming things), but can also clutter the class
|
|
61
70
|
Metrics/MethodLength:
|
|
@@ -102,12 +111,15 @@ Style/StringLiterals:
|
|
|
102
111
|
Style/HashSyntax:
|
|
103
112
|
EnforcedStyle: ruby19_no_mixed_keys
|
|
104
113
|
|
|
114
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/HashEachMethods
|
|
105
115
|
Style/HashEachMethods:
|
|
106
|
-
Enabled:
|
|
116
|
+
Enabled: true
|
|
107
117
|
|
|
118
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/HashTransformKeys
|
|
108
119
|
Style/HashTransformKeys:
|
|
109
120
|
Enabled: false
|
|
110
121
|
|
|
122
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/HashTransformValues
|
|
111
123
|
Style/HashTransformValues:
|
|
112
124
|
Enabled: false
|
|
113
125
|
|
|
@@ -126,6 +138,8 @@ Style/FormatString:
|
|
|
126
138
|
Style/CollectionMethods:
|
|
127
139
|
Enabled: true
|
|
128
140
|
PreferredMethods:
|
|
141
|
+
# find is not equivalent on mongoid embeds or collections
|
|
142
|
+
find: "detect"
|
|
129
143
|
# inject seems more common in the community.
|
|
130
144
|
reduce: "inject"
|
|
131
145
|
|
|
@@ -174,11 +188,6 @@ Style/RaiseArgs:
|
|
|
174
188
|
Style/SignalException:
|
|
175
189
|
EnforcedStyle: only_raise
|
|
176
190
|
|
|
177
|
-
# { ... } for multi-line blocks is okay, follow Weirichs rule instead:
|
|
178
|
-
# https://web.archive.org/web/20140221124509/http://onestepback.org/index.cgi/Tech/Ruby/BraceVsDoEnd.rdoc
|
|
179
|
-
Style/BlockDelimiters:
|
|
180
|
-
Enabled: false
|
|
181
|
-
|
|
182
191
|
# do / end blocks should be used for side effects,
|
|
183
192
|
# methods that run a block for side effects and have
|
|
184
193
|
# a useful return value are rare, assign the return
|
|
@@ -202,10 +211,10 @@ Style/MethodDefParentheses:
|
|
|
202
211
|
Lint/ShadowingOuterLocalVariable:
|
|
203
212
|
Enabled: false
|
|
204
213
|
|
|
205
|
-
#
|
|
206
|
-
#
|
|
214
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/Debugger
|
|
215
|
+
# Show linting errors on debugger/binding.pry even in development
|
|
207
216
|
Lint/Debugger:
|
|
208
|
-
Enabled:
|
|
217
|
+
Enabled: true
|
|
209
218
|
|
|
210
219
|
Lint/AssignmentInCondition:
|
|
211
220
|
AllowSafeAssignment: false
|
|
@@ -218,4 +227,30 @@ Naming/BinaryOperatorParameterName:
|
|
|
218
227
|
Enabled: false
|
|
219
228
|
|
|
220
229
|
Lint/ConstantResolution:
|
|
221
|
-
Enabled: false
|
|
230
|
+
Enabled: false
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
# Rails
|
|
234
|
+
Rails/SaveBang:
|
|
235
|
+
Enabled: false
|
|
236
|
+
|
|
237
|
+
# Temporarily removing until Mongoid is no more...
|
|
238
|
+
# Mongoid #find_by raises an exception if it can't be found, unlike AR #find_by, so .where().first is preferred
|
|
239
|
+
# Rubocop can't tell the difference between the two
|
|
240
|
+
Rails/FindBy:
|
|
241
|
+
Enabled: false
|
|
242
|
+
Include:
|
|
243
|
+
- app/**/*.rb
|
|
244
|
+
|
|
245
|
+
# RSpec
|
|
246
|
+
RSpec/AlignLeftLetBrace:
|
|
247
|
+
Enabled: true
|
|
248
|
+
|
|
249
|
+
RSpec/AlignRightLetBrace:
|
|
250
|
+
Enabled: false
|
|
251
|
+
|
|
252
|
+
RSpec/MultipleMemoizedHelpers:
|
|
253
|
+
Max: 10
|
|
254
|
+
|
|
255
|
+
RSpec/NestedGroups:
|
|
256
|
+
Max: 5
|
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: 1.0.
|
|
4
|
+
version: 1.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christopher Ostrowski
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-06-01 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: 0.
|
|
19
|
+
version: 0.93.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: 0.
|
|
26
|
+
version: 0.93.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop-rspec
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -38,6 +38,20 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rubocop-rails
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
41
55
|
description: Rubocop Settings for all dutchie Ruby Apps
|
|
42
56
|
email:
|
|
43
57
|
- chris@dutchie.com
|
|
@@ -61,7 +75,7 @@ metadata:
|
|
|
61
75
|
homepage_uri: https://github.com/GetDutchie/Dutchie-Style
|
|
62
76
|
source_code_uri: https://github.com/GetDutchie/Dutchie-Style
|
|
63
77
|
changelog_uri: https://github.com/GetDutchie/Dutchie-Style/releases
|
|
64
|
-
post_install_message:
|
|
78
|
+
post_install_message:
|
|
65
79
|
rdoc_options: []
|
|
66
80
|
require_paths:
|
|
67
81
|
- lib
|
|
@@ -76,8 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
90
|
- !ruby/object:Gem::Version
|
|
77
91
|
version: '0'
|
|
78
92
|
requirements: []
|
|
79
|
-
rubygems_version: 3.
|
|
80
|
-
signing_key:
|
|
93
|
+
rubygems_version: 3.1.2
|
|
94
|
+
signing_key:
|
|
81
95
|
specification_version: 4
|
|
82
96
|
summary: Rubocop Settings for all dutchie Ruby Apps
|
|
83
97
|
test_files: []
|