Skip to content

Commit b984415

Browse files
authored
Merge pull request #1083 from rubocop-hq/yamllint
Lint our YAML files, using yamllint
2 parents 499ec19 + f688c4d commit b984415

File tree

7 files changed

+163
-132
lines changed

7 files changed

+163
-132
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ jobs:
7272
- run:
7373
name: Setup Code Climate test-reporter
7474
command: |
75-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
75+
curl -L \
76+
https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > \
77+
./cc-test-reporter
7678
chmod +x ./cc-test-reporter
7779
- run:
7880
name: Run specs
@@ -87,7 +89,8 @@ workflows:
8789
jobs:
8890
- confirm_config_and_documentation
8991

90-
# Use `requires: [confirm_config_and_documentation]` to trick Circle CI into starting the slow jruby job early.
92+
# Use `requires: [confirm_config_and_documentation]` to trick Circle CI into starting the slow
93+
# jruby job early.
9194
- rspec:
9295
requires: [confirm_config_and_documentation]
9396
matrix:

.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
inherit_from: .rubocop_todo.yml
22

33
require:
4-
- rubocop-performance
5-
- rubocop-rspec
6-
- rubocop/cop/internal_affairs
4+
- rubocop-performance
5+
- rubocop-rspec
6+
- rubocop/cop/internal_affairs
77

88
AllCops:
99
DisplayCopNames: true

.yamllint

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

0 commit comments

Comments
 (0)