From f4ad2c1662ce385413548c70a8ad396edfcb15c8 Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Sat, 26 Mar 2022 11:58:06 -0700 Subject: [PATCH] fixing lints --- .github/linters/.markdown-lint.yml | 1 + .github/linters/.yaml-lint.yml | 53 ++++++++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .github/linters/.yaml-lint.yml diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index 3d0e3a0..cb41d48 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -1,3 +1,4 @@ +--- # MD013/line-length - Line length MD013: # Number of characters, default is 80 diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml new file mode 100644 index 0000000..030c37f --- /dev/null +++ b/.github/linters/.yaml-lint.yml @@ -0,0 +1,53 @@ +--- +########################################### +# These are the rules used for # +# linting all the yaml files in the stack # +# NOTE: # +# You can disable line with: # +# # yamllint disable-line # +########################################### +rules: + braces: + level: warning + min-spaces-inside: 0 + max-spaces-inside: 0 + min-spaces-inside-empty: 1 + max-spaces-inside-empty: 5 + brackets: + level: warning + min-spaces-inside: 0 + max-spaces-inside: 0 + min-spaces-inside-empty: 1 + max-spaces-inside-empty: 5 + colons: + level: warning + max-spaces-before: 0 + max-spaces-after: 1 + commas: + level: warning + max-spaces-before: 0 + min-spaces-after: 1 + max-spaces-after: 1 + comments: disable + comments-indentation: disable + document-end: disable + document-start: disable + empty-lines: + level: warning + max: 2 + max-start: 0 + max-end: 0 + hyphens: + level: warning + max-spaces-after: 1 + indentation: + level: warning + spaces: consistent + indent-sequences: true + check-multi-line-strings: false + key-duplicates: enable + line-length: disable + new-line-at-end-of-file: disable + new-lines: + type: unix + trailing-spaces: disable \ No newline at end of file diff --git a/README.md b/README.md index 6a36589..b3dbf7b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The GitHub [Super-Linter](https://github.com/marketplace/actions/super-linter) p ## How to reuse this example as a *Reusable* Workflow 1. Fork this repository for you to customize your linters in a single location for your org/projects. -2. Add a new workflow to all your other repositories and paste in this YAML to call the central-repos reusable workflow. +2. Add a new workflow to all your other repositories and paste in this YAML to call the central-repos reusable workflow. ```yaml ---