Last active
August 4, 2017 00:04
-
-
Save davidtingsu/5e23611d476a4e74d468519fa9a35e20 to your computer and use it in GitHub Desktop.
how to setup .arclint for 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
# install yamllint at https://github.com/adrienverge/yamllint | |
{ | |
"linters": { | |
"yaml": { | |
"type": "script-and-regex", | |
"include": [ | |
"(\\.yaml?$)" | |
], | |
"exclude": [], | |
"script-and-regex.script": "sh -c 'yamllint -f parsable \"$0\" || true'", | |
"script-and-regex.regex": "/^(?P<file>.*):(?P<line>[0-9]*):(?P<char>[0-9]*): \\[((?P<warning>warning)|(?P<error>error))\\] (?P<message>.*) \\((?P<code>[a-z-]+)\\)$/m" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment