Skip to content

Commit aba25e6

Browse files
committed
add RuboCop
1 parent f3c1bff commit aba25e6

File tree

5 files changed

+1919
-0
lines changed

5 files changed

+1919
-0
lines changed

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- uses: ruby/setup-ruby@v1
22+
with:
23+
bundler-cache: true
24+
- uses: wearerequired/lint-action@v2
25+
with:
26+
ruby-version: 3.2
27+
auto_fix: false
28+
rubocop: true
29+
rubocop_auto_fix: false
30+
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)