Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,28 @@ jobs:
- uses: actions/checkout@v4.2.2

- name: Setup Ruby
uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9 # v1.254.0
uses: ruby/setup-ruby@v1.255.0
with:
bundler-cache: true

- name: Run linters
uses: wearerequired/lint-action@548d8a7c4b04d3553d32ed5b6e91eb171e10e7bb # v2
if: ${{ github.event_name == 'pull_request_target' }}
with:
auto_fix: true
rubocop: true
rubocop_command_prefix: bundle exec
- name: Run RuboCop with auto-correct
run: |
bundle exec rubocop -A

- name: Check for changes
id: changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
if git status --porcelain | grep .; then
echo "changes=true" >> $GITHUB_ENV
else
echo "changes=false" >> $GITHUB_ENV
fi

- name: Commit and push changes
if: env.changes == 'true'
run: |
git add .
git commit -m "chore: auto-corrected with RuboCop"
git push
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gem "faraday", "2.12.2"
gem "faraday-retry", "2.3.1"
gem "github-pages", "~> 232", group: :jekyll_plugins
gem "json", "2.11.3"
gem "language_server-protocol", "3.17.0.4"
gem "language_server-protocol", "3.17.0.5"
gem "nokogiri", "~> 1.18.8"
gem "rake", "13.2.1"
gem "rubocop", "1.75.5"
Expand Down
30 changes: 15 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ GEM
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.4)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
liquid (4.0.4)
listen (3.9.0)
Expand All @@ -260,30 +260,30 @@ GEM
bigdecimal (~> 3.1)
net-http (0.6.0)
uri
nokogiri (1.18.8)
nokogiri (1.18.9)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.18.8-aarch64-linux-gnu)
nokogiri (1.18.9-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.8-aarch64-linux-musl)
nokogiri (1.18.9-aarch64-linux-musl)
racc (~> 1.4)
nokogiri (1.18.8-arm-linux-gnu)
nokogiri (1.18.9-arm-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.8-arm-linux-musl)
nokogiri (1.18.9-arm-linux-musl)
racc (~> 1.4)
nokogiri (1.18.8-arm64-darwin)
nokogiri (1.18.9-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.8-x86_64-darwin)
nokogiri (1.18.9-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.8-x86_64-linux-gnu)
nokogiri (1.18.9-x86_64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.8-x86_64-linux-musl)
nokogiri (1.18.9-x86_64-linux-musl)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
parallel (1.27.0)
parser (3.3.8.0)
parser (3.3.9.0)
ast (~> 2.4.1)
racc
pathutil (0.16.2)
Expand All @@ -299,7 +299,7 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
regexp_parser (2.10.0)
regexp_parser (2.11.1)
rexml (3.4.1)
rouge (3.30.0)
rubocop (1.75.5)
Expand All @@ -313,7 +313,7 @@ GEM
rubocop-ast (>= 1.44.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.45.1)
rubocop-ast (1.46.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-performance (1.25.0)
Expand Down Expand Up @@ -367,7 +367,7 @@ DEPENDENCIES
github-pages (~> 232)
httparty
json (= 2.11.3)
language_server-protocol (= 3.17.0.4)
language_server-protocol (= 3.17.0.5)
minitest
nokogiri (~> 1.18.8)
octokit
Expand All @@ -379,4 +379,4 @@ DEPENDENCIES
webrick

BUNDLED WITH
2.5.19
2.7.1
Loading