ws-style 6.13.24 → 6.14.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: d64a3f4081b0ba463f72514f8c8e8c12f0fca98d9e5d714ac807726e412a2bec
4
- data.tar.gz: 577c9e47c4d26df280c7ed3a39a596d837ccd1ff6b427adb109dbcb155fda881
3
+ metadata.gz: 274a8564b43a2c85e1e0a1cfd81edb4bdfcb3d87cb22a3c440d6d170365ae5c5
4
+ data.tar.gz: 95f50395e93d29800969e79e1970ee140657f87c8ce00f0803a6b975c260f7ac
5
5
  SHA512:
6
- metadata.gz: 10684197b9f4454740903b93b48168f0c9bf5517ac4086e5677675fab41e57c75d6ad3722ab9fcb23707f5ff3cacb332098fece0141981a40d10426b2f8f0949
7
- data.tar.gz: 847aea905eeab3bd36a2e12bb0c7797519a56ab8bf37ac6c2f162da918b65b5e22ca8a94292744e2a59320bb359127628cf58d01ea10cbe780ea63e1b2888eb3
6
+ metadata.gz: acd1945fa3a787ac4ba9c4f2d3ed55d71b296e13f264f1c5d7706e338dd599073839e36f600c28c20db845e680e4c790ab44250f2b869dd7edd3a2ca10c125c2
7
+ data.tar.gz: 9b9f1792542db20b48927321dfc69441e8fae02aa934342d293ae2a5d98ee2fbadc97a5a3e98835668ca202683f4e6b3ffde4403940a77773f4429d991ece643
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 6.14.0 - 2022-09-6
8
+ ### Changed
9
+ - Support new rules introduced between rubocop 1.26 -> 1.36
10
+
11
+ ## 6.13.25 - 2022-07-13
12
+ ### Changed
13
+ - Disable AllowForAlignment under Layout/ExtraSpacing.
14
+
7
15
  ## 6.13.24 - 2022-06-27
8
16
  ### Changed
9
17
  - Replaced Gemspec/DateAssignment with Gemspec/DeprecatedAttributesAssignment
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ws-style (6.13.24)
5
- rubocop (>= 1.30)
4
+ ws-style (6.14.0)
5
+ rubocop (>= 1.36)
6
6
  rubocop-performance (>= 1.10.2)
7
7
  rubocop-rails (>= 2.9.1)
8
8
  rubocop-rspec (>= 2.2.0)
@@ -11,30 +11,34 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.0.3)
14
+ activesupport (7.0.4)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
18
18
  tzinfo (~> 2.0)
19
+ addressable (2.8.1)
20
+ public_suffix (>= 2.0.2, < 6.0)
19
21
  ast (2.4.2)
20
22
  bundler-audit (0.7.0.1)
21
23
  bundler (>= 1.2.0, < 3)
22
24
  thor (>= 0.18, < 2)
23
25
  concurrent-ruby (1.1.10)
24
26
  diff-lcs (1.5.0)
25
- git (1.11.0)
27
+ git (1.12.0)
28
+ addressable (~> 2.8)
26
29
  rchardet (~> 1.8)
27
- i18n (1.10.0)
30
+ i18n (1.12.0)
28
31
  concurrent-ruby (~> 1.0)
29
32
  json (2.6.2)
30
33
  keepachangelog (0.6.1)
31
34
  json (~> 2.1)
32
35
  thor (~> 0.20)
33
- minitest (5.16.1)
36
+ minitest (5.16.3)
34
37
  parallel (1.22.1)
35
- parser (3.1.2.0)
38
+ parser (3.1.2.1)
36
39
  ast (~> 2.4.1)
37
- rack (2.2.3.1)
40
+ public_suffix (5.0.0)
41
+ rack (3.0.0)
38
42
  rainbow (3.1.1)
39
43
  rake (13.0.6)
40
44
  rchardet (1.8.0)
@@ -53,31 +57,32 @@ GEM
53
57
  diff-lcs (>= 1.2.0, < 2.0)
54
58
  rspec-support (~> 3.11.0)
55
59
  rspec-support (3.11.0)
56
- rubocop (1.31.0)
60
+ rubocop (1.36.0)
61
+ json (~> 2.3)
57
62
  parallel (~> 1.10)
58
- parser (>= 3.1.0.0)
63
+ parser (>= 3.1.2.1)
59
64
  rainbow (>= 2.2.2, < 4.0)
60
65
  regexp_parser (>= 1.8, < 3.0)
61
66
  rexml (>= 3.2.5, < 4.0)
62
- rubocop-ast (>= 1.18.0, < 2.0)
67
+ rubocop-ast (>= 1.20.1, < 2.0)
63
68
  ruby-progressbar (~> 1.7)
64
69
  unicode-display_width (>= 1.4.0, < 3.0)
65
- rubocop-ast (1.18.0)
70
+ rubocop-ast (1.21.0)
66
71
  parser (>= 3.1.1.0)
