Skip to content

Instantly share code, notes, and snippets.

@davidtingsu
Last active August 4, 2017 00:04
Show Gist options
  • Save davidtingsu/5e23611d476a4e74d468519fa9a35e20 to your computer and use it in GitHub Desktop.
Save davidtingsu/5e23611d476a4e74d468519fa9a35e20 to your computer and use it in GitHub Desktop.
how to setup .arclint for yaml
# 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