Skip to content

Commit e217c58

Browse files
committed
Add RuboCop config and GitHub Actions worklfow
start running RuboCop against Pliny itself.
1 parent b34588b commit e217c58

File tree

3 files changed

+539
-0
lines changed

3 files changed

+539
-0
lines changed

.github/workflows/lint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
21+
steps:
22+
- uses: actions/checkout@v5
23+
with:
24+
fetch-depth: 0
25+
- uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby-version }}
28+
bundler-cache: true
29+
- uses: wearerequired/lint-action@v2
30+
with:
31+
auto_fix: false
32+
rubocop: true
33+
rubocop_auto_fix: false
34+
rubocop_command_prefix: bundle exec

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
inherit_from: .rubocop_todo.yml

0 commit comments

Comments
 (0)