Skip to content

Commit

Permalink
Merge pull request #1083 from rubocop-hq/yamllint
Browse files Browse the repository at this point in the history
Lint our YAML files, using yamllint
  • Loading branch information
bquorning committed Nov 9, 2020
2 parents c7569e9 + be21e3d commit 411b421
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 130 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/linting.yml
@@ -0,0 +1,15 @@
name: Linting
on:
- pull_request
jobs:
yamllint:
name: Yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Yamllint
uses: karancode/yamllint-github-action@master
with:
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .rubocop.yml
@@ -1,9 +1,9 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-performance
- rubocop-rspec
- rubocop/cop/internal_affairs
- rubocop-performance
- rubocop-rspec
- rubocop/cop/internal_affairs

AllCops:
DisplayCopNames: true
Expand Down
11 changes: 11 additions & 0 deletions .yamllint
@@ -0,0 +1,11 @@
extends: default

rules:
comments:
min-spaces-from-content: 1
document-start: disable
line-length:
allow-non-breakable-inline-mappings: true
max: 100
truthy:
check-keys: false

0 comments on commit 411b421

Please sign in to comment.