Skip to content

Instantly share code, notes, and snippets.

@akerouanton
Created October 3, 2018 14:45
Show Gist options
  • Save akerouanton/a3d69f3348f2fb9e98f9589d3159d0bd to your computer and use it in GitHub Desktop.
Save akerouanton/a3d69f3348f2fb9e98f9589d3159d0bd to your computer and use it in GitHub Desktop.
One-liner for YAML file linting
docker run --rm -t -v $(pwd):/app -w /app sdesbure/yamllint find ./ -type f -name '*.yaml' -or -name '*.yml' -and -not -path '*/node_modules/*' -and -not -path '*/vendor/*' -exec yamllint {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment