Skip to content

Commit 53f6674

Browse files
committed
Add Rubocop configuration
1 parent 8e359bb commit 53f6674

40 files changed

+990
-578
lines changed

.github/workflows/ruby-rspec.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ on:
99
- main
1010

1111
jobs:
12+
rubocop:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install Ruby ${{ matrix.ruby }}
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: "3.3"
20+
bundler-cache: true
21+
- name: Run Rubocop
22+
run: bundle exec rake rubocop
23+
1224
test:
1325
name: Test with Ruby ${{ matrix.ruby_version }}
1426
runs-on: ubuntu-latest
@@ -25,6 +37,5 @@ jobs:
2537
with:
2638
ruby-version: ${{ matrix.ruby }}
2739
bundler-cache: true
28-
2940
- name: Build and test with Rspec
3041
run: bundle exec rspec

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ _yardoc
2121
*.a
2222
mkmf.log
2323
/vendor/
24+
/.vendor/

.rubocop.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
inherit_from: .rubocop_todo.yml
3+
4+
inherit_gem:
5+
voxpupuli-rubocop: rubocop.yml
6+
7+
AllCops:
8+
TargetRubyVersion: '3.1'

0 commit comments

Comments
 (0)