Skip to content

Commit

Permalink
Add yamllint GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Feb 26, 2022
1 parent 6cd6a6f commit 2896935
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 13 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -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 }}
14 changes: 7 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ Layout/ClassStructure:
- prepend
- extend
ExpectedOrder:
- module_inclusion
- constants
- public_class_methods
- initializer
- instance_methods
- protected_methods
- private_methods
- module_inclusion
- constants
- public_class_methods
- initializer
- instance_methods
- protected_methods
- private_methods

# Trailing white space is meaningful in code examples
Layout/TrailingWhitespace:
Expand Down
9 changes: 9 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: default

rules:
comments:
min-spaces-from-content: 1
document-start: disable
line-length: disable
truthy:
check-keys: false
12 changes: 6 additions & 6 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ edit_uri: edit/master/legacy-docs
copyright: "Copyright © 2012-2022 Bozhidar Batsov and RuboCop contributors"
docs_dir: legacy-docs
pages:
- Home: index.md
- Installation: installation.md
- Usage: usage.md
- Cops: cops.md
- Cops Documentation:
- Performance Cops: cops_performance.md
- Home: index.md
- Installation: installation.md
- Usage: usage.md
- Cops: cops.md
- Cops Documentation:
- Performance Cops: cops_performance.md
theme: readthedocs

0 comments on commit 2896935

Please sign in to comment.