Skip to content

Commit

Permalink
add RuboCop
Browse files Browse the repository at this point in the history
  • Loading branch information
beanieboi committed Feb 6, 2025
1 parent f5e9f38 commit 7d1c077
Show file tree
Hide file tree
Showing 5 changed files with 1,923 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

permissions:
checks: write
contents: read

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.2', '3.3', '3.4']
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- uses: wearerequired/lint-action@v2
with:
ruby-version: ${{ matrix.ruby-version }}
auto_fix: false
rubocop: true
rubocop_auto_fix: false
rubocop_command_prefix: bundle exec
11 changes: 11 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---

inherit_from:
- .rubocop_standardrb.yml
- .rubocop_standardrb_overrides.yml
- .rubocop_todo.yml

AllCops:
NewCops: disable
Exclude:
- vendor/**/*
Loading

0 comments on commit 7d1c077

Please sign in to comment.