Skip to content

Commit

Permalink
Merge pull request #656 from johnnyshields/rubocop-initial-commit
Browse files Browse the repository at this point in the history
Add Rubocop + some basic fixes
  • Loading branch information
pitbulk committed Mar 8, 2023
2 parents 4620c53 + f614a8d commit c0ab792
Show file tree
Hide file tree
Showing 27 changed files with 1,137 additions and 163 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Rubocop

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
TESTOPTS: '-v'
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true

- name: Install dependencies
run: bundle install

- name: Run RuboCop
run: bundle exec rubocop --parallel
17 changes: 17 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake

AllCops:
TargetRubyVersion: 2.6
NewCops: enable
Include:
- 'lib/**/*'
Exclude:
- '**/*.xsd'
- '.git/**/*'
- 'tmp/**/*'
- 'vendor/**/*'

0 comments on commit c0ab792

Please sign in to comment.