standard-rails 1.2.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 +4 -4
- data/.standard.yml +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile +3 -2
- data/Gemfile.lock +45 -33
- data/README.md +0 -14
- data/config/base.yml +9 -0
- data/lib/standard/rails/load_rubocop_rails_without_the_monkey_patch.rb +5 -5
- data/lib/standard/rails/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a832d072fdb5eda9918e6a252ca73da11727f59829d3636bb4602cd19624e667
|
4
|
+
data.tar.gz: d6923672a34c4d2e882c0fd01778cc073ce294ddcbff0653a1f5c468e8f1b560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62ebdfef91cec51d360b0e3f68c48798202557dcf7b8ab12109a862fe95344894777f1a3de26bea72b867e6819eef868d14a7e945ea8b5c9a4dec4c533b28df3
|
7
|
+
data.tar.gz: 5a9b10cf8f500117bf6ab3930a402af5ba872a8a183ead1ca4abc4b2eae5efb267df2766af3cb4a66b2a925edc7ad16dd28c51fb177d9215b3d892dd9e3d6693
|
data/.standard.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
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
|
+
|
1
12
|
## [1.2.0]
|
2
13
|
|
3
14
|
- Update to [rubocop-rails@2.26.0](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md#2260-2024-08-24)
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,105 +1,117 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard-rails (1.
|
4
|
+
standard-rails (1.3.0)
|
5
5
|
lint_roller (~> 1.0)
|
6
|
-
rubocop-rails (~> 2.
|
6
|
+
rubocop-rails (~> 2.30.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (7.
|
11
|
+
activesupport (7.1.5)
|
12
12
|
base64
|
13
|
+
benchmark (>= 0.3)
|
13
14
|
bigdecimal
|
14
|
-
concurrent-ruby (~> 1.0, >= 1.
|
15
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
16
|
connection_pool (>= 2.2.5)
|
16
17
|
drb
|
17
18
|
i18n (>= 1.6, < 2)
|
18
19
|
logger (>= 1.4.2)
|
19
20
|
minitest (>= 5.1)
|
21
|
+
mutex_m
|
20
22
|
securerandom (>= 0.3)
|
21
|
-
tzinfo (~> 2.0
|
23
|
+
tzinfo (~> 2.0)
|
22
24
|
ast (2.4.2)
|
23
25
|
base64 (0.2.0)
|
26
|
+
benchmark (0.4.0)
|
24
27
|
bigdecimal (3.1.8)
|
25
28
|
concurrent-ruby (1.3.4)
|
26
29
|
connection_pool (2.4.1)
|
30
|
+
docile (1.4.1)
|
27
31
|
drb (2.2.1)
|
28
|
-
i18n (1.14.
|
32
|
+
i18n (1.14.6)
|
29
33
|
concurrent-ruby (~> 1.0)
|
30
|
-
json (2.
|
34
|
+
json (2.8.1)
|
31
35
|
language_server-protocol (3.17.0.3)
|
32
36
|
lint_roller (1.1.0)
|
33
|
-
logger (1.6.
|
37
|
+
logger (1.6.1)
|
34
38
|
m (1.6.2)
|
35
39
|
method_source (>= 0.6.7)
|
36
40
|
rake (>= 0.9.2.2)
|
37
41
|
method_source (1.1.0)
|
38
42
|
minitest (5.25.1)
|
43
|
+
mutex_m (0.2.0)
|
39
44
|
parallel (1.26.3)
|
40
|
-
parser (3.3.
|
45
|
+
parser (3.3.6.0)
|
41
46
|
ast (~> 2.4.1)
|
42
47
|
racc
|
43
48
|
racc (1.8.1)
|
44
49
|
rack (3.1.7)
|
45
50
|
rainbow (3.1.1)
|
46
51
|
rake (13.2.1)
|
47
|
-
regexp_parser (2.
|
48
|
-
|
49
|
-
strscan
|
50
|
-
rubocop (1.65.1)
|
52
|
+
regexp_parser (2.10.0)
|
53
|
+
rubocop (1.73.2)
|
51
54
|
json (~> 2.3)
|
52
|
-
language_server-protocol (
|
55
|
+
language_server-protocol (~> 3.17.0.2)
|
56
|
+
lint_roller (~> 1.1.0)
|
53
57
|
parallel (~> 1.10)
|
54
58
|
parser (>= 3.3.0.2)
|
55
59
|
rainbow (>= 2.2.2, < 4.0)
|
56
|
-
regexp_parser (>= 2.
|
57
|
-
|
58
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
60
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
61
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
59
62
|
ruby-progressbar (~> 1.7)
|
60
|
-
unicode-display_width (>= 2.4.0, <
|
61
|
-
rubocop-ast (1.
|
63
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
64
|
+
rubocop-ast (1.38.1)
|
62
65
|
parser (>= 3.3.1.0)
|
63
|
-
rubocop-performance (1.
|
64
|
-
|
65
|
-
rubocop
|
66
|
-
|
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)
|
67
71
|
activesupport (>= 4.2.0)
|
72
|
+
lint_roller (~> 1.1)
|
68
73
|
rack (>= 1.1)
|
69
|
-
rubocop (>= 1.
|
70
|
-
rubocop-ast (>= 1.
|
74
|
+
rubocop (>= 1.72.1, < 2.0)
|
75
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
71
76
|
ruby-progressbar (1.13.0)
|
72
77
|
securerandom (0.3.1)
|
73
|
-
|
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)
|
74
85
|
language_server-protocol (~> 3.17.0.2)
|
75
86
|
lint_roller (~> 1.0)
|
76
|
-
rubocop (~> 1.
|
87
|
+
rubocop (~> 1.73.0)
|
77
88
|
standard-custom (~> 1.0.0)
|
78
|
-
standard-performance (~> 1.
|
89
|
+
standard-performance (~> 1.7)
|
79
90
|
standard-custom (1.0.2)
|
80
91
|
lint_roller (~> 1.0)
|
81
92
|
rubocop (~> 1.50)
|
82
|
-
standard-performance (1.
|
93
|
+
standard-performance (1.7.0)
|
83
94
|
lint_roller (~> 1.1)
|
84
|
-
rubocop-performance (~> 1.
|
85
|
-
strscan (3.1.0)
|
95
|
+
rubocop-performance (~> 1.24.0)
|
86
96
|
tzinfo (2.0.6)
|
87
97
|
concurrent-ruby (~> 1.0)
|
88
|
-
unicode-display_width (2.
|
98
|
+
unicode-display_width (2.6.0)
|
89
99
|
|
90
100
|
PLATFORMS
|
91
101
|
arm64-darwin-20
|
92
102
|
arm64-darwin-21
|
93
103
|
arm64-darwin-22
|
94
104
|
arm64-darwin-23
|
105
|
+
arm64-darwin-24
|
95
106
|
x86_64-linux
|
96
107
|
|
97
108
|
DEPENDENCIES
|
98
109
|
m
|
99
110
|
minitest
|
100
111
|
rake
|
112
|
+
simplecov
|
101
113
|
standard
|
102
114
|
standard-rails!
|
103
115
|
|
104
116
|
BUNDLED WITH
|
105
|
-
2.5.
|
117
|
+
2.5.23
|
data/README.md
CHANGED
@@ -36,20 +36,6 @@ plugins:
|
|
36
36
|
target_rails_version: 7.0
|
37
37
|
```
|
38
38
|
|
39
|
-
### Ignoring violations from old migrations
|
40
|
-
|
41
|
-
Rails migrations are intended to be written as forward-compatible and subsequently unchanged, but they may contain Standard Ruby violations. Rather than apply fixes to those old migrations (and risk changing their behavior), you can ignore them in your `.standard.yml` like this:
|
42
|
-
|
43
|
-
```ruby
|
44
|
-
ignore:
|
45
|
-
# Legacy migrations
|
46
|
-
- 'db/migrate/201*.rb'
|
47
|
-
- 'db/migrate/2020*.rb'
|
48
|
-
- 'db/migrate/2021*.rb'
|
49
|
-
- 'db/migrate/2022*.rb'
|
50
|
-
- 'db/migrate/2023*.rb'
|
51
|
-
```
|
52
|
-
|
53
39
|
## Code of Conduct
|
54
40
|
|
55
41
|
This project follows Test Double's [code of
|
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
|
|
@@ -237,6 +240,9 @@ Rails/MatchRoute:
|
|
237
240
|
Rails/MigrationClassName:
|
238
241
|
Enabled: true
|
239
242
|
|
243
|
+
Rails/MultipleRoutePaths:
|
244
|
+
Enabled: true
|
245
|
+
|
240
246
|
Rails/NegateInclude:
|
241
247
|
Enabled: false
|
242
248
|
|
@@ -366,6 +372,9 @@ Rails/SquishedSQLHeredocs:
|
|
366
372
|
Rails/StripHeredoc:
|
367
373
|
Enabled: true
|
368
374
|
|
375
|
+
Rails/StrongParametersExpect:
|
376
|
+
Enabled: false
|
377
|
+
|
369
378
|
Rails/TableNameAssignment:
|
370
379
|
Enabled: false
|
371
380
|
|
@@ -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.
|
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(
|
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.
|
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:
|
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.
|
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.
|
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.
|
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
|