standard-rails 1.1.0 → 1.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a8e0a868c15dffa225605d8233191a4c1193847290ae27c38182eb049f2f088
4
- data.tar.gz: 7ce125bd0b23320baa7f47c6a9cc176cbcbe076bc013be49fe34e6115c88d719
3
+ metadata.gz: a832d072fdb5eda9918e6a252ca73da11727f59829d3636bb4602cd19624e667
4
+ data.tar.gz: d6923672a34c4d2e882c0fd01778cc073ce294ddcbff0653a1f5c468e8f1b560
5
5
  SHA512:
6
- metadata.gz: c9c41b4f8cfcbfb09d89051f781b01ca1f6bba083c8cd05220ad423f914e2dc9504e56756a15605d73f4dfcd4ae1345cae54d42d86f1faa0d65914c5367fb644
7
- data.tar.gz: e5cf5f65ca9775f942b0a6ff2b71739cfbff596f27ff36a6920903e1ffdb9f2172bea011867d8b8425c1fbeab8dd7d6c48249b4035286718d785e14cf9f9b1f5
6
+ metadata.gz: 62ebdfef91cec51d360b0e3f68c48798202557dcf7b8ab12109a862fe95344894777f1a3de26bea72b867e6819eef868d14a7e945ea8b5c9a4dec4c533b28df3
7
+ data.tar.gz: 5a9b10cf8f500117bf6ab3930a402af5ba872a8a183ead1ca4abc4b2eae5efb267df2766af3cb4a66b2a925edc7ad16dd28c51fb177d9215b3d892dd9e3d6693
data/.standard.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  # For available configuration options, see:
2
2
  # https://github.com/testdouble/standard
