Dutchie-Style 1.0.0 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Dutchie-Style.gemspec +5 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +81 -0
- data/README.md +1 -0
- data/default.yml +36 -7
- data/lib/Dutchie/Style/version.rb +1 -1
- metadata +36 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9bf9825ba4ba0d6fa99e628e3ed84a735a8db714e820c5388758519d211fa1a
|
4
|
+
data.tar.gz: e7b222b019334fd7077589761fdf1aed7f93833fce5bd76a6c7aed50a8637eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a17c05f6343d77102a8ae400129e6429d450ec04e428c9166e9f68dacc5fc731a6a3b61750b5d9568684feed166301eefd5ca600d5e5484b5c93eb35ab71a7f4
|
7
|
+
data.tar.gz: 0f3f2d8d3d221841420dfbeac66ce89fa935ec5bde86cb735bc7e04f7c0b851ba650f62e39786917d70b57da256431441d5aaa2c30b81b4279e145640dde72ff
|
data/.gitignore
CHANGED
data/Dutchie-Style.gemspec
CHANGED
@@ -6,6 +6,8 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.authors = ["Christopher Ostrowski"]
|
7
7
|
spec.email = ["chris@dutchie.com"]
|
8
8
|
|
9
|
+
spec.license = 'MIT'
|
10
|
+
|
9
11
|
spec.summary = %q{Rubocop Settings for all dutchie Ruby Apps}
|
10
12
|
spec.description = %q{Rubocop Settings for all dutchie Ruby Apps}
|
11
13
|
spec.homepage = "https://github.com/GetDutchie/Dutchie-Style"
|
@@ -24,5 +26,7 @@ Gem::Specification.new do |spec|
|
|
24
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
27
|
spec.require_paths = ["lib"]
|
26
28
|
|
27
|
-
spec.add_dependency "rubocop", "~> 0.
|
29
|
+
spec.add_dependency "rubocop", "~> 0.93.1"
|
30
|
+
spec.add_dependency "rubocop-rspec"
|
31
|
+
spec.add_dependency "rubocop-rails"
|
28
32
|
end
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
Dutchie-Style (1.0.4)
|
5
|
+
rubocop (~> 0.93.1)
|
6
|
+
rubocop-rails
|
7
|
+
rubocop-rspec
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
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)
|
18
|
+
ast (2.4.1)
|
19
|
+
concurrent-ruby (1.1.7)
|
20
|
+
diff-lcs (1.4.2)
|
21
|
+
i18n (1.8.5)
|
22
|
+
concurrent-ruby (~> 1.0)
|
23
|
+
minitest (5.14.2)
|
24
|
+
parallel (1.19.2)
|
25
|
+
parser (2.7.2.0)
|
26
|
+
ast (~> 2.4.1)
|
27
|
+
rack (2.2.3)
|
28
|
+
rainbow (3.0.0)
|
29
|
+
rake (12.3.3)
|
30
|
+
regexp_parser (1.8.2)
|
31
|
+
rexml (3.2.4)
|
32
|
+
rspec (3.9.0)
|
33
|
+
rspec-core (~> 3.9.0)
|
34
|
+
rspec-expectations (~> 3.9.0)
|
35
|
+
rspec-mocks (~> 3.9.0)
|
36
|
+
rspec-core (3.9.2)
|
37
|
+
rspec-support (~> 3.9.3)
|
38
|
+
rspec-expectations (3.9.2)
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
+
rspec-support (~> 3.9.0)
|
41
|
+
rspec-mocks (3.9.1)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.9.0)
|
44
|
+
rspec-support (3.9.3)
|
45
|
+
rubocop (0.93.1)
|
46
|
+
parallel (~> 1.10)
|
47
|
+
parser (>= 2.7.1.5)
|
48
|
+
rainbow (>= 2.2.2, < 4.0)
|
49
|
+
regexp_parser (>= 1.8)
|
50
|
+
rexml
|
51
|
+
rubocop-ast (>= 0.6.0)
|
52
|
+
ruby-progressbar (~> 1.7)
|
53
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
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.0)
|
61
|
+
rubocop (~> 0.87)
|
62
|
+
rubocop-ast (~> 0.7.1)
|
63
|
+
ruby-progressbar (1.10.1)
|
64
|
+
thread_safe (0.3.6)
|
65
|
+
tzinfo (1.2.7)
|
66
|
+
thread_safe (~> 0.1)
|
67
|
+
unicode-display_width (1.7.0)
|
68
|
+
zeitwerk (2.4.0)
|
69
|
+
|
70
|
+
PLATFORMS
|
71
|
+
ruby
|
72
|
+
|
73
|
+
DEPENDENCIES
|
74
|
+
Dutchie-Style!
|
75
|
+
rake (~> 12.0)
|
76
|
+
rspec (~> 3.0)
|
77
|
+
rubocop (~> 0.93.1)
|
78
|
+
rubocop-rails (~> 2.6.0)
|
79
|
+
|
80
|
+
BUNDLED WITH
|
81
|
+
2.1.4
|
data/README.md
CHANGED
data/default.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rspec
|
3
|
+
- rubocop-rails
|
4
|
+
|
1
5
|
AllCops:
|
2
6
|
TargetRubyVersion: 2.6
|
3
7
|
EnabledByDefault: true
|
@@ -8,7 +12,6 @@ AllCops:
|
|
8
12
|
- 'vendor/**/*'
|
9
13
|
- 'config/**/*'
|
10
14
|
- 'docs/**/*'
|
11
|
-
- 'spec/**/*'
|
12
15
|
- 'app/channels/**/*'
|
13
16
|
- 'script/**/*'
|
14
17
|
- 'lib/assets/**/*'
|
@@ -54,6 +57,10 @@ Layout/SpaceInsideBlockBraces:
|
|
54
57
|
Layout/SpaceInsideHashLiteralBraces:
|
55
58
|
EnforcedStyle: no_space
|
56
59
|
|
60
|
+
# Exclude RSpec
|
61
|
+
Metrics/BlockLength:
|
62
|
+
ExcludedMethods: ['describe', 'context']
|
63
|
+
|
57
64
|
# Too short methods lead to extraction of single-use methods, which can make
|
58
65
|
# the code easier to read (by naming things), but can also clutter the class
|
59
66
|
Metrics/MethodLength:
|
@@ -100,12 +107,15 @@ Style/StringLiterals:
|
|
100
107
|
Style/HashSyntax:
|
101
108
|
EnforcedStyle: ruby19_no_mixed_keys
|
102
109
|
|
110
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/HashEachMethods
|
103
111
|
Style/HashEachMethods:
|
104
|
-
Enabled:
|
112
|
+
Enabled: true
|
105
113
|
|
114
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/HashTransformKeys
|
106
115
|
Style/HashTransformKeys:
|
107
116
|
Enabled: false
|
108
117
|
|
118
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/HashTransformValues
|
109
119
|
Style/HashTransformValues:
|
110
120
|
Enabled: false
|
111
121
|
|
@@ -200,10 +210,10 @@ Style/MethodDefParentheses:
|
|
200
210
|
Lint/ShadowingOuterLocalVariable:
|
201
211
|
Enabled: false
|
202
212
|
|
203
|
-
#
|
204
|
-
#
|
213
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/Debugger
|
214
|
+
# Show linting errors on debugger/binding.pry even in development
|
205
215
|
Lint/Debugger:
|
206
|
-
Enabled:
|
216
|
+
Enabled: true
|
207
217
|
|
208
218
|
Lint/AssignmentInCondition:
|
209
219
|
AllowSafeAssignment: false
|
@@ -212,6 +222,25 @@ Lint/AssignmentInCondition:
|
|
212
222
|
Lint/NumberConversion:
|
213
223
|
Enabled: false
|
214
224
|
|
215
|
-
# This is just silly. Calling the argument `other` in all cases makes no sense.
|
216
225
|
Naming/BinaryOperatorParameterName:
|
217
|
-
Enabled: false
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
Lint/ConstantResolution:
|
229
|
+
Enabled: false
|
230
|
+
|
231
|
+
|
232
|
+
# Rails
|
233
|
+
Rails/SaveBang:
|
234
|
+
Enabled: false
|
235
|
+
|
236
|
+
Rails/FindBy:
|
237
|
+
Enabled: true
|
238
|
+
Include:
|
239
|
+
- app/**/*.rb
|
240
|
+
|
241
|
+
# RSpec
|
242
|
+
RSpec/AlignLeftLetBrace:
|
243
|
+
Enabled: true
|
244
|
+
|
245
|
+
RSpec/AlignRightLetBrace:
|
246
|
+
Enabled: false
|
metadata
CHANGED
@@ -1,29 +1,57 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Ostrowski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
|
+
prerelease: false
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
18
|
- - "~>"
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
20
|
+
version: 0.93.1
|
20
21
|
type: :runtime
|
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
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-rspec
|
29
|
+
prerelease: false
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
43
|
+
prerelease: false
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
description: Rubocop Settings for all dutchie Ruby Apps
|
28
56
|
email:
|
29
57
|
- chris@dutchie.com
|
@@ -35,12 +63,14 @@ files:
|
|
35
63
|
- ".gitignore"
|
36
64
|
- Dutchie-Style.gemspec
|
37
65
|
- Gemfile
|
66
|
+
- Gemfile.lock
|
38
67
|
- README.md
|
39
68
|
- default.yml
|
40
69
|
- lib/Dutchie/Style.rb
|
41
70
|
- lib/Dutchie/Style/version.rb
|
42
71
|
homepage: https://github.com/GetDutchie/Dutchie-Style
|
43
|
-
licenses:
|
72
|
+
licenses:
|
73
|
+
- MIT
|
44
74
|
metadata:
|
45
75
|
homepage_uri: https://github.com/GetDutchie/Dutchie-Style
|
46
76
|
source_code_uri: https://github.com/GetDutchie/Dutchie-Style
|