diff --git a/.github/workflows/standardrb.yaml b/.github/workflows/standardrb.yaml index 6003707..f79fbde 100644 --- a/.github/workflows/standardrb.yaml +++ b/.github/workflows/standardrb.yaml @@ -3,11 +3,13 @@ name: StandardRB on: [push] jobs: - build: + standardrb: runs-on: ubuntu-latest + permissions: + checks: write + contents: write steps: - - uses: actions/checkout@v1 - name: StandardRB Linter - uses: standardrb/standard-ruby-action@v0.0.5 + uses: standardrb/standard-ruby-action@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.rubocop.yml b/.rubocop.yml index 050a1f3..54b7581 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,2 +1,12 @@ AllCops: TargetRubyVersion: 2.7 + +require: + - standard + - standard-custom + - standard-performance + +inherit_gem: + standard: config/base.yml + standard-custom: config/base.yml + standard-performance: config/base.yml diff --git a/.standard.yml b/.standard.yml index 518efa6..f31800f 100644 --- a/.standard.yml +++ b/.standard.yml @@ -1,4 +1,2 @@ fix: true format: progress -extend_config: - - .rubocop.yml diff --git a/Gemfile.lock b/Gemfile.lock index 04b22de..e9ef85c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,20 +7,20 @@ PATH GEM remote: https://rubygems.org/ specs: - ast (2.4.2) + ast (2.4.3) diff-lcs (1.5.0) - json (2.7.2) - language_server-protocol (3.17.0.3) + json (2.18.1) + language_server-protocol (3.17.0.5) lint_roller (1.1.0) - parallel (1.24.0) - parser (3.3.1.0) + parallel (1.27.0) + parser (3.3.10.2) ast (~> 2.4.1) racc - racc (1.7.3) + prism (1.9.0) + racc (1.8.1) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.9.0) - rexml (3.2.6) + regexp_parser (2.11.3) rspec (3.12.0) rspec-core (~> 3.12.0) rspec-expectations (~> 3.12.0) @@ -34,37 +34,41 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-support (3.12.0) - rubocop (1.62.1) + rubocop (1.84.2) json (~> 2.3) - language_server-protocol (>= 3.17.0) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.1.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.31.1, < 2.0) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.31.3) - parser (>= 3.3.1.0) - rubocop-performance (1.20.2) - rubocop (>= 1.48.1, < 2.0) - rubocop-ast (>= 1.30.0, < 2.0) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.49.0) + parser (>= 3.3.7.2) + prism (~> 1.7) + rubocop-performance (1.26.1) + lint_roller (~> 1.1) + rubocop (>= 1.75.0, < 2.0) + rubocop-ast (>= 1.47.1, < 2.0) ruby-progressbar (1.13.0) stackprof (0.2.17) - standard (1.35.1) + standard (1.54.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.62.0) + rubocop (~> 1.84.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.3) + standard-performance (~> 1.8) standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - standard-performance (1.3.1) + standard-performance (1.9.0) lint_roller (~> 1.1) - rubocop-performance (~> 1.20.2) - unicode-display_width (2.5.0) + rubocop-performance (~> 1.26.0) + unicode-display_width (3.2.0) + unicode-emoji (~> 4.1) + unicode-emoji (4.2.0) PLATFORMS ruby diff --git a/lib/singed.rb b/lib/singed.rb index a4fd033..8e96fbf 100644 --- a/lib/singed.rb +++ b/lib/singed.rb @@ -2,7 +2,6 @@ require "json" require "stackprof" -require "pathname" module Singed extend self diff --git a/lib/singed/cli.rb b/lib/singed/cli.rb index 1db063c..7976106 100644 --- a/lib/singed/cli.rb +++ b/lib/singed/cli.rb @@ -1,7 +1,6 @@ require "shellwords" require "tmpdir" require "optionparser" -require "pathname" # NOTE: we defer requiring singed until we run. that lets Rails load it if its in the gemfile, so the railtie has had a chance to run