Skip to content

Commit

Permalink
Add RuboCop workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Sep 13, 2024
1 parent bc45baa commit d400df5
Show file tree
Hide file tree
Showing 5 changed files with 668 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.rubocop_todo.yml linguist-generated
27 changes: 27 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: RuboCop

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
test:
name: RuboCop
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6.10'
bundler-cache: false
- name: RuboCop
run: |
gem install rubocop
rubocop
15 changes: 15 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
inherit_from: .rubocop_todo.yml

AllCops:
NewCops: enable
TargetRubyVersion: 2.6
Exclude:
- .git/**/*
- .github/**/*
- gemfiles/**/*
- node_modules/**/*
- tmp/**/*
- vendor/**/*

Layout/LineLength:
Enabled: false
Loading

0 comments on commit d400df5

Please sign in to comment.