Skip to content

Commit 2503aa8

Browse files
authored
Merge pull request #645 from koic/add_yamllint_github_workflow
Add `yamllint` GitHub workflow
2 parents 2a76325 + a5df824 commit 2503aa8

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
@@ -71,13 +71,13 @@ Layout/ClassStructure:
7171
- prepend
7272
- extend
7373
ExpectedOrder:
74-
- module_inclusion
75-
- constants
76-
- public_class_methods
77-
- initializer
78-
- instance_methods
79-
- protected_methods
80-
- private_methods
74+
- module_inclusion
75+
- constants
76+
- public_class_methods
77+
- initializer
78+
- instance_methods
79+
- protected_methods
80+
- private_methods
8181

8282
# Trailing white space is meaningful in code examples
8383
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-
- Rails Cops: cops_rails.md
7+
- Home: index.md
8+
- Installation: installation.md
9+
- Usage: usage.md
10+
- Cops: cops.md
11+
- Cops Documentation:
12+
- Rails Cops: cops_rails.md
1313
theme: readthedocs

0 commit comments

Comments
 (0)