Skip to content

Commit 042b60e

Browse files
committed
add RuboCop
1 parent f5e9f38 commit 042b60e

File tree

6 files changed

+2379
-0
lines changed

6 files changed

+2379
-0
lines changed

.github/workflows/lint.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
permissions:
11+
checks: write
12+
contents: read
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
ruby-version: ['3.2', '3.3', '3.4']
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: ${{ matrix.ruby-version }}
27+
bundler-cache: true
28+
- uses: wearerequired/lint-action@v2
29+
with:
30+
auto_fix: false
31+
rubocop: true
32+
rubocop_auto_fix: false
33+
rubocop_command_prefix: bundle exec

.rubocop.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
3+
inherit_from:
4+
- .rubocop_standardrb.yml
5+
- .rubocop_standardrb_overrides.yml
6+
- .rubocop_todo.yml
7+
8+
AllCops:
9+
NewCops: disable
10+
Exclude:
11+
- vendor/**/*

0 commit comments

Comments
 (0)