Skip to content

Commit

Permalink
checks: add configuration files for yamllint and markdownlint (#3677)
Browse files Browse the repository at this point in the history
Avoid discrepancy between super-linter and pre-commit settings.
  • Loading branch information
nilason committed Apr 30, 2024
1 parent 7e63c52 commit 37a74d0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

default: true
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,3 @@ repos:
rev: v1.29.0
hooks:
- id: yamllint
args: [--format, parsable, --strict, -d,
'{extends: default, rules: {truthy: disable,
line-length: {max: 120, allow-non-breakable-words: true},
comments: {min-spaces-from-content: 1}}}']
15 changes: 15 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---

extends: default

rules:
comments:
level: error
min-spaces-from-content: 1
document-start:
level: error
line-length:
level: error
max: 120
allow-non-breakable-inline-mappings: true
truthy: disable

0 comments on commit 37a74d0

Please sign in to comment.