Skip to content

Commit 0618be1

Browse files
authored
Merge pull request #71 from standardrb/update-2025-03-20
Update 2025 03 20
2 parents 0872d5c + de23af4 commit 0618be1

File tree

7 files changed

+49
-39
lines changed

7 files changed

+49
-39
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- '3.1'
2222
- '3.2'
2323
- '3.3'
24+
- '3.4'
2425

2526
runs-on: ${{ matrix.os }}
2627

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## [unreleased]
2+
3+
- Update Gems
4+
5+
6+
7+
8+
9+
10+
- add Ruby 3.4 to Github Action Runner
11+
112
## [1.2.0]
213

314
- Update to [[email protected]](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md#2260-2024-08-24)

Gemfile.lock

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PATH
33
specs:
44
standard-rails (1.2.0)
55
lint_roller (~> 1.0)
6-
rubocop-rails (~> 2.26.0)
6+
rubocop-rails (~> 2.30.0)
77

88
GEM
99
remote: https://rubygems.org/
@@ -49,27 +49,30 @@ GEM
4949
rack (3.1.7)
5050
rainbow (3.1.1)
5151
rake (13.2.1)
52-
regexp_parser (2.9.2)
53-
rubocop (1.66.1)
52+
regexp_parser (2.10.0)
53+
rubocop (1.73.2)
5454
json (~> 2.3)
55-
language_server-protocol (>= 3.17.0)
55+
language_server-protocol (~> 3.17.0.2)
56+
lint_roller (~> 1.1.0)
5657
parallel (~> 1.10)
5758
parser (>= 3.3.0.2)
5859
rainbow (>= 2.2.2, < 4.0)
59-
regexp_parser (>= 2.4, < 3.0)
60-
rubocop-ast (>= 1.32.2, < 2.0)
60+
regexp_parser (>= 2.9.3, < 3.0)
61+
rubocop-ast (>= 1.38.0, < 2.0)
6162
ruby-progressbar (~> 1.7)
62-
unicode-display_width (>= 2.4.0, < 3.0)
63-
rubocop-ast (1.34.1)
63+
unicode-display_width (>= 2.4.0, < 4.0)
64+
rubocop-ast (1.38.1)
6465
parser (>= 3.3.1.0)
65-
rubocop-performance (1.22.1)
66-
rubocop (>= 1.48.1, < 2.0)
67-
rubocop-ast (>= 1.31.1, < 2.0)
68-
rubocop-rails (2.26.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)
6971
activesupport (>= 4.2.0)
72+
lint_roller (~> 1.1)
7073
rack (>= 1.1)
71-
rubocop (>= 1.52.0, < 2.0)
72-
rubocop-ast (>= 1.31.1, < 2.0)
74+
rubocop (>= 1.72.1, < 2.0)
75+
rubocop-ast (>= 1.38.0, < 2.0)
7376
ruby-progressbar (1.13.0)
7477
securerandom (0.3.1)
7578
simplecov (0.22.0)
@@ -78,18 +81,18 @@ GEM
7881
simplecov_json_formatter (~> 0.1)
7982
simplecov-html (0.13.1)
8083
simplecov_json_formatter (0.1.4)
81-
standard (1.41.1)
84+
standard (1.47.0)
8285
language_server-protocol (~> 3.17.0.2)
8386
lint_roller (~> 1.0)
84-
rubocop (~> 1.66.0)
87+
rubocop (~> 1.73.0)
8588
standard-custom (~> 1.0.0)
86-
standard-performance (~> 1.5)
89+
standard-performance (~> 1.7)
8790
standard-custom (1.0.2)
8891
lint_roller (~> 1.0)
8992
rubocop (~> 1.50)
90-
standard-performance (1.5.0)
93+
standard-performance (1.7.0)
9194
lint_roller (~> 1.1)
92-
rubocop-performance (~> 1.22.0)
95+
rubocop-performance (~> 1.24.0)
9396
tzinfo (2.0.6)
9497
concurrent-ruby (~> 1.0)
9598
unicode-display_width (2.6.0)

README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,6 @@ plugins:
3636
target_rails_version: 7.0
3737
```
3838
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-
5339
## Code of Conduct
5440
5541
This project follows Test Double's [code of

config/base.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Lint/SafeNavigationChain:
3030
- try!
3131
- in?
3232

33+
Lint/UselessAccessModifier:
34+
Enabled: false
35+
3336
Rails/ActionControllerFlashBeforeRender:
3437
Enabled: false
3538

@@ -237,6 +240,9 @@ Rails/MatchRoute:
237240
Rails/MigrationClassName:
238241
Enabled: true
239242

243+
Rails/MultipleRoutePaths:
244+
Enabled: true
245+
240246
Rails/NegateInclude:
241247
Enabled: false
242248

@@ -366,6 +372,9 @@ Rails/SquishedSQLHeredocs:
366372
Rails/StripHeredoc:
367373
Enabled: true
368374

375+
Rails/StrongParametersExpect:
376+
Enabled: false
377+
369378
Rails/TableNameAssignment:
370379
Enabled: false
371380

lib/standard/rails/load_rubocop_rails_without_the_monkey_patch.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# of RuboCop built-in cops in this file, we need to monitor it for changes
88
# in rubocop-rails and keep it up to date.
99
#
10-
# Last updated from rubocop-rails v2.26.0
10+
# Last updated from rubocop-rails v2.30.3
1111

1212
# frozen_string_literal: true
1313

@@ -19,14 +19,14 @@
1919
require_path = Pathname.new(Gem.loaded_specs["rubocop-rails"].full_require_paths.first)
2020
require require_path.join("rubocop/rails")
2121
require require_path.join("rubocop/rails/version")
22-
# require_relative 'rubocop/rails/inject'
2322
require require_path.join("rubocop/rails/schema_loader")
2423
require require_path.join("rubocop/rails/schema_loader/schema")
25-
26-
# RuboCop::Rails::Inject.defaults!
27-
24+
require require_path.join("rubocop/rails/plugin")
2825
require require_path.join("rubocop/cop/rails_cops")
2926

27+
require require_path.join("rubocop/rails/migration_file_skippable")
28+
RuboCop::Rails::MigrationFileSkippable.apply_to_cops!
29+
3030
RuboCop::Cop::Style::HashExcept.minimum_target_ruby_version(2.0)
3131

3232
RuboCop::Cop::Style::InverseMethods.singleton_class.prepend(

standard-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
3030
spec.require_paths = ["lib"]
3131

3232
spec.add_dependency "lint_roller", "~> 1.0"
33-
spec.add_dependency "rubocop-rails", "~> 2.26.0"
33+
spec.add_dependency "rubocop-rails", "~> 2.30.0"
3434
end

0 commit comments

Comments
 (0)