diff --git a/.automation/test/cloudformation/cloudformation_bad_2.yaml b/.automation/test/cloudformation/cloudformation_bad_2.yaml index 70ae5ee6..bb4fdb87 100644 --- a/.automation/test/cloudformation/cloudformation_bad_2.yaml +++ b/.automation/test/cloudformation/cloudformation_bad_2.yaml @@ -1,3 +1,4 @@ +--- AWSTemplateFormatVersion: "2010-09-09" Description: A sample template Resources: diff --git a/.automation/test/cloudformation/cloudformation_good_2.yaml b/.automation/test/cloudformation/cloudformation_good_2.yaml index ae8fdb83..afab57f1 100644 --- a/.automation/test/cloudformation/cloudformation_good_2.yaml +++ b/.automation/test/cloudformation/cloudformation_good_2.yaml @@ -1,3 +1,4 @@ +--- AWSTemplateFormatVersion: "2010-09-09" Description: A sample template Resources: diff --git a/.automation/test/github_actions/actions_bad_01.yml b/.automation/test/github_actions/actions_bad_01.yml index 42e8770c..06204f33 100644 --- a/.automation/test/github_actions/actions_bad_01.yml +++ b/.automation/test/github_actions/actions_bad_01.yml @@ -1,3 +1,4 @@ +--- name: Github Actions Bad on: push: diff --git a/.automation/test/github_actions/actions_good_01.yml b/.automation/test/github_actions/actions_good_01.yml index 74ef4695..a4641d2e 100644 --- a/.automation/test/github_actions/actions_good_01.yml +++ b/.automation/test/github_actions/actions_good_01.yml @@ -1,3 +1,4 @@ +--- name: GitHub Actions Good on: push: diff --git a/.automation/test/openapi/openapi_bad_1.yml b/.automation/test/openapi/openapi_bad_1.yml index 6c86b1b4..2c35ea76 100644 --- a/.automation/test/openapi/openapi_bad_1.yml +++ b/.automation/test/openapi/openapi_bad_1.yml @@ -1 +1,2 @@ +--- openapi: '3.0.0' diff --git a/.automation/test/openapi/openapi_good_1.yml b/.automation/test/openapi/openapi_good_1.yml index eb4924a1..e4fb0f10 100644 --- a/.automation/test/openapi/openapi_good_1.yml +++ b/.automation/test/openapi/openapi_good_1.yml @@ -1,3 +1,4 @@ +--- openapi: 3.0.0 info: title: Example @@ -8,6 +9,6 @@ info: description: Test for super-linter servers: - url: 'http://localhost:3000' -paths: {} +paths: { } tags: - name: example diff --git a/.automation/test/tekton/bad/tekton_bad_1.yml b/.automation/test/tekton/bad/tekton_bad_1.yml index 936ee965..19813a2a 100644 --- a/.automation/test/tekton/bad/tekton_bad_1.yml +++ b/.automation/test/tekton/bad/tekton_bad_1.yml @@ -1,3 +1,4 @@ +--- apiVersion: tekton.dev/v1beta1 kind: Task metadata: @@ -30,4 +31,4 @@ spec: mountPath: /var/run/docker.sock volumes: - name: sample-example-volume - emptyDir: {} + emptyDir: { } diff --git a/.automation/test/tekton/good/tekton_good_1.yml b/.automation/test/tekton/good/tekton_good_1.yml index 7012dceb..7c622a71 100644 --- a/.automation/test/tekton/good/tekton_good_1.yml +++ b/.automation/test/tekton/good/tekton_good_1.yml @@ -1,3 +1,4 @@ +--- apiVersion: tekton.dev/v1beta1 kind: Task metadata: @@ -30,4 +31,4 @@ spec: mountPath: /var/run/docker.sock volumes: - name: example-volume - emptyDir: {} + emptyDir: { } diff --git a/.github/linters/.ansible-lint.yml b/.github/linters/.ansible-lint.yml index 13395192..c7696a69 100644 --- a/.github/linters/.ansible-lint.yml +++ b/.github/linters/.ansible-lint.yml @@ -8,7 +8,7 @@ ############################# # Exclude paths from linter # ############################# -#exclude_paths: +# exclude_paths: ######################## # Make output parsable # @@ -23,23 +23,23 @@ quiet: true ##################### # Path to rules dir # ##################### -#rulesdir: +# rulesdir: ################ # Tags to skip # ################ skip_list: - - 'empty-string-compare' # Allow compare to empty string - - '204' # Allow string length greater than 160 chars - - 'no-changed-when' # False positives for running command shells - - 'command-instead-of-module' # Allow git commands for push, add, etc... - - 'command-instead-of-shell' # Allow use of shell when you want - - 'no-handler' # Allow step to run like handler + - 'empty-string-compare' # Allow compare to empty string + - '204' # Allow string length greater than 160 chars + - 'no-changed-when' # False positives for running command shells + - 'command-instead-of-module' # Allow git commands for push, add, etc... + - 'command-instead-of-shell' # Allow use of shell when you want + - 'no-handler' # Allow step to run like handler ################## # Tags to follow # ################## -#tags: +# tags: ############# # Use rules # diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml index 327f8bd0..9bfb975f 100644 --- a/.github/linters/.eslintrc.yml +++ b/.github/linters/.eslintrc.yml @@ -37,7 +37,8 @@ plugins: ######### # Rules # ######### -# rules: +rules: { } + ############################## # Overrides for JSON parsing # diff --git a/.github/linters/.golangci.yml b/.github/linters/.golangci.yml index a4048436..d6daab0d 100644 --- a/.github/linters/.golangci.yml +++ b/.github/linters/.golangci.yml @@ -5,8 +5,9 @@ ######################### ######################### -#configure golangci-lint -#See https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml +# configure golangci-lint +# https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml + issues: exclude-rules: - path: _test\.go @@ -26,8 +27,7 @@ linters: - revive linters-settings: errcheck: - # report about assignment of errors to blank - # identifier: `num, _ := strconv.Atoi(numStr)`; + # report about assignment of errors to blank identifier # default is false: such cases aren't reported by default. check-blank: true govet: diff --git a/.github/linters/.hadolint.yaml b/.github/linters/.hadolint.yaml index ec230881..fb662343 100644 --- a/.github/linters/.hadolint.yaml +++ b/.github/linters/.hadolint.yaml @@ -3,10 +3,10 @@ ## Hadolint config file ## ########################## ignored: - - DL4001 # Ignore wget and curl in same file - - DL4006 # ignore pipefail as we dont want to add layers - - DL3018 # We do pin version in pipfile.lock - - DL3013 # We do pin version in pipfile.lock - - DL3003 # Ignore workdir so we dont add layers - - SC2016 # ignore as its intepreted later - - DL3044 # Ignore using env in env + - DL4001 # Ignore wget and curl in same file + - DL4006 # ignore pipefail as we don't want to add layers + - DL3018 # We do pin version in pipfile.lock + - DL3013 # We do pin version in pipfile.lock + - DL3003 # Ignore workdir so we don't add layers + - SC2016 # ignore as its interpreted later + - DL3044 # Ignore using env in env diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml index 63423501..955950da 100644 --- a/.github/linters/.yaml-lint.yml +++ b/.github/linters/.yaml-lint.yml @@ -50,7 +50,7 @@ rules: key-duplicates: enable line-length: level: warning - max: 600 + max: 1024 allow-non-breakable-words: true allow-non-breakable-inline-mappings: true new-line-at-end-of-file: disable diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 24be3582..be854c55 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,5 +1,4 @@ --- -# yamllint disable rule:line-length name-template: 'v$RESOLVED_VERSION' tag-template: 'v$RESOLVED_VERSION' template: | diff --git a/.github/workflows/deploy-DEV-slim.yml b/.github/workflows/deploy-DEV-slim.yml index 087bbe52..7d40182c 100644 --- a/.github/workflows/deploy-DEV-slim.yml +++ b/.github/workflows/deploy-DEV-slim.yml @@ -202,5 +202,6 @@ jobs: -e OUTPUT_DETAILS=detailed \ -e ACTIONS_RUNNER_DEBUG=true \ -e ERROR_ON_MISSING_EXEC_BIT=true \ + -e YAML_LINTER_RULES=.github/linters/.yaml-linter.yml \ -v "${GITHUB_WORKSPACE}:/tmp/lint" \ "ghcr.io/github/super-linter:slim-${GITHUB_SHA}" diff --git a/.github/workflows/deploy-DEV-standard.yml b/.github/workflows/deploy-DEV-standard.yml index 989a3490..bbf4d28b 100644 --- a/.github/workflows/deploy-DEV-standard.yml +++ b/.github/workflows/deploy-DEV-standard.yml @@ -201,5 +201,6 @@ jobs: -e OUTPUT_DETAILS=detailed \ -e ACTIONS_RUNNER_DEBUG=true \ -e ERROR_ON_MISSING_EXEC_BIT=true \ + -e YAML_LINTER_RULES=.github/linters/.yaml-linter.yml \ -v "${GITHUB_WORKSPACE}:/tmp/lint" \ "ghcr.io/github/super-linter:${GITHUB_SHA}" diff --git a/.github/workflows/stack-linter.yml b/.github/workflows/stack-linter.yml index e32b9150..527813c0 100644 --- a/.github/workflows/stack-linter.yml +++ b/.github/workflows/stack-linter.yml @@ -16,7 +16,6 @@ on: pull_request: - ############### # Set the Job # ############### diff --git a/TEMPLATES/.ansible-lint.yml b/TEMPLATES/.ansible-lint.yml index 13395192..c7696a69 100644 --- a/TEMPLATES/.ansible-lint.yml +++ b/TEMPLATES/.ansible-lint.yml @@ -8,7 +8,7 @@ ############################# # Exclude paths from linter # ############################# -#exclude_paths: +# exclude_paths: ######################## # Make output parsable # @@ -23,23 +23,23 @@ quiet: true ##################### # Path to rules dir # ##################### -#rulesdir: +# rulesdir: ################ # Tags to skip # ################ skip_list: - - 'empty-string-compare' # Allow compare to empty string - - '204' # Allow string length greater than 160 chars - - 'no-changed-when' # False positives for running command shells - - 'command-instead-of-module' # Allow git commands for push, add, etc... - - 'command-instead-of-shell' # Allow use of shell when you want - - 'no-handler' # Allow step to run like handler + - 'empty-string-compare' # Allow compare to empty string + - '204' # Allow string length greater than 160 chars + - 'no-changed-when' # False positives for running command shells + - 'command-instead-of-module' # Allow git commands for push, add, etc... + - 'command-instead-of-shell' # Allow use of shell when you want + - 'no-handler' # Allow step to run like handler ################## # Tags to follow # ################## -#tags: +# tags: ############# # Use rules # diff --git a/TEMPLATES/.eslintrc.yml b/TEMPLATES/.eslintrc.yml index 7a9763dd..b5c6439d 100644 --- a/TEMPLATES/.eslintrc.yml +++ b/TEMPLATES/.eslintrc.yml @@ -1,5 +1,4 @@ --- - ############################# ############################# ## JavaScript Linter rules ## @@ -38,7 +37,7 @@ plugins: ######### # Rules # ######### -# rules: {} +rules: { } ############################## # Overrides for JSON parsing #