3
- ruby_version: 2.7
3
+ ruby_version: 3.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## [1.3.0]
2
+
3
+ - Update Gems
4
+ - regexp_parser@2.10.0
5
+ - rubocop-ast@1.40.0
6
+ - rubocop@1.73.2
7
+ - rubocop-performance@1.24.0
8
+ - standard-performance@1.7.0
9
+ - standard@1.47.0
10
+ - add Ruby 3.4 to Github Action Runner
11
+
12
+ ## [1.2.0]
13
+
14
+ - Update to [rubocop-rails@2.26.0](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md#2260-2024-08-24)
15
+ - Enable new [Rails/EnumSyntax](https://github.com/rubocop/rubocop-rails/blob/master/docs/modules/ROOT/pages/cops_rails.adoc#railsenumsyntax)
16
+ - Exclude [Rails/ApplicationModel](/commit/94029ecc04635bdcda9c54bfcca27f6f9656205d) from migrations
17
+ - Disable [Rails/HelperInstanceVariable](https://github.com/rubocop/rubocop-rails/blob/master/docs/modules/ROOT/pages/cops_rails.adoc#railshelperinstancevariable)
18
+ - Disable [Rails/WhereRange](https://github.com/standardrb/standard-rails/pull/57)
19
+ - Disable [Rails/BulkChangeTable](https://github.com/standardrb/standard-rails/pull/55)
20
+ - Disable [Rails/InverseOf](https://github.com/standardrb/standard-rails/pull/54)
21
+ - Disable [Rails/HasManyOrHasOneDependent](https://github.com/standardrb/standard-rails/pull/53)
22
+ - Disable [Rails/EnvironmentVariableAccess](https://github.com/standardrb/standard-rails/pull/47)
23
+
1
24
  ## [1.1.0]
2
25
 
3
26
  - Minimum Ruby version increased to 3.0
@@ -10,7 +33,7 @@
10
33
 
11
34
  ## [1.0.1]
12
35
 
13
- - Fix errors int he initial config [#24](https://github.com/standardrb/standard-rails/pull/24)
36
+ - Fix errors in the initial config [#24](https://github.com/standardrb/standard-rails/pull/24)
14
37
 
15
38
  ## [1.0.0]
16
39
 
data/Gemfile CHANGED
@@ -1,7 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
- gem "rake"
4
+ gem "m"
5
5
  gem "minitest"
6
+ gem "rake"
7
+ gem "simplecov"
6
8
  gem "standard"
7
- gem "m"
data/Gemfile.lock CHANGED
@@ -1,103 +1,117 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard-rails (1.1.0)
4
+ standard-rails (1.3.0)
5
5
  lint_roller (~> 1.0)
6
- rubocop-rails (~> 2.25.0)
6
+ rubocop-rails (~> 2.30.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.1.2)
11
+ activesupport (7.1.5)
12
12
  base64
13
+ benchmark (>= 0.3)
13
14
  bigdecimal
14
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
16
  connection_pool (>= 2.2.5)
16
17
  drb
17
18
  i18n (>= 1.6, < 2)
19
+ logger (>= 1.4.2)
18
20
  minitest (>= 5.1)
19
21
  mutex_m
22
+ securerandom (>= 0.3)
20
23
  tzinfo (~> 2.0)
21
24
  ast (2.4.2)
22
25
  base64 (0.2.0)
23
- bigdecimal (3.1.5)
24
- concurrent-ruby (1.2.2)
26
+ benchmark (0.4.0)
27
+ bigdecimal (3.1.8)
28
+ concurrent-ruby (1.3.4)
25
29
  connection_pool (2.4.1)
26
- drb (2.2.0)
27
- ruby2_keywords
28
- i18n (1.14.1)
30
+ docile (1.4.1)
31
+ drb (2.2.1)
32
+ i18n (1.14.6)
29
33
  concurrent-ruby (~> 1.0)
30
- json (2.7.1)
34
+ json (2.8.1)
31
35
  language_server-protocol (3.17.0.3)
32
36
  lint_roller (1.1.0)
37
+ logger (1.6.1)
33
38
  m (1.6.2)
34
39
  method_source (>= 0.6.7)
35
40
  rake (>= 0.9.2.2)
36
- method_source (1.0.0)
37
- minitest (5.20.0)
41
+ method_source (1.1.0)
42
+ minitest (5.25.1)
38
43
  mutex_m (0.2.0)
39
- parallel (1.24.0)
40
- parser (3.3.3.0)
44
+ parallel (1.26.3)
45
+ parser (3.3.6.0)
41
46
  ast (~> 2.4.1)
42
47
  racc
43
- racc (1.7.3)
44
- rack (3.0.8)
48
+ racc (1.8.1)
49
+ rack (3.1.7)
45
50
  rainbow (3.1.1)
46
- rake (13.1.0)
47
- regexp_parser (2.9.0)
48
- rexml (3.2.6)
49
- rubocop (1.59.0)
51
+ rake (13.2.1)
52
+ regexp_parser (2.10.0)
53
+ rubocop (1.73.2)
50
54
  json (~> 2.3)
51
- language_server-protocol (>= 3.17.0)
55
+ language_server-protocol (~> 3.17.0.2)
56
+ lint_roller (~> 1.1.0)
52
57
  parallel (~> 1.10)
53
- parser (>= 3.2.2.4)
58
+ parser (>= 3.3.0.2)
54
59
  rainbow (>= 2.2.2, < 4.0)
55
- regexp_parser (>= 1.8, < 3.0)
56
- rexml (>= 3.2.5, < 4.0)
57
- rubocop-ast (>= 1.30.0, < 2.0)
60
+ regexp_parser (>= 2.9.3, < 3.0)
61
+ rubocop-ast (>= 1.38.0, < 2.0)
58
62
  ruby-progressbar (~> 1.7)
59
- unicode-display_width (>= 2.4.0, < 3.0)
60
- rubocop-ast (1.31.3)
63
+ unicode-display_width (>= 2.4.0, < 4.0)
64
+ rubocop-ast (1.38.1)
61
65
  parser (>= 3.3.1.0)
62
- rubocop-performance (1.20.2)
63
- rubocop (>= 1.48.1, < 2.0)
64
- rubocop-ast (>= 1.30.0, < 2.0)
65
- rubocop-rails (2.25.0)
66
+ rubocop-performance (1.24.0)
67
+ lint_roller (~> 1.1)
68
+ rubocop (>= 1.72.1, < 2.0)
69
+ rubocop-ast (>= 1.38.0, < 2.0)
70
+ rubocop-rails (2.30.3)
66
71
  activesupport (>= 4.2.0)
72
+ lint_roller (~> 1.1)
67
73
  rack (>= 1.1)
68
- rubocop (>= 1.33.0, < 2.0)
69
- rubocop-ast (>= 1.31.1, < 2.0)
74
+ rubocop (>= 1.72.1, < 2.0)
75
+ rubocop-ast (>= 1.38.0, < 2.0)
70
76
  ruby-progressbar (1.13.0)
71
- ruby2_keywords (0.0.5)
72
- standard (1.33.0)
77
+ securerandom (0.3.1)
78
+ simplecov (0.22.0)
79
+ docile (~> 1.1)
80
+ simplecov-html (~> 0.11)
81
+ simplecov_json_formatter (~> 0.1)
82
+ simplecov-html (0.13.1)
83
+ simplecov_json_formatter (0.1.4)
84
+ standard (1.47.0)
73
85
  language_server-protocol (~> 3.17.0.2)
74
86
  lint_roller (~> 1.0)
75
- rubocop (~> 1.59.0)
87
+ rubocop (~> 1.73.0)
76
88
  standard-custom (~> 1.0.0)
77
- standard-performance (~> 1.3)
89
+ standard-performance (~> 1.7)
78
90
  standard-custom (1.0.2)
79
91
  lint_roller (~> 1.0)
80
92
  rubocop (~> 1.50)
81
- standard-performance (1.3.0)
93
+ standard-performance (1.7.0)
82
94
  lint_roller (~> 1.1)
83
- rubocop-performance (~> 1.20.1)
95
+ rubocop-performance (~> 1.24.0)
84
96
  tzinfo (2.0.6)
85
97
  concurrent-ruby (~> 1.0)
86
- unicode-display_width (2.5.0)
98
+ unicode-display_width (2.6.0)
87
99
 
88
100
  PLATFORMS
89
101
  arm64-darwin-20
90
102
  arm64-darwin-21
91
103
  arm64-darwin-22
92
104
  arm64-darwin-23
105
+ arm64-darwin-24
93
106
  x86_64-linux
94
107
 
95
108
  DEPENDENCIES
96
109
  m
97
110
  minitest
98
111
  rake
112
+ simplecov
99
113
  standard
100
114
  standard-rails!
101
115
 
102
116
  BUNDLED WITH
103
- 2.5.11
117
+ 2.5.23
data/config/base.yml CHANGED
@@ -30,6 +30,9 @@ Lint/SafeNavigationChain:
30
30
  - try!
31
31
  - in?
32
32
 
33
+ Lint/UselessAccessModifier:
34
+ Enabled: false
35
+
33
36
  Rails/ActionControllerFlashBeforeRender:
34
37
  Enabled: false
35
38
 
@@ -74,6 +77,8 @@ Rails/ApplicationMailer:
74
77
 
75
78
  Rails/ApplicationRecord:
76
79
  Enabled: true
80
+ Exclude:
81
+ - 'db/migrate/**/*'
77
82
 
78
83
  Rails/ArelStar:
79
84
  Enabled: true
@@ -91,7 +96,7 @@ Rails/Blank:
91
96
  Enabled: true
92
97
 
93
98
  Rails/BulkChangeTable:
94
- Enabled: true
99
+ Enabled: false
95
100
 
96
101
  Rails/CompactBlank:
97
102
  Enabled: true
@@ -142,6 +147,9 @@ Rails/EagerEvaluationLogMessage:
142
147
  Rails/EnumHash:
143
148
  Enabled: true
144
149
 
150
+ Rails/EnumSyntax:
151
+ Enabled: true
152
+
145
153
  Rails/EnumUniqueness:
146
154
  Enabled: true
147
155
 
@@ -152,7 +160,7 @@ Rails/EnvironmentComparison:
152
160
  Enabled: true
153
161
 
154
162
  Rails/EnvironmentVariableAccess:
155
- Enabled: true
163
+ Enabled: false
156
164
 
157
165
  Rails/Exit:
158
166
  Enabled: true
@@ -179,10 +187,10 @@ Rails/HasAndBelongsToMany:
179
187
  Enabled: true
180
188
 
181
189
  Rails/HasManyOrHasOneDependent:
182
- Enabled: true
190
+ Enabled: false
183
191
 
184
192
  Rails/HelperInstanceVariable:
185
- Enabled: true
193
+ Enabled: false
186
194
 
187
195
  Rails/HttpPositionalArguments:
188
196
  Enabled: true
@@ -215,7 +223,7 @@ Rails/Inquiry:
215
223
  Enabled: false
216
224
 
217
225
  Rails/InverseOf:
218
- Enabled: true
226
+ Enabled: false
219
227
 
220
228
  Rails/LexicallyScopedActionFilter:
221
229
  Enabled: true
@@ -232,6 +240,9 @@ Rails/MatchRoute:
232
240
  Rails/MigrationClassName:
233
241
  Enabled: true
234
242
 
243
+ Rails/MultipleRoutePaths:
244
+ Enabled: true
245
+
235
246
  Rails/NegateInclude:
236
247
  Enabled: false
237
248
 
@@ -361,6 +372,9 @@ Rails/SquishedSQLHeredocs:
361
372
  Rails/StripHeredoc:
362
373
  Enabled: true
363
374
 
375
+ Rails/StrongParametersExpect:
376
+ Enabled: false
377
+
364
378
  Rails/TableNameAssignment:
365
379
  Enabled: false
366
380
 
@@ -420,4 +434,4 @@ Rails/WhereNotWithMultipleConditions:
420
434
  Enabled: false
421
435
 
422
436
  Rails/WhereRange:
423
- Enabled: true
437
+ Enabled: false
@@ -7,7 +7,7 @@
7
7
  # of RuboCop built-in cops in this file, we need to monitor it for changes
8
8
  # in rubocop-rails and keep it up to date.
9
9
  #
10
- # Last updated from rubocop-rails v2.25.0
10
+ # Last updated from rubocop-rails v2.30.3
11
11
 
12
12
  # frozen_string_literal: true
13
13
 
@@ -19,14 +19,14 @@ require "active_support/core_ext/object/blank"
19
19
  require_path = Pathname.new(Gem.loaded_specs["rubocop-rails"].full_require_paths.first)
20
20
  require require_path.join("rubocop/rails")
21
21
  require require_path.join("rubocop/rails/version")
22
- # require_relative 'rubocop/rails/inject'
23
22
  require require_path.join("rubocop/rails/schema_loader")
24
23
  require require_path.join("rubocop/rails/schema_loader/schema")
25
-
26
- # RuboCop::Rails::Inject.defaults!
27
-
24
+ require require_path.join("rubocop/rails/plugin")
28
25
  require require_path.join("rubocop/cop/rails_cops")
29
26
 
27
+ require require_path.join("rubocop/rails/migration_file_skippable")
28
+ RuboCop::Rails::MigrationFileSkippable.apply_to_cops!
29
+
30
30
  RuboCop::Cop::Style::HashExcept.minimum_target_ruby_version(2.0)
31
31
 
32
32
  RuboCop::Cop::Style::InverseMethods.singleton_class.prepend(
@@ -1,5 +1,5 @@
1
1
  module Standard
2
2
  module Rails
3
- VERSION = "1.1.0"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2025-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lint_roller
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.25.0
33
+ version: 2.30.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.25.0
40
+ version: 2.30.0
41
41
  description:
42
42
  email:
43
43
  - searls@gmail.com
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.5.9
85
+ rubygems_version: 3.3.7
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: A Standard plugin that adds Rails-specific rules to Standard