.yamllint 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # -*- mode: yaml -*-
  2. # vim:ts=2:sw=2:ai:si:syntax=yaml
  3. #
  4. # yamllint configuration directives
  5. # Project Homepage: https://github.com/adrienverge/yamllint
  6. #
  7. # Overriding rules in files:
  8. # http://yamllint.readthedocs.io/en/latest/disable_with_comments.html
  9. ---
  10. extends: default
  11. # Rules documentation: http://yamllint.readthedocs.io/en/latest/rules.html
  12. rules:
  13. braces:
  14. # Defaults
  15. # min-spaces-inside: 0
  16. # max-spaces-inside: 0
  17. # Keeping 0 min-spaces to not error on empty collection definitions
  18. min-spaces-inside: 0
  19. # Allowing one space inside braces to improve code readability
  20. max-spaces-inside: 1
  21. brackets:
  22. # Defaults
  23. # min-spaces-inside: 0
  24. # max-spaces-inside: 0
  25. # Keeping 0 min-spaces to not error on empty collection definitions
  26. min-spaces-inside: 0
  27. # Allowing one space inside braces to improve code readability
  28. max-spaces-inside: 1
  29. comments:
  30. # Defaults
  31. # level: warning
  32. # require-starting-space: true
  33. # min-spaces-from-content: 2
  34. # Disabling to allow for code comment blocks and #!/usr/bin/ansible-playbook
  35. require-starting-space: false
  36. indentation:
  37. # Defaults
  38. # spaces: consistent
  39. # indent-sequences: true
  40. # check-multi-line-strings: false
  41. # Requiring 2 space indentation
  42. spaces: 2
  43. # Requiring consistent indentation within a file, either indented or not
  44. indent-sequences: consistent
  45. # Disabling due to copious amounts of long lines in the code which would
  46. # require a code style change to resolve
  47. line-length: disable
  48. # Defaults
  49. # max: 80
  50. # allow-non-breakable-words: true
  51. # allow-non-breakable-inline-mappings: false
  52. # Disabling due to copious amounts of truthy warnings in the code which would
  53. # require a code style change to resolve
  54. truthy: disable
  55. # Defaults
  56. # level: warning