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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 304c7a57d19f039460011d0d8a47454bfb838f73de6113da8bac3e552ab29f61
4
- data.tar.gz: 31ef6fbbacf0d729cc0107d59f86267288f7abc6bc396f31b653da4f044976ae
3
+ metadata.gz: 2979ce72ee0581c527a64720f84203514d2d3f9f68ec96a7e48b0785a3b5574a
4
+ data.tar.gz: '040977d7c8ecdaf0000a5fe714677365bb8361ec743f26a8682fc1b8f39a7f78'
5
5
  SHA512:
6
- metadata.gz: 47f5540ae2e8a454664c8776b702080bee8ceb78507b5d876b1cabaa1ff40f3f357325b2041662d779e38d72e5bb7fc0e07e559911bf3e6d69aa3ef8d0318eae
7
- data.tar.gz: cc499085838e10a922164dd1d9596d8f2c978583127d25b3859ee43e68e15237433c4757c7cbf26f67a46e9c4708ab560479d464484fcaf4ade78e595cea60fa
6
+ metadata.gz: 9d2272007d026c87ea281c4502251e87cd1fc21c238840f5cda86e1a35155b16df1c82763f76b80fee0935b53eaeb6d470767abd46065ad4f37297ab43e86951
7
+ data.tar.gz: 36c8d0bc49b88c07d86f149966422acf23d17635acd07147a644d9ebc0002bf8a3cdc78576e73ac58b2073759e426a6cd2399cbe2306610c275ac2529510d810
@@ -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", "~> 0.93.1"
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
@@ -5,5 +5,5 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "rspec", "~> 3.0"
8
- gem "rubocop", "~> 0.93.1"
9
- gem "rubocop-rails", "~> 2.6.0"
8
+ gem "rubocop", "~> 1.30.1"
9
+ gem "rubocop-rails", "~> 2.14.2"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Dutchie-Style (1.0.9)
4
+ Dutchie-Style (1.0.10)
5
5
  rubocop (~> 0.93.1)
6
6
  rubocop-rails
7
7
  rubocop-rspec
@@ -78,4 +78,4 @@ DEPENDENCIES
78
78
  rubocop-rails (~> 2.6.0)
79
79
 
80
80
  BUNDLED WITH
81
- 2.1.4
81
+ 2.2.27
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
- Max: 10
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dutchie
4
4
  module Style
5
- VERSION = '1.0.9'
5
+ VERSION = '2.0.0'
6
6
  end
7
7
  end
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.9
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: 2021-06-01 00:00:00.000000000 Z
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: 0.93.1
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: 0.93.1
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.1.2
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