Skip to content

Commit 635ace9

Browse files
committed
Rubocop + autogen config
1 parent 4620c53 commit 635ace9

File tree

4 files changed

+983
-0
lines changed

4 files changed

+983
-0
lines changed

.github/workflows/rubocop.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
- name: Run RuboCop
20+
run: bundle exec rubocop --parallel

.rubocop.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
inherit_from: .rubocop_todo.yml
2+
3+
AllCops:
4+
TargetRubyVersion: 2.6
5+
NewCops: disable
6+
Include:
7+
- 'lib/**/*'
8+
9+
#Bundler:
10+
# Enabled: false
11+
#
12+
#Gemspec:
13+
# Enabled: false
14+
#
15+
#Layout:
16+
# Enabled: false
17+
#
18+
#Lint:
19+
# Enabled: false
20+
#
21+
#Metrics:
22+
# Enabled: false
23+
#
24+
#Naming:
25+
# Enabled: false
26+
#
27+
#Security:
28+
# Enabled: true
29+
#
30+
#Style:
31+
# Enabled: false

0 commit comments

Comments
 (0)