67
- rubocop-performance (1.14.2)
72
+ rubocop-performance (1.15.0)
68
73
  rubocop (>= 1.7.0, < 2.0)
69
74
  rubocop-ast (>= 0.4.0)
70
- rubocop-rails (2.15.1)
75
+ rubocop-rails (2.16.0)
71
76
  activesupport (>= 4.2.0)
72
77
  rack (>= 1.1)
73
- rubocop (>= 1.7.0, < 2.0)
74
- rubocop-rspec (2.11.1)
75
- rubocop (~> 1.19)
78
+ rubocop (>= 1.33.0, < 2.0)
79
+ rubocop-rspec (2.12.1)
80
+ rubocop (~> 1.31)
76
81
  rubocop-vendor (0.8.10)
77
82
  rubocop (>= 0.53.0)
78
83
  ruby-progressbar (1.11.0)
79
84
  thor (0.20.3)
80
- tzinfo (2.0.4)
85
+ tzinfo (2.0.5)
81
86
  concurrent-ruby (~> 1.0)
82
87
  unicode-display_width (2.2.0)
83
88
 
@@ -94,4 +99,4 @@ DEPENDENCIES
94
99
  ws-style!
95
100
 
96
101
  BUNDLED WITH
97
- 2.3.16
102
+ 2.3.21
data/Rakefile CHANGED
@@ -20,7 +20,9 @@ task :election do
20
20
  'performance' => 'https://docs.rubocop.org/rubocop-performance/cops_performance.html#performance',
21
21
  'rails' => 'https://docs.rubocop.org/rubocop-rails/cops_rails.html#rails',
22
22
  'rspec' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspec',
23
- 'rspec_factorybot' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html#rspecfactorybot',
23
+ 'rspec_capybara' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html',
24
+ 'rspec_factorybot' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html',
25
+ 'rspec_rails' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html',
24
26
  'security' => 'https://docs.rubocop.org/rubocop/cops_security.html#security',
25
27
  'style' => 'https://docs.rubocop.org/rubocop/cops_style.html#style',
26
28
  'naming' => 'https://docs.rubocop.org/rubocop/cops_naming.html#naming',
data/core.yml CHANGED
@@ -11,6 +11,9 @@ inherit_mode:
11
11
  - AllowedNames
12
12
  - Exclude
13
13
 
14
+ AllCops:
15
+ NewCops: disable
16
+
14
17
  AllCops:
15
18
  Exclude:
16
19
  - "bin/**/*"
@@ -52,6 +55,10 @@ Layout/EmptyLineBetweenDefs:
52
55
  Layout/EndAlignment:
53
56
  Enabled: false
54
57
 
58
+ Layout/ExtraSpacing:
59
+ Enabled: true
60
+ AllowForAlignment: false
61
+
55
62
  Layout/FirstArrayElementIndentation:
56
63
  EnforcedStyle: consistent
57
64
 
@@ -82,7 +89,7 @@ Metrics/CyclomaticComplexity:
82
89
  Max: 7
83
90
 
84
91
  Metrics/MethodLength:
85
- IgnoredMethods: ["extended"]
92
+ AllowedMethods: ["extended"]
86
93
  Max: 25
87
94
 
88
95
  Metrics/ModuleLength:
@@ -566,3 +573,78 @@ Style/HashSyntax:
566
573
  # rubocop-rspec 2.7
567
574
  RSpec/FactoryBot/SyntaxMethods:
568
575
  Enabled: False
576
+
577
+ # rubocop 1.26
578
+ Style/NestedFileDirname:
579
+ Enabled: True
580
+
581
+ # rubocop 1.27
582
+ Lint/RefinementImportMethods:
583
+ Enabled: True
584
+
585
+ Style/RedundantInitialize:
586
+ Enabled: True
587
+
588
+ # rubocop 1.28
589
+ Security/CompoundHash:
590
+ Enabled: True
591
+
592
+ Style/FetchEnvVar:
593
+ Enabled: True
594
+
595
+ Style/ObjectThen:
596
+ Enabled: True
597
+
598
+ # rubocop 1.29
599
+ Style/EnvHome:
600
+ Enabled: True
601
+
602
+ # rubocop 1.30
603
+ Style/MapCompactWithConditionalBlock:
604
+ Enabled: True
605
+
606
+ # rubocop 1.31
607
+ Layout/LineContinuationLeadingSpace:
608
+ Enabled: True
609
+
610
+ Layout/LineContinuationSpacing:
611
+ Enabled: True
612
+
613
+ Lint/ConstantOverwrittenInRescue:
614
+ Enabled: True
615
+
616
+ Lint/NonAtomicFileOperation:
617
+ Enabled: True
618
+
619
+ # rubocop 1.32
620
+ Lint/RequireRangeParentheses:
621
+ Enabled: True
622
+
623
+ Style/EmptyHeredoc:
624
+ Enabled: True
625
+
626
+ # rubocop 1.35
627
+ Style/MagicCommentFormat:
628
+ Enabled: True
629
+
630
+ # rubocop-rspec 2.10.0
631
+ RSpec/VerifiedDoubleReference:
632
+ Enabled: True
633
+
634
+ # rubocop-rspec 2.11.0
635
+ RSpec/ChangeByZero:
636
+ Enabled: True
637
+
638
+ # rubocop-rspec 2.12
639
+ RSpec/Capybara/SpecificMatcher:
640
+ Enabled: False
641
+
642
+ RSpec/Rails/HaveHttpStatus:
643
+ Enabled: True
644
+
645
+ # rubocop-rspec 2.9.0
646
+ RSpec/BeEq:
647
+ Enabled: True
648
+
649
+ RSpec/BeNil:
650
+ Enabled: True
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.13.24'.freeze
3
+ VERSION = '6.14.0'.freeze
4
4
  end
