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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6b2a358d911c4029b29bca907108565f063310fdbafb8943d2e26280ae6f244
4
- data.tar.gz: 4b4773a79dc3816ec0b91ea449843ac8318718e727aabcff1d6c4727e9bc40c0
3
+ metadata.gz: c9bf9825ba4ba0d6fa99e628e3ed84a735a8db714e820c5388758519d211fa1a
4
+ data.tar.gz: e7b222b019334fd7077589761fdf1aed7f93833fce5bd76a6c7aed50a8637eac
5
5
  SHA512:
6
- metadata.gz: 1af2412d988306af579894d663732726d86e5569702e06321266fbea13b59bf1c3970d6700e7c82c44e564f01800ac251ee18db45c4514cef6bfc1e3d4ce1194
7
- data.tar.gz: da5b2893cfb5b3b555313606eedabb48f932b861435d8425f778355e121fe0540616bc57a90db7ec843a9073c07b4cafc13eb17e93e66761d30f5529afe91c9c
6
+ metadata.gz: a17c05f6343d77102a8ae400129e6429d450ec04e428c9166e9f68dacc5fc731a6a3b61750b5d9568684feed166301eefd5ca600d5e5484b5c93eb35ab71a7f4
7
+ data.tar.gz: 0f3f2d8d3d221841420dfbeac66ce89fa935ec5bde86cb735bc7e04f7c0b851ba650f62e39786917d70b57da256431441d5aaa2c30b81b4279e145640dde72ff
data/.gitignore CHANGED
@@ -19,11 +19,11 @@ yarn-error.log
19
19
 
20
20
  # Ignore master key for decrypting credentials and more.
21
21
  /config/master.key
22
-
23
22
  .env
24
23
 
25
24
  # Emacs droppings
26
25
  *~
26
+ *.gem
27
27
 
28
28
  # Mac OS noise
29
29
  .DS_Store
@@ -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.80.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
@@ -5,4 +5,5 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "rspec", "~> 3.0"
8
- gem "rubocop", "~> 0.80"
8
+ gem "rubocop", "~> 0.93.1"
9
+ gem "rubocop-rails", "~> 2.6.0"
@@ -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
@@ -13,5 +13,6 @@ It is available as a rubygem as well as an NPM package.
13
13
  Includes:
14
14
 
15
15
  * RuboCop Config
16
+ * RuboCop Rspec Config
16
17
  * Eslint Config
17
18
  * Prettier Config
@@ -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: false
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
- # There are valid cases, for example debugging Cucumber steps,
204
- # also they'll fail CI anyway
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: false
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
@@ -1,5 +1,5 @@
1
1
  module Dutchie
2
2
  module Style
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  end
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.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-06-24 00:00:00.000000000 Z
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.80.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.80.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