From c8544d42387ea044b6805a219bace2d26dce476d Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 14 Oct 2023 21:11:45 +0200 Subject: [PATCH] chore: use example files as examples --- examples/dotfiles/.yamllint.yaml | 10 ++++++++++ knowledge base/yamllint.md | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 examples/dotfiles/.yamllint.yaml diff --git a/examples/dotfiles/.yamllint.yaml b/examples/dotfiles/.yamllint.yaml new file mode 100644 index 0000000..ffa6512 --- /dev/null +++ b/examples/dotfiles/.yamllint.yaml @@ -0,0 +1,10 @@ +--- +# See https://yamllint.readthedocs.io/en/stable/configuration.html for +# more information + +extends: default + +rules: + line-length: + allow-non-breakable-inline-mappings: true + max: 120 diff --git a/knowledge base/yamllint.md b/knowledge base/yamllint.md index dd63820..05eb99b 100644 --- a/knowledge base/yamllint.md +++ b/knowledge base/yamllint.md @@ -54,6 +54,8 @@ extends: relaxed indent-sequences: whatever ``` +[Configuration file example]. + ## Further readings - [GitHub] page @@ -68,3 +70,6 @@ extends: relaxed [documentation]: https://yamllint.readthedocs.io/en/stable [github]: https://github.com/adrienverge/yamllint [rules]: https://yamllint.readthedocs.io/en/stable/rules.html + + +[configuration file example]: ../examples/dotfiles/.yamllint.yaml