Saltstack Official Apache Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

45 lines
1.2KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. # Extend the `default` configuration provided by `yamllint`
  5. extends: 'default'
  6. # Files to ignore completely
  7. # 1. All YAML files under directory `.cache/`, introduced during the GitLab CI run
  8. # 2. All YAML files under directory `.git/`
  9. # 3. All YAML files under directory `node_modules/`, introduced during the Travis run
  10. # 4. Any SLS files under directory `test/`, which are actually state files
  11. # 5. Any YAML files under directory `.kitchen/`, introduced during local testing
  12. # 6. `kitchen.vagrant.yml`, which contains Embedded Ruby (ERB) template syntax
  13. ignore: |
  14. .cache/
  15. .git/
  16. node_modules/
  17. test/**/states/**/*.sls
  18. .kitchen/
  19. kitchen.vagrant.yml
  20. test/salt/pillar/modules.sls
  21. pillar.example
  22. yaml-files:
  23. # Default settings
  24. - '*.yaml'
  25. - '*.yml'
  26. - .salt-lint
  27. - .yamllint
  28. # SaltStack Formulas additional settings
  29. - '*.example'
  30. - test/**/*.sls
  31. rules:
  32. empty-values:
  33. forbid-in-block-mappings: true
  34. forbid-in-flow-mappings: true
  35. line-length:
  36. # Increase from default of `80`
  37. # Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
  38. max: 88
  39. octal-values:
  40. forbid-implicit-octal: true
  41. forbid-explicit-octal: true