Skip to content

Commit f869297

Browse files
authored
Modernize dependencies and fix CI (#62)
* Update nokogiri to fix Ruby 3.4 compatibility * Bump required_ruby_version to >= 3.2 * Update all outdated gems * Regenerate tapioca RBI files for updated gems * Remove git packwerk override and bump packwerk dep to >= 3 * Add rubocop-gusto plugin * Autocorrect rubocop offenses (rubocop -a) * Generate .rubocop_todo.yml for remaining violations * Regenerate rdoc RBI under Ruby 4.0
1 parent 2100ab8 commit f869297

File tree

138 files changed

+255284
-60842
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+255284
-60842
lines changed

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
inherit_from: .rubocop_todo.yml
2+
13
# The behavior of RuboCop can be controlled via the .rubocop.yml
24
# configuration file. It makes it possible to enable/disable
35
# certain cops (checks) and to alter their behavior if they accept
@@ -8,6 +10,9 @@
810
# where the inspected file is and continue its way up to the root directory.
911
#
1012
# See https://docs.rubocop.org/rubocop/configuration
13+
plugins:
14+
- rubocop-gusto
15+
1116
AllCops:
1217
SuggestExtensions: false
1318
NewCops: enable

.rubocop_todo.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2026-03-05 18:26:56 UTC using RuboCop version 1.85.1.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 3
10+
Gusto/NoMetaprogramming:
11+
Exclude:
12+
- 'test/support/test_macro.rb'
13+
14+
# Offense count: 1
15+
Gusto/ToplevelConstants:
16+
Exclude:
17+
- 'test/test_helper.rb'
18+
19+
# Offense count: 1
20+
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
21+
# AllowedMethods: call
22+
# WaywardPredicates: infinite?, nonzero?
23+
Naming/PredicateMethod:
24+
Exclude:
25+
- 'lib/packwerk/privacy/checker.rb'
26+
27+
# Offense count: 3
28+
# This cop supports unsafe autocorrection (--autocorrect-all).
29+
Performance/StringInclude:
30+
Exclude:
31+
- 'bin/rake'
32+
- 'bin/rubocop'
33+
- 'bin/tapioca'
34+
35+
# Offense count: 19
36+
# This cop supports safe autocorrection (--autocorrect).
37+
# Configuration parameters: SuggestedStrictness.
38+
Sorbet/FalseSigil:
39+
Enabled: false
40+
41+
# Offense count: 45
42+
# This cop supports unsafe autocorrection (--autocorrect-all).
43+
# Configuration parameters: SuggestedStrictness.
44+
Sorbet/StrictSigil:
45+
Enabled: false
46+
47+
# Offense count: 1
48+
# This cop supports unsafe autocorrection (--autocorrect-all).
49+
Style/FileNull:
50+
Exclude:
51+
- 'test/rails_test_helper.rb'

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
source 'https://rubygems.org'
44

55
gemspec
6-
7-
gem 'packwerk', git: 'https://github.com/Shopify/packwerk', branch: 'main'

0 commit comments

Comments
 (0)