-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified .yamllint; Fixed resulting lint errors
- Loading branch information
1 parent
b04afd5
commit e35faf5
Showing
6 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
skip_list: | ||
- 'yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
repos: | ||
- repo: local | ||
hooks: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,31 @@ | ||
--- | ||
# Based on ansible-lint config | ||
extends: default | ||
|
||
# Using ansible-lint recommendations https://ansible.readthedocs.io/projects/lint/rules/yaml/#yamllint-configuration | ||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
colons: | ||
max-spaces-after: -1 | ||
level: error | ||
commas: | ||
max-spaces-after: -1 | ||
level: error | ||
comments: disable | ||
comments-indentation: disable | ||
comments: | ||
# https://github.com/prettier/prettier/issues/6780 | ||
min-spaces-from-content: 1 | ||
# https://github.com/adrienverge/yamllint/issues/384 | ||
comments-indentation: false | ||
document-start: disable | ||
empty-lines: | ||
max: 3 | ||
level: error | ||
hyphens: | ||
level: error | ||
indentation: disable | ||
key-duplicates: enable | ||
line-length: disable | ||
new-line-at-end-of-file: disable | ||
new-lines: | ||
type: unix | ||
trailing-spaces: disable | ||
truthy: disable | ||
# 160 chars was the default used by old E204 rule, but | ||
# you can easily change it or disable in your .yamllint file. | ||
line-length: | ||
max: 160 | ||
# We are adding an extra space inside braces as that's how prettier does it | ||
# and we are trying not to fight other linters. | ||
braces: | ||
min-spaces-inside: 0 # yamllint defaults to 0 | ||
max-spaces-inside: 1 # yamllint defaults to 0 | ||
# key-duplicates: | ||
# forbid-duplicated-merge-keys: true # not enabled by default | ||
octal-values: | ||
forbid-implicit-octal: true # yamllint defaults to false | ||
forbid-explicit-octal: true # yamllint defaults to false | ||
# quoted-strings: | ||
# quote-type: double | ||
# required: only-when-needed | ||
|
||
ignore: | | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters