packwerk 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +29 -20
- data/.github/workflows/cla.yml +22 -0
- data/.rubocop.yml +48 -19
- data/Gemfile +7 -2
- data/Gemfile.lock +201 -175
- data/README.md +1 -1
- data/RESOLVING_VIOLATIONS.md +81 -0
- data/Rakefile +1 -1
- data/USAGE.md +14 -5
- data/bin/m +1 -1
- data/bin/rake +1 -1
- data/bin/rubocop +1 -1
- data/bin/srb +1 -1
- data/bin/tapioca +1 -1
- data/gemfiles/Gemfile-rails-6-0 +1 -1
- data/gemfiles/Gemfile-rails-6-1 +22 -0
- data/lib/packwerk/application_validator.rb +7 -6
- data/lib/packwerk/association_inspector.rb +17 -15
- data/lib/packwerk/cache.rb +36 -29
- data/lib/packwerk/cli.rb +5 -6
- data/lib/packwerk/const_node_inspector.rb +8 -7
- data/lib/packwerk/constant_name_inspector.rb +2 -2
- data/lib/packwerk/deprecated_references.rb +34 -19
- data/lib/packwerk/file_processor.rb +14 -14
- data/lib/packwerk/files_for_processing.rb +27 -31
- data/lib/packwerk/formatters/offenses_formatter.rb +3 -3
- data/lib/packwerk/formatters/progress_formatter.rb +2 -2
- data/lib/packwerk/node.rb +1 -294
- data/lib/packwerk/node_helpers.rb +335 -0
- data/lib/packwerk/node_processor.rb +6 -5
- data/lib/packwerk/node_processor_factory.rb +3 -3
- data/lib/packwerk/node_visitor.rb +1 -1
- data/lib/packwerk/offense_collection.rb +6 -3
- data/lib/packwerk/offenses_formatter.rb +2 -2
- data/lib/packwerk/package.rb +3 -0
- data/lib/packwerk/package_set.rb +2 -0
- data/lib/packwerk/parse_run.rb +15 -13
- data/lib/packwerk/parsed_constant_definitions.rb +23 -20
- data/lib/packwerk/parsers/erb.rb +3 -3
- data/lib/packwerk/reference_checking/checkers/checker.rb +16 -3
- data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +16 -0
- data/lib/packwerk/reference_checking/checkers/privacy_checker.rb +18 -0
- data/lib/packwerk/reference_checking/reference_checker.rb +3 -1
- data/lib/packwerk/reference_extractor.rb +51 -48
- data/lib/packwerk/reference_offense.rb +3 -27
- data/lib/packwerk/run_context.rb +3 -3
- data/lib/packwerk/spring_command.rb +1 -1
- data/lib/packwerk/version.rb +1 -1
- data/lib/packwerk.rb +1 -0
- data/packwerk.gemspec +4 -12
- data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +2754 -0
- data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +1496 -0
- data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +2362 -0
- data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +19397 -0
- data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +1569 -0
- data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +14907 -0
- data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +2553 -0
- data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +5999 -0
- data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +37832 -0
- data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +2321 -0
- data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +18818 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11722 -0
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +90 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
- data/sorbet/rbi/gems/digest@3.1.0.rbi +189 -0
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +140 -0
- data/sorbet/rbi/gems/globalid@1.0.0.rbi +572 -0
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
- data/sorbet/rbi/gems/json@2.6.2.rbi +1548 -0
- data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +8 -0
- data/sorbet/rbi/gems/loofah@2.18.0.rbi +877 -0
- data/sorbet/rbi/gems/m@1.6.0.rbi +257 -0
- data/sorbet/rbi/gems/marcel@1.0.2.rbi +220 -0
- data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +170 -0
- data/sorbet/rbi/gems/mini_portile2@2.8.0.rbi +8 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +104 -0
- data/sorbet/rbi/gems/minitest@5.16.2.rbi +2136 -0
- data/sorbet/rbi/gems/mocha@1.14.0.rbi +4177 -0
- data/sorbet/rbi/gems/net-imap@0.2.3.rbi +2147 -0
- data/sorbet/rbi/gems/net-pop@0.1.1.rbi +926 -0
- data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +11 -0
- data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +1108 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +153 -0
- data/sorbet/rbi/gems/nio4r@2.5.8.rbi +292 -0
- data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +6478 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +9029 -0
- data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +8 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
- data/sorbet/rbi/gems/racc@1.6.0.rbi +152 -0
- data/sorbet/rbi/gems/rack-test@2.0.2.rbi +953 -0
- data/sorbet/rbi/gems/rack@2.2.4.rbi +5636 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +688 -0
- data/sorbet/rbi/gems/rails@7.0.3.1.rbi +8 -0
- data/sorbet/rbi/gems/railties@7.0.3.1.rbi +3507 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +392 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +2924 -0
- data/sorbet/rbi/gems/rbi@0.0.15.rbi +3007 -0
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3383 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +4714 -0
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +6961 -0
- data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +2986 -0
- data/sorbet/rbi/gems/{rubocop-shopify@2.0.1.rbi → rubocop-shopify@2.9.0.rbi} +4 -4
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +992 -0
- data/sorbet/rbi/gems/rubocop@1.34.1.rbi +51820 -0
- data/sorbet/rbi/gems/ruby-lsp@0.2.1.rbi +11 -0
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +474 -0
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +2181 -0
- data/sorbet/rbi/gems/spring@4.0.0.rbi +411 -0
- data/sorbet/rbi/gems/strscan@3.0.4.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +8 -0
- data/sorbet/rbi/gems/tapioca@0.9.2.rbi +3181 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
- data/sorbet/rbi/gems/timeout@0.3.0.rbi +142 -0
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5896 -0
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +48 -0
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +4529 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +2582 -0
- data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +993 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +388 -0
- data/sorbet/rbi/gems/yard@0.9.28.rbi +18242 -0
- data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +867 -0
- data/sorbet/rbi/shims/psych.rbi +5 -0
- data/sorbet/tapioca/require.rb +2 -3
- metadata +88 -157
- data/.github/probots.yml +0 -2
- data/library.yml +0 -6
- data/service.yml +0 -1
- data/sorbet/rbi/gems/actioncable@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -860
- data/sorbet/rbi/gems/actionmailbox@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -568
- data/sorbet/rbi/gems/actionmailer@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -587
- data/sorbet/rbi/gems/actionpack@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -5314
- data/sorbet/rbi/gems/actiontext@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -699
- data/sorbet/rbi/gems/actionview@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -2515
- data/sorbet/rbi/gems/activejob@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -624
- data/sorbet/rbi/gems/activemodel@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -1248
- data/sorbet/rbi/gems/activerecord@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8363
- data/sorbet/rbi/gems/activestorage@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -876
- data/sorbet/rbi/gems/activesupport@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -3987
- data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -40
- data/sorbet/rbi/gems/commander@4.5.2.rbi +0 -8
- data/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi +0 -1969
- data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +0 -26
- data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -41
- data/sorbet/rbi/gems/globalid@0.4.2.rbi +0 -178
- data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -600
- data/sorbet/rbi/gems/loofah@2.9.0.rbi +0 -274
- data/sorbet/rbi/gems/m@1.5.1.rbi +0 -108
- data/sorbet/rbi/gems/marcel@1.0.0.rbi +0 -70
- data/sorbet/rbi/gems/mini_mime@1.0.3.rbi +0 -71
- data/sorbet/rbi/gems/minitest-focus@1.2.1.rbi +0 -8
- data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -544
- data/sorbet/rbi/gems/mocha@1.12.0.rbi +0 -953
- data/sorbet/rbi/gems/nio4r@2.5.7.rbi +0 -90
- data/sorbet/rbi/gems/nokogiri@1.11.2.rbi +0 -1647
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -117
- data/sorbet/rbi/gems/parlour@6.0.0.rbi +0 -1272
- data/sorbet/rbi/gems/parser@3.0.0.0.rbi +0 -1745
- data/sorbet/rbi/gems/pry@0.14.0.rbi +0 -8
- data/sorbet/rbi/gems/psych@3.3.2.rbi +0 -24
- data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -57
- data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -335
- data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1718
- data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -213
- data/sorbet/rbi/gems/rails@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8
- data/sorbet/rbi/gems/railties@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -880
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -155
- data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -837
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
- data/sorbet/rbi/gems/rexml@3.2.4.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-performance@1.10.2.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.1.rbi +0 -8
- data/sorbet/rbi/gems/rubocop@1.12.0.rbi +0 -8
- data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +0 -168
- data/sorbet/rbi/gems/spoom@1.1.0.rbi +0 -1061
- data/sorbet/rbi/gems/spring@2.1.1.rbi +0 -160
- data/sorbet/rbi/gems/sprockets-rails@3.2.2.rbi +0 -451
- data/sorbet/rbi/gems/sprockets@4.0.2.rbi +0 -1133
- data/sorbet/rbi/gems/tapioca@0.4.19.rbi +0 -603
- data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -893
- data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -566
- data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
- data/sorbet/rbi/gems/websocket-driver@0.7.3.rbi +0 -438
- data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -177
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7968dbdc908eb500726b8af244e0de8e44075b86409eef871003d47174a139d
|
4
|
+
data.tar.gz: 48037d44dbb482841e64c218a22b98978e5e6dac2dd277b10b2989c508daaa26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e3c43a046bb108cc76fde787fbdd5d67475c0feba647e9653e6f7e9fc2fc0082994f09791a4fc870e639f3a964ab2727fd3216601f6dad3f69ccdf3059fb0ee
|
7
|
+
data.tar.gz: 66433d48c993ce76edb6eb2bf08d7ce6a474efcac790e4b42628a1f2371b09be579b7eb58dc84aaef2614e6779302e34f80559dfc179d48141aeb2b2f99e41d3
|
data/.github/workflows/ci.yml
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
name: CI
|
2
2
|
|
3
|
-
on: [push
|
3
|
+
on: [push]
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
|
6
|
+
tests:
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
10
|
gemfile:
|
11
11
|
- Gemfile
|
12
12
|
- gemfiles/Gemfile-rails-6-0
|
13
|
+
- gemfiles/Gemfile-rails-6-1
|
13
14
|
ruby:
|
14
15
|
- 2.6
|
15
16
|
- 2.7
|
16
17
|
- 3.0
|
18
|
+
- 3.1
|
17
19
|
exclude:
|
18
20
|
- ruby: 2.6
|
19
21
|
gemfile: Gemfile
|
@@ -21,39 +23,46 @@ jobs:
|
|
21
23
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
22
24
|
name: "Tests: Ruby ${{ matrix.ruby }} ${{ matrix.gemfile }}"
|
23
25
|
steps:
|
24
|
-
- uses: actions/checkout@
|
26
|
+
- uses: actions/checkout@v2
|
25
27
|
- name: Set up Ruby ${{ matrix.ruby }}
|
26
|
-
uses:
|
28
|
+
uses: ruby/setup-ruby@v1
|
27
29
|
with:
|
28
30
|
ruby-version: ${{ matrix.ruby }}
|
31
|
+
bundler-cache: true
|
29
32
|
- name: Run tests
|
30
|
-
run:
|
31
|
-
gem install bundler
|
32
|
-
bundle install --jobs 4 --retry 3
|
33
|
-
bin/rake
|
33
|
+
run: bin/rake
|
34
34
|
lint:
|
35
35
|
runs-on: ubuntu-latest
|
36
|
+
name: Lint
|
36
37
|
steps:
|
37
|
-
- uses: actions/checkout@
|
38
|
+
- uses: actions/checkout@v2
|
38
39
|
- name: Set up Ruby
|
39
|
-
uses:
|
40
|
+
uses: ruby/setup-ruby@v1
|
40
41
|
with:
|
41
|
-
ruby-version: 3.
|
42
|
+
ruby-version: 3.1
|
43
|
+
bundler-cache: true
|
42
44
|
- name: Run style checks
|
43
|
-
run:
|
44
|
-
|
45
|
-
bundle install --jobs 4 --retry 3
|
46
|
-
bin/rubocop
|
47
|
-
static-type-checking:
|
45
|
+
run: bin/rubocop
|
46
|
+
static_type_checking:
|
48
47
|
runs-on: ubuntu-latest
|
48
|
+
name: Type Checking
|
49
49
|
steps:
|
50
|
-
- uses: actions/checkout@
|
50
|
+
- uses: actions/checkout@v2
|
51
51
|
- name: Set up Ruby
|
52
|
-
uses:
|
52
|
+
uses: ruby/setup-ruby@v1
|
53
53
|
with:
|
54
|
-
ruby-version: 3.
|
54
|
+
ruby-version: 3.1
|
55
|
+
# bundler-cache: true
|
55
56
|
- name: Run static type checks
|
56
57
|
run: |
|
57
|
-
gem install bundler
|
58
58
|
bundle install --jobs 4 --retry 3
|
59
59
|
bin/srb tc
|
60
|
+
buildall:
|
61
|
+
if: ${{ always() }}
|
62
|
+
runs-on: ubuntu-latest
|
63
|
+
name: Build (matrix)
|
64
|
+
needs: [lint, tests, static_type_checking]
|
65
|
+
steps:
|
66
|
+
- name: Check build matrix status
|
67
|
+
if: ${{ needs.tests.result != 'success' || needs.lint.result != 'success' || needs.static_type_checking.result != 'success' }}
|
68
|
+
run: exit 1
|
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Contributor License Agreement (CLA)
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request_target:
|
5
|
+
types: [opened, synchronize]
|
6
|
+
issue_comment:
|
7
|
+
types: [created]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
cla:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
if: |
|
13
|
+
(github.event.issue.pull_request
|
14
|
+
&& !github.event.issue.pull_request.merged_at
|
15
|
+
&& contains(github.event.comment.body, 'signed')
|
16
|
+
)
|
17
|
+
|| (github.event.pull_request && !github.event.pull_request.merged)
|
18
|
+
steps:
|
19
|
+
- uses: Shopify/shopify-cla-action@v1
|
20
|
+
with:
|
21
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
22
|
+
cla-token: ${{ secrets.CLA_TOKEN }}
|
data/.rubocop.yml
CHANGED
@@ -7,36 +7,20 @@ require:
|
|
7
7
|
|
8
8
|
AllCops:
|
9
9
|
TargetRubyVersion: 2.7
|
10
|
+
NewCops: disable
|
10
11
|
UseCache: true
|
12
|
+
SuggestExtensions: false
|
11
13
|
CacheRootDirectory: tmp
|
12
14
|
Exclude:
|
13
15
|
- 'test/fixtures/**/*'
|
14
16
|
|
15
|
-
Lint/UnusedMethodArgument:
|
16
|
-
AllowUnusedKeywordArguments: true
|
17
|
-
|
18
|
-
Style/MethodCallWithArgsParentheses:
|
19
|
-
Enabled: true
|
20
|
-
IgnoreMacros: true
|
21
|
-
IgnoredMethods:
|
22
|
-
- require
|
23
|
-
- require_relative
|
24
|
-
- require_dependency
|
25
|
-
- yield
|
26
|
-
- raise
|
27
|
-
Exclude:
|
28
|
-
- Gemfile
|
29
|
-
|
30
|
-
Style/StringLiterals:
|
31
|
-
EnforcedStyle: double_quotes
|
32
|
-
|
33
17
|
Sorbet/ConstantsFromStrings:
|
34
18
|
Enabled: true
|
35
19
|
|
36
20
|
Sorbet/ForbidIncludeConstLiteral:
|
37
21
|
Enabled: true
|
38
22
|
|
39
|
-
Sorbet/
|
23
|
+
Sorbet/SignatureBuildOrder:
|
40
24
|
Enabled: true
|
41
25
|
|
42
26
|
Sorbet/KeywordArgumentOrdering:
|
@@ -44,3 +28,48 @@ Sorbet/KeywordArgumentOrdering:
|
|
44
28
|
|
45
29
|
Sorbet/ValidSigil:
|
46
30
|
Enabled: true
|
31
|
+
|
32
|
+
Performance/AncestorsInclude: # new in 1.7
|
33
|
+
Enabled: true
|
34
|
+
|
35
|
+
Performance/BigDecimalWithNumericArgument: # new in 1.7
|
36
|
+
Enabled: true
|
37
|
+
|
38
|
+
Performance/BlockGivenWithExplicitBlock: # new in 1.9
|
39
|
+
Enabled: true
|
40
|
+
|
41
|
+
Performance/CollectionLiteralInLoop: # new in 1.8
|
42
|
+
Enabled: true
|
43
|
+
|
44
|
+
Performance/ConstantRegexp: # new in 1.9
|
45
|
+
Enabled: true
|
46
|
+
|
47
|
+
Performance/MethodObjectAsBlock: # new in 1.9
|
48
|
+
Enabled: true
|
49
|
+
|
50
|
+
Performance/RedundantEqualityComparisonBlock: # new in 1.10
|
51
|
+
Enabled: true
|
52
|
+
|
53
|
+
Performance/RedundantSortBlock: # new in 1.7
|
54
|
+
Enabled: true
|
55
|
+
|
56
|
+
Performance/RedundantSplitRegexpArgument: # new in 1.10
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
Performance/RedundantStringChars: # new in 1.7
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Performance/ReverseFirst: # new in 1.7
|
63
|
+
Enabled: true
|
64
|
+
|
65
|
+
Performance/SortReverse: # new in 1.7
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Performance/Squeeze: # new in 1.7
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Performance/StringInclude: # new in 1.7
|
72
|
+
Enabled: true
|
73
|
+
|
74
|
+
Performance/Sum: # new in 1.8
|
75
|
+
Enabled: true
|
data/Gemfile
CHANGED
@@ -8,9 +8,8 @@ gemspec
|
|
8
8
|
# Specify the same dependency sources as the application Gemfile
|
9
9
|
|
10
10
|
gem("spring")
|
11
|
-
gem("rails"
|
11
|
+
gem("rails")
|
12
12
|
gem("constant_resolver", require: false)
|
13
|
-
gem("sorbet-runtime", require: false)
|
14
13
|
gem("rubocop-performance", require: false)
|
15
14
|
gem("rubocop-sorbet", require: false)
|
16
15
|
gem("mocha", require: false)
|
@@ -20,4 +19,10 @@ gem("tapioca", require: false)
|
|
20
19
|
group :development do
|
21
20
|
gem("byebug", require: false)
|
22
21
|
gem("minitest-focus", require: false)
|
22
|
+
gem("ruby-lsp", "~> 0.2.1")
|
23
|
+
|
24
|
+
gem("m")
|
25
|
+
gem("rake")
|
26
|
+
gem("sorbet-static-and-runtime")
|
27
|
+
gem("zeitwerk")
|
23
28
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,240 +1,267 @@
|
|
1
|
-
|
2
|
-
remote:
|
3
|
-
revision: d612542336d9a61381311c95a27d801bb4094779
|
4
|
-
branch: main
|
1
|
+
PATH
|
2
|
+
remote: .
|
5
3
|
specs:
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
packwerk (2.2.1)
|
5
|
+
activesupport (>= 5.2)
|
6
|
+
ast
|
7
|
+
better_html
|
8
|
+
bundler
|
9
|
+
constant_resolver (>= 0.2.0)
|
10
|
+
parallel
|
11
|
+
parser
|
12
|
+
sorbet-runtime (>= 0.5.9914)
|
13
|
+
|
14
|
+
GEM
|
15
|
+
remote: https://rubygems.org/
|
16
|
+
specs:
|
17
|
+
actioncable (7.0.3.1)
|
18
|
+
actionpack (= 7.0.3.1)
|
19
|
+
activesupport (= 7.0.3.1)
|
9
20
|
nio4r (~> 2.0)
|
10
21
|
websocket-driver (>= 0.6.1)
|
11
|
-
actionmailbox (7.0.
|
12
|
-
actionpack (= 7.0.
|
13
|
-
activejob (= 7.0.
|
14
|
-
activerecord (= 7.0.
|
15
|
-
activestorage (= 7.0.
|
16
|
-
activesupport (= 7.0.
|
22
|
+
actionmailbox (7.0.3.1)
|
23
|
+
actionpack (= 7.0.3.1)
|
24
|
+
activejob (= 7.0.3.1)
|
25
|
+
activerecord (= 7.0.3.1)
|
26
|
+
activestorage (= 7.0.3.1)
|
27
|
+
activesupport (= 7.0.3.1)
|
17
28
|
mail (>= 2.7.1)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
29
|
+
net-imap
|
30
|
+
net-pop
|
31
|
+
net-smtp
|
32
|
+
actionmailer (7.0.3.1)
|
33
|
+
actionpack (= 7.0.3.1)
|
34
|
+
actionview (= 7.0.3.1)
|
35
|
+
activejob (= 7.0.3.1)
|
36
|
+
activesupport (= 7.0.3.1)
|
23
37
|
mail (~> 2.5, >= 2.5.4)
|
38
|
+
net-imap
|
39
|
+
net-pop
|
40
|
+
net-smtp
|
24
41
|
rails-dom-testing (~> 2.0)
|
25
|
-
actionpack (7.0.
|
26
|
-
actionview (= 7.0.
|
27
|
-
activesupport (= 7.0.
|
28
|
-
rack (~> 2.0, >= 2.0
|
42
|
+
actionpack (7.0.3.1)
|
43
|
+
actionview (= 7.0.3.1)
|
44
|
+
activesupport (= 7.0.3.1)
|
45
|
+
rack (~> 2.0, >= 2.2.0)
|
29
46
|
rack-test (>= 0.6.3)
|
30
47
|
rails-dom-testing (~> 2.0)
|
31
48
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
32
|
-
actiontext (7.0.
|
33
|
-
actionpack (= 7.0.
|
34
|
-
activerecord (= 7.0.
|
35
|
-
activestorage (= 7.0.
|
36
|
-
activesupport (= 7.0.
|
49
|
+
actiontext (7.0.3.1)
|
50
|
+
actionpack (= 7.0.3.1)
|
51
|
+
activerecord (= 7.0.3.1)
|
52
|
+
activestorage (= 7.0.3.1)
|
53
|
+
activesupport (= 7.0.3.1)
|
54
|
+
globalid (>= 0.6.0)
|
37
55
|
nokogiri (>= 1.8.5)
|
38
|
-
actionview (7.0.
|
39
|
-
activesupport (= 7.0.
|
56
|
+
actionview (7.0.3.1)
|
57
|
+
activesupport (= 7.0.3.1)
|
40
58
|
builder (~> 3.1)
|
41
59
|
erubi (~> 1.4)
|
42
60
|
rails-dom-testing (~> 2.0)
|
43
61
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
44
|
-
activejob (7.0.
|
45
|
-
activesupport (= 7.0.
|
62
|
+
activejob (7.0.3.1)
|
63
|
+
activesupport (= 7.0.3.1)
|
46
64
|
globalid (>= 0.3.6)
|
47
|
-
activemodel (7.0.
|
48
|
-
activesupport (= 7.0.
|
49
|
-
activerecord (7.0.
|
50
|
-
activemodel (= 7.0.
|
51
|
-
activesupport (= 7.0.
|
52
|
-
activestorage (7.0.
|
53
|
-
actionpack (= 7.0.
|
54
|
-
activejob (= 7.0.
|
55
|
-
activerecord (= 7.0.
|
56
|
-
activesupport (= 7.0.
|
57
|
-
marcel (~> 1.0
|
58
|
-
mini_mime (
|
59
|
-
activesupport (7.0.
|
65
|
+
activemodel (7.0.3.1)
|
66
|
+
activesupport (= 7.0.3.1)
|
67
|
+
activerecord (7.0.3.1)
|
68
|
+
activemodel (= 7.0.3.1)
|
69
|
+
activesupport (= 7.0.3.1)
|
70
|
+
activestorage (7.0.3.1)
|
71
|
+
actionpack (= 7.0.3.1)
|
72
|
+
activejob (= 7.0.3.1)
|
73
|
+
activerecord (= 7.0.3.1)
|
74
|
+
activesupport (= 7.0.3.1)
|
75
|
+
marcel (~> 1.0)
|
76
|
+
mini_mime (>= 1.1.0)
|
77
|
+
activesupport (7.0.3.1)
|
60
78
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
61
79
|
i18n (>= 1.6, < 2)
|
62
80
|
minitest (>= 5.1)
|
63
81
|
tzinfo (~> 2.0)
|
64
|
-
zeitwerk (~> 2.3)
|
65
|
-
rails (7.0.0.alpha)
|
66
|
-
actioncable (= 7.0.0.alpha)
|
67
|
-
actionmailbox (= 7.0.0.alpha)
|
68
|
-
actionmailer (= 7.0.0.alpha)
|
69
|
-
actionpack (= 7.0.0.alpha)
|
70
|
-
actiontext (= 7.0.0.alpha)
|
71
|
-
actionview (= 7.0.0.alpha)
|
72
|
-
activejob (= 7.0.0.alpha)
|
73
|
-
activemodel (= 7.0.0.alpha)
|
74
|
-
activerecord (= 7.0.0.alpha)
|
75
|
-
activestorage (= 7.0.0.alpha)
|
76
|
-
activesupport (= 7.0.0.alpha)
|
77
|
-
bundler (>= 1.15.0)
|
78
|
-
railties (= 7.0.0.alpha)
|
79
|
-
sprockets-rails (>= 2.0.0)
|
80
|
-
railties (7.0.0.alpha)
|
81
|
-
actionpack (= 7.0.0.alpha)
|
82
|
-
activesupport (= 7.0.0.alpha)
|
83
|
-
method_source
|
84
|
-
rake (>= 0.13)
|
85
|
-
thor (~> 1.0)
|
86
|
-
|
87
|
-
PATH
|
88
|
-
remote: .
|
89
|
-
specs:
|
90
|
-
packwerk (2.2.0)
|
91
|
-
activesupport (>= 5.2)
|
92
|
-
ast
|
93
|
-
better_html
|
94
|
-
bundler
|
95
|
-
constant_resolver (>= 0.2.0)
|
96
|
-
digest
|
97
|
-
parallel
|
98
|
-
parser
|
99
|
-
sorbet-runtime (>= 0.5.9914)
|
100
|
-
|
101
|
-
GEM
|
102
|
-
remote: https://rubygems.org/
|
103
|
-
specs:
|
104
82
|
ast (2.4.2)
|
105
|
-
better_html (
|
106
|
-
actionview (>=
|
107
|
-
activesupport (>=
|
83
|
+
better_html (2.0.1)
|
84
|
+
actionview (>= 6.0)
|
85
|
+
activesupport (>= 6.0)
|
108
86
|
ast (~> 2.0)
|
109
87
|
erubi (~> 1.4)
|
110
|
-
html_tokenizer (~> 0.0.6)
|
111
88
|
parser (>= 2.4)
|
112
89
|
smart_properties
|
113
90
|
builder (3.2.4)
|
114
91
|
byebug (11.1.3)
|
115
92
|
coderay (1.1.3)
|
116
|
-
|
117
|
-
commander (4.5.2)
|
118
|
-
highline (~> 2.0.0)
|
119
|
-
concurrent-ruby (1.1.8)
|
93
|
+
concurrent-ruby (1.1.10)
|
120
94
|
constant_resolver (0.2.0)
|
121
95
|
crass (1.0.6)
|
96
|
+
diff-lcs (1.5.0)
|
122
97
|
digest (3.1.0)
|
123
|
-
erubi (1.
|
124
|
-
globalid (0.
|
125
|
-
activesupport (>=
|
126
|
-
|
127
|
-
html_tokenizer (0.0.7)
|
128
|
-
i18n (1.8.10)
|
98
|
+
erubi (1.11.0)
|
99
|
+
globalid (1.0.0)
|
100
|
+
activesupport (>= 5.0)
|
101
|
+
i18n (1.12.0)
|
129
102
|
concurrent-ruby (~> 1.0)
|
130
|
-
|
103
|
+
json (2.6.2)
|
104
|
+
language_server-protocol (3.16.0.3)
|
105
|
+
loofah (2.18.0)
|
131
106
|
crass (~> 1.0.2)
|
132
107
|
nokogiri (>= 1.5.9)
|
133
|
-
m (1.
|
108
|
+
m (1.6.0)
|
134
109
|
method_source (>= 0.6.7)
|
135
110
|
rake (>= 0.9.2.2)
|
136
111
|
mail (2.7.1)
|
137
112
|
mini_mime (>= 0.1.1)
|
138
|
-
marcel (1.0.
|
113
|
+
marcel (1.0.2)
|
139
114
|
method_source (1.0.0)
|
140
|
-
mini_mime (1.
|
115
|
+
mini_mime (1.1.2)
|
141
116
|
mini_portile2 (2.8.0)
|
142
|
-
minitest (5.
|
143
|
-
minitest-focus (1.
|
117
|
+
minitest (5.16.2)
|
118
|
+
minitest-focus (1.3.1)
|
144
119
|
minitest (>= 4, < 6)
|
145
|
-
mocha (1.
|
146
|
-
|
147
|
-
|
120
|
+
mocha (1.14.0)
|
121
|
+
net-imap (0.2.3)
|
122
|
+
digest
|
123
|
+
net-protocol
|
124
|
+
strscan
|
125
|
+
net-pop (0.1.1)
|
126
|
+
digest
|
127
|
+
net-protocol
|
128
|
+
timeout
|
129
|
+
net-protocol (0.1.3)
|
130
|
+
timeout
|
131
|
+
net-smtp (0.3.1)
|
132
|
+
digest
|
133
|
+
net-protocol
|
134
|
+
timeout
|
135
|
+
netrc (0.11.0)
|
136
|
+
nio4r (2.5.8)
|
137
|
+
nokogiri (1.13.8)
|
148
138
|
mini_portile2 (~> 2.8.0)
|
149
139
|
racc (~> 1.4)
|
150
|
-
nokogiri (1.13.
|
140
|
+
nokogiri (1.13.8-x86_64-darwin)
|
151
141
|
racc (~> 1.4)
|
152
|
-
parallel (1.
|
153
|
-
|
154
|
-
commander (~> 4.5)
|
155
|
-
parser
|
156
|
-
rainbow (~> 3.0)
|
157
|
-
sorbet-runtime (>= 0.5)
|
158
|
-
parser (3.0.0.0)
|
142
|
+
parallel (1.22.1)
|
143
|
+
parser (3.1.2.1)
|
159
144
|
ast (~> 2.4.1)
|
160
|
-
|
145
|
+
prettier_print (0.1.0)
|
146
|
+
pry (0.14.1)
|
161
147
|
coderay (~> 1.1)
|
162
148
|
method_source (~> 1.0)
|
163
|
-
psych (3.3.2)
|
164
149
|
racc (1.6.0)
|
165
|
-
rack (2.2.
|
166
|
-
rack-test (
|
167
|
-
rack (>= 1.
|
150
|
+
rack (2.2.4)
|
151
|
+
rack-test (2.0.2)
|
152
|
+
rack (>= 1.3)
|
153
|
+
rails (7.0.3.1)
|
154
|
+
actioncable (= 7.0.3.1)
|
155
|
+
actionmailbox (= 7.0.3.1)
|
156
|
+
actionmailer (= 7.0.3.1)
|
157
|
+
actionpack (= 7.0.3.1)
|
158
|
+
actiontext (= 7.0.3.1)
|
159
|
+
actionview (= 7.0.3.1)
|
160
|
+
activejob (= 7.0.3.1)
|
161
|
+
activemodel (= 7.0.3.1)
|
162
|
+
activerecord (= 7.0.3.1)
|
163
|
+
activestorage (= 7.0.3.1)
|
164
|
+
activesupport (= 7.0.3.1)
|
165
|
+
bundler (>= 1.15.0)
|
166
|
+
railties (= 7.0.3.1)
|
168
167
|
rails-dom-testing (2.0.3)
|
169
168
|
activesupport (>= 4.2.0)
|
170
169
|
nokogiri (>= 1.6)
|
171
|
-
rails-html-sanitizer (1.3
|
170
|
+
rails-html-sanitizer (1.4.3)
|
172
171
|
loofah (~> 2.3)
|
173
|
-
|
174
|
-
|
175
|
-
|
172
|
+
railties (7.0.3.1)
|
173
|
+
actionpack (= 7.0.3.1)
|
174
|
+
activesupport (= 7.0.3.1)
|
175
|
+
method_source
|
176
|
+
rake (>= 12.2)
|
177
|
+
thor (~> 1.0)
|
178
|
+
zeitwerk (~> 2.5)
|
179
|
+
rainbow (3.1.1)
|
180
|
+
rake (13.0.6)
|
181
|
+
rbi (0.0.15)
|
182
|
+
ast
|
183
|
+
parser (>= 2.6.4.0)
|
184
|
+
sorbet-runtime (>= 0.5.9204)
|
185
|
+
unparser
|
186
|
+
regexp_parser (2.5.0)
|
176
187
|
rexml (3.2.5)
|
177
|
-
rubocop (1.
|
188
|
+
rubocop (1.34.1)
|
189
|
+
json (~> 2.3)
|
178
190
|
parallel (~> 1.10)
|
179
|
-
parser (>= 3.
|
191
|
+
parser (>= 3.1.2.1)
|
180
192
|
rainbow (>= 2.2.2, < 4.0)
|
181
193
|
regexp_parser (>= 1.8, < 3.0)
|
182
|
-
rexml
|
183
|
-
rubocop-ast (>= 1.
|
194
|
+
rexml (>= 3.2.5, < 4.0)
|
195
|
+
rubocop-ast (>= 1.20.0, < 2.0)
|
184
196
|
ruby-progressbar (~> 1.7)
|
185
197
|
unicode-display_width (>= 1.4.0, < 3.0)
|
186
|
-
rubocop-ast (1.
|
187
|
-
parser (>=
|
188
|
-
rubocop-performance (1.
|
189
|
-
rubocop (>=
|
198
|
+
rubocop-ast (1.21.0)
|
199
|
+
parser (>= 3.1.1.0)
|
200
|
+
rubocop-performance (1.14.3)
|
201
|
+
rubocop (>= 1.7.0, < 2.0)
|
190
202
|
rubocop-ast (>= 0.4.0)
|
191
|
-
rubocop-shopify (2.0
|
192
|
-
rubocop (~> 1.
|
193
|
-
rubocop-sorbet (0.6.
|
194
|
-
rubocop
|
203
|
+
rubocop-shopify (2.9.0)
|
204
|
+
rubocop (~> 1.33)
|
205
|
+
rubocop-sorbet (0.6.11)
|
206
|
+
rubocop (>= 0.90.0)
|
207
|
+
ruby-lsp (0.2.3)
|
208
|
+
language_server-protocol
|
209
|
+
sorbet-runtime
|
210
|
+
syntax_tree (>= 2.4)
|
195
211
|
ruby-progressbar (1.11.0)
|
196
212
|
smart_properties (1.17.0)
|
197
|
-
sorbet (0.5.
|
198
|
-
sorbet-static (= 0.5.
|
199
|
-
sorbet-runtime (0.5.
|
200
|
-
sorbet-static (0.5.
|
201
|
-
sorbet-static (0.5.
|
202
|
-
sorbet-static (0.5.
|
203
|
-
sorbet-static (0.5.
|
204
|
-
sorbet-static (0.5.
|
205
|
-
sorbet-static (0.5.
|
206
|
-
sorbet-static (0.5.
|
207
|
-
sorbet-static (0.5.
|
208
|
-
sorbet-static (0.5.
|
209
|
-
|
210
|
-
|
211
|
-
sorbet (
|
212
|
-
sorbet-runtime
|
213
|
+
sorbet (0.5.10313)
|
214
|
+
sorbet-static (= 0.5.10313)
|
215
|
+
sorbet-runtime (0.5.10313)
|
216
|
+
sorbet-static (0.5.10313-universal-darwin-14)
|
217
|
+
sorbet-static (0.5.10313-universal-darwin-15)
|
218
|
+
sorbet-static (0.5.10313-universal-darwin-16)
|
219
|
+
sorbet-static (0.5.10313-universal-darwin-17)
|
220
|
+
sorbet-static (0.5.10313-universal-darwin-18)
|
221
|
+
sorbet-static (0.5.10313-universal-darwin-19)
|
222
|
+
sorbet-static (0.5.10313-universal-darwin-20)
|
223
|
+
sorbet-static (0.5.10313-universal-darwin-21)
|
224
|
+
sorbet-static (0.5.10313-universal-darwin-22)
|
225
|
+
sorbet-static (0.5.10313-x86_64-linux)
|
226
|
+
sorbet-static-and-runtime (0.5.10313)
|
227
|
+
sorbet (= 0.5.10313)
|
228
|
+
sorbet-runtime (= 0.5.10313)
|
229
|
+
spoom (1.1.11)
|
230
|
+
sorbet (>= 0.5.9204)
|
231
|
+
sorbet-runtime (>= 0.5.9204)
|
213
232
|
thor (>= 0.19.2)
|
214
|
-
spring (
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
actionpack (>= 4.0)
|
220
|
-
activesupport (>= 4.0)
|
221
|
-
sprockets (>= 3.0.0)
|
222
|
-
tapioca (0.4.19)
|
233
|
+
spring (4.0.0)
|
234
|
+
strscan (3.0.4)
|
235
|
+
syntax_tree (3.3.0)
|
236
|
+
prettier_print
|
237
|
+
tapioca (0.9.2)
|
223
238
|
bundler (>= 1.17.3)
|
224
|
-
|
239
|
+
netrc (>= 0.11.0)
|
240
|
+
parallel (>= 1.21.0)
|
225
241
|
pry (>= 0.12.2)
|
226
|
-
|
227
|
-
sorbet-static (>= 0.
|
228
|
-
spoom
|
229
|
-
thor (>=
|
230
|
-
|
231
|
-
|
242
|
+
rbi (~> 0.0.0, >= 0.0.14)
|
243
|
+
sorbet-static-and-runtime (>= 0.5.9204)
|
244
|
+
spoom (~> 1.1.0, >= 1.1.11)
|
245
|
+
thor (>= 1.2.0)
|
246
|
+
yard-sorbet
|
247
|
+
thor (1.2.1)
|
248
|
+
timeout (0.3.0)
|
249
|
+
tzinfo (2.0.5)
|
232
250
|
concurrent-ruby (~> 1.0)
|
233
|
-
unicode-display_width (2.
|
234
|
-
|
251
|
+
unicode-display_width (2.2.0)
|
252
|
+
unparser (0.6.5)
|
253
|
+
diff-lcs (~> 1.3)
|
254
|
+
parser (>= 3.1.0)
|
255
|
+
webrick (1.7.0)
|
256
|
+
websocket-driver (0.7.5)
|
235
257
|
websocket-extensions (>= 0.1.0)
|
236
258
|
websocket-extensions (0.1.5)
|
237
|
-
|
259
|
+
yard (0.9.28)
|
260
|
+
webrick (~> 1.7.0)
|
261
|
+
yard-sorbet (0.6.1)
|
262
|
+
sorbet-runtime (>= 0.5)
|
263
|
+
yard (>= 0.9)
|
264
|
+
zeitwerk (2.6.0)
|
238
265
|
|
239
266
|
PLATFORMS
|
240
267
|
ruby
|
@@ -248,14 +275,13 @@ DEPENDENCIES
|
|
248
275
|
minitest-focus
|
249
276
|
mocha
|
250
277
|
packwerk!
|
251
|
-
|
252
|
-
rails!
|
278
|
+
rails
|
253
279
|
rake
|
254
280
|
rubocop-performance
|
255
281
|
rubocop-shopify
|
256
282
|
rubocop-sorbet
|
257
|
-
|
258
|
-
sorbet-runtime
|
283
|
+
ruby-lsp (~> 0.2.1)
|
284
|
+
sorbet-static-and-runtime
|
259
285
|
spring
|
260
286
|
tapioca
|
261
287
|
zeitwerk
|