jbampton opened a new issue, #34:
URL: https://github.com/apache/tooling-docs/issues/34

   https://github.com/adrienverge/yamllint
   
   https://yamllint.readthedocs.io/en/stable/
   
   
https://yamllint.readthedocs.io/en/stable/integration.html#integration-with-pre-commit
   
   There are about 20+ rules:
   
   https://yamllint.readthedocs.io/en/stable/rules.html
   
   Example pre-commit config entry:
   
   ```
     - repo: https://github.com/adrienverge/yamllint
       rev: v1.35.1
       hooks:
         - id: yamllint
           name: Run yamllint
           description: Check YAML files with yamllint
           args: [--strict, -c=.github/linters/.yaml-lint.yml]
           exclude: ^mkdocs\.yml$
           types: [yaml]
           files: \.ya?ml$
   ```
   
   Example: `.github/linters/.yaml-lint.yml`
   
   ```
   ---
   # https://yamllint.readthedocs.io/en/stable/
   extends: default
   
   rules:
     colons: disable
     comments: disable
     comments-indentation: disable
     document-start: disable
     line-length: disable
     truthy: false
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to