Skip to content

Commit 2896935

Browse files
committed
Add yamllint GitHub workflow
Follow up rubocop/rubocop#10392.
1 parent 6cd6a6f commit 2896935

File tree

4 files changed

+37
-13
lines changed

4 files changed

+37
-13
lines changed

.github/workflows/linting.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Linting
2+
on:
3+
- pull_request
4+
jobs:
5+
yamllint:
6+
name: Yamllint
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Yamllint
11+
uses: karancode/yamllint-github-action@master
12+
with:
13+
yamllint_comment: true
14+
env:
15+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.rubocop.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ Layout/ClassStructure:
5353
- prepend
5454
- extend
5555
ExpectedOrder:
56-
- module_inclusion
57-
- constants
58-
- public_class_methods
59-
- initializer
60-
- instance_methods
61-
- protected_methods
62-
- private_methods
56+
- module_inclusion
57+
- constants
58+
- public_class_methods
59+
- initializer
60+
- instance_methods
61+
- protected_methods
62+
- private_methods
6363

6464
# Trailing white space is meaningful in code examples
6565
Layout/TrailingWhitespace:

.yamllint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends: default
2+
3+
rules:
4+
comments:
5+
min-spaces-from-content: 1
6+
document-start: disable
7+
line-length: disable
8+
truthy:
9+
check-keys: false

mkdocs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ edit_uri: edit/master/legacy-docs
44
copyright: "Copyright © 2012-2022 Bozhidar Batsov and RuboCop contributors"
55
docs_dir: legacy-docs
66
pages:
7-
- Home: index.md
8-
- Installation: installation.md
9-
- Usage: usage.md
10-
- Cops: cops.md
11-
- Cops Documentation:
12-
- Performance Cops: cops_performance.md
7+
- Home: index.md
8+
- Installation: installation.md
9+
- Usage: usage.md
10+
- Cops: cops.md
11+
- Cops Documentation:
12+
- Performance Cops: cops_performance.md
1313
theme: readthedocs

0 commit comments

Comments
 (0)