diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 053ce65eb36d8fd45a0e4922ff3d12ac9ab07a9f..403edaaa21d9124d451a36c8bd94bf87da700f02 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,3 +25,7 @@ jobs: env: ANSIBLE_MODULE_UTILS: plugins/module_utils ANSIBLE_LIBRARY: plugins/modules + + - name: Run yaml-lint + uses: ibiqlik/action-yamllint@v1 + diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000000000000000000000000000000000000..3671e728732701929e1201c7c2f8ba0a307ae4a6 --- /dev/null +++ b/.yamllint @@ -0,0 +1,28 @@ +--- +ignore: | + /.tox/ + /.venv/ + /.github/ + +extends: default + +rules: + braces: + max-spaces-inside: 1 + level: error + brackets: + max-spaces-inside: 1 + level: error + truthy: + allowed-values: ["yes", "no", "true", "false", "True", "False"] + level: error + # Disabled rules + document-start: disable + indentation: disable + line-length: disable + colons: disable + empty-lines: disable + comments: disable + comments-indentation: disable + trailing-spaces: disable + new-line-at-end-of-file: disable