5
5
  end
data/rails.yml CHANGED
@@ -107,3 +107,63 @@ Rails/RedundantPresenceValidationOnBelongsTo:
107
107
 
108
108
  Rails/RootJoinChain:
109
109
  Enabled: True
110
+
111
+ # rubocop-rails 2.14
112
+ Rails/ActionControllerTestCase:
113
+ Enabled: False
114
+
115
+ Rails/DeprecatedActiveModelErrorsMethods:
116
+ Enabled: True
117
+
118
+ Rails/DuplicateAssociation:
119
+ Enabled: True
120
+
121
+ Rails/DuplicateScope:
122
+ Enabled: True
123
+
124
+ Rails/I18nLazyLookup:
125
+ Enabled: True
126
+
127
+ Rails/I18nLocaleTexts:
128
+ Enabled: False
129
+
130
+ Rails/MigrationClassName:
131
+ Enabled: True
132
+
133
+ Rails/TransactionExitStatement:
134
+ Enabled: True
135
+
136
+ # rubocop-rails 2.15
137
+ Rails/DotSeparatedKeys:
138
+ Enabled: True
139
+
140
+ Rails/RootPublicPath:
141
+ Enabled: True
142
+
143
+ Rails/StripHeredoc:
144
+ Enabled: True
145
+
146
+ Rails/ToFormattedS:
147
+ Enabled: True
148
+
149
+ # rubocop-rails 2.16
150
+ Rails/ActionControllerFlashBeforeRender:
151
+ Enabled: True
152
+
153
+ Rails/ActiveSupportOnLoad:
154
+ Enabled: True
155
+
156
+ Rails/FreezeTime:
157
+ Enabled: True
158
+
159
+ Rails/RootPathnameMethods:
160
+ Enabled: True
161
+
162
+ Rails/ToSWithArgument:
163
+ Enabled: True
164
+
165
+ Rails/TopLevelHashWithIndifferentAccess:
166
+ Enabled: True
167
+
168
+ Rails/WhereMissing:
169
+ Enabled: True
data/ws-style.gemspec CHANGED
@@ -5,24 +5,24 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'ws/style/version'
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = 'ws-style'
9
- s.version = Ws::Style::VERSION
10
- s.authors = ['Peter Graham']
11
- s.email = ['peterghm@gmail.com']
8
+ s.name = 'ws-style'
9
+ s.version = Ws::Style::VERSION
10
+ s.authors = ['Peter Graham']
11
+ s.email = ['peterghm@gmail.com']
12
12
 
13
- s.summary = 'Shared rubocop config'
14
- s.description = 'Shared config to enforce Ruby style consistently across Wealthsimple services.'
15
- s.homepage = 'https://github.com/wealthsimple/ws-style'
13
+ s.summary = 'Shared rubocop config'
14
+ s.description = 'Shared config to enforce Ruby style consistently across Wealthsimple services.'
15
+ s.homepage = 'https://github.com/wealthsimple/ws-style'
16
16
 
17
- s.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ s.files = `git ls-files -z`.split("\x0").reject do |f|
18
18
  f.match(%r{^(test|spec|features)/})
19
19
  end
20
- s.bindir = 'exe'
21
- s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ s.bindir = 'exe'
21
+ s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  s.require_paths = ['lib']
23
23
  s.required_ruby_version = '>= 2.7.2'
24
24
 
25
- s.add_dependency 'rubocop', '>= 1.30'
25
+ s.add_dependency 'rubocop', '>= 1.36'
26
26
  s.add_dependency 'rubocop-performance', '>= 1.10.2'
27
27
  s.add_dependency 'rubocop-rails', '>= 2.9.1'
28
28
  s.add_dependency 'rubocop-rspec', '>= 2.2.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.13.24
4
+ version: 6.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Graham
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-27 00:00:00.000000000 Z
11
+ date: 2022-09-14 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: '1.30'
19
+ version: '1.36'
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.30'
26
+ version: '1.36'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement