Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable rubocop on CI #25

Merged
merged 3 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ jobs:
uses: ludeeus/action-shellcheck@1.1.0
with:
scandir: './bin'
rubocop:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: development:test

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run tests
run: bundle exec rake rubocop
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Ignore bundler config.
/.bundle
/vendor
/.vendor

# Ignore the default SQLite database.
/db/*.sqlite3
Expand Down
13 changes: 13 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
inherit_from: .rubocop_todo.yml

require: rubocop-rails

AllCops:
TargetRubyVersion: 2.5
NewCops: enable
Include:
- '**/*.rb'
Exclude:
- vendor/**/*
- .vendor/**/*
Loading