Skip to content

Commit c0ab792

Browse files
authored
Merge pull request #656 from johnnyshields/rubocop-initial-commit
Add Rubocop + some basic fixes
2 parents 4620c53 + f614a8d commit c0ab792

27 files changed

+1137
-163
lines changed

.github/workflows/rubocop.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Rubocop
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
env:
10+
CI: true
11+
TESTOPTS: '-v'
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Ruby 3.0
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: 3.0
18+
bundler-cache: true
19+
20+
- name: Install dependencies
21+
run: bundle install
22+
23+
- name: Run RuboCop
24+
run: bundle exec rubocop --parallel

.rubocop.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
inherit_from: .rubocop_todo.yml
2+
3+
require:
4+
- rubocop-minitest
5+
- rubocop-performance
6+
- rubocop-rake
7+
8+
AllCops:
9+
TargetRubyVersion: 2.6
10+
NewCops: enable
11+
Include:
12+
- 'lib/**/*'
13+
Exclude:
14+
- '**/*.xsd'
15+
- '.git/**/*'
16+
- 'tmp/**/*'
17+
- 'vendor/**/*'

0 commit comments

Comments
 (0)