mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-18 05:12:19 -05:00
5d6e3fcecc
Add support to run Commitlint against commit messages. It supports the current modes: - Lint the commit message of the last commit - Lint the commit messages of the pushed commits in case there is more than one pushed commit This commit also removes stuff that we used to run commitlint as a standalone tool because we can now use the commitlint instance that Super-linter ships: - lint-commit steps in lint-commit the GitHub Actions workflow - lint-commit Make target - commitlint and its dependencies in package.json and package-lock.json
46 lines
1.5 KiB
Bash
Executable file
46 lines
1.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# shellcheck disable=SC2034
|
|
LANGUAGE_ARRAY=('ANSIBLE' 'ARM' 'BASH' 'BASH_EXEC' 'CHECKOV' 'CLANG_FORMAT'
|
|
'CLOUDFORMATION' 'CLOJURE' 'COFFEESCRIPT' 'CPP' 'CSHARP'
|
|
'CSS'
|
|
"CSS_PRETTIER"
|
|
'DART'
|
|
'DOCKERFILE_HADOLINT'
|
|
"DOTNET_SLN_FORMAT_ANALYZERS"
|
|
"DOTNET_SLN_FORMAT_STYLE"
|
|
"DOTNET_SLN_FORMAT_WHITESPACE"
|
|
'EDITORCONFIG'
|
|
'ENV'
|
|
'GITHUB_ACTIONS'
|
|
'GITLEAKS' 'GHERKIN'
|
|
"GIT_COMMITLINT"
|
|
"GIT_MERGE_CONFLICT_MARKERS"
|
|
'GO' 'GO_MODULES' 'GO_RELEASER' 'GOOGLE_JAVA_FORMAT'
|
|
"GRAPHQL_PRETTIER"
|
|
'GROOVY'
|
|
'HTML'
|
|
"HTML_PRETTIER"
|
|
'JAVA'
|
|
'JAVASCRIPT_ES' 'JAVASCRIPT_PRETTIER' 'JAVASCRIPT_STANDARD' 'JSCPD' 'JSON'
|
|
"JSON_PRETTIER"
|
|
'JSONC'
|
|
"JSONC_PRETTIER"
|
|
'JSX'
|
|
"JSX_PRETTIER"
|
|
'KUBERNETES_KUBECONFORM' 'KOTLIN' 'LATEX' 'LUA' 'MARKDOWN'
|
|
"MARKDOWN_PRETTIER"
|
|
'NATURAL_LANGUAGE' 'OPENAPI' 'PERL' 'PHP_BUILTIN' 'PHP_PHPCS' 'PHP_PHPSTAN'
|
|
'PHP_PSALM' 'POWERSHELL' 'PROTOBUF' 'PYTHON_BLACK' 'PYTHON_PYLINT'
|
|
'PYTHON_FLAKE8' 'PYTHON_ISORT' 'PYTHON_MYPY' 'PYTHON_PYINK' 'PYTHON_RUFF'
|
|
'R' 'RAKU' 'RENOVATE' 'RUBY' 'RUST_2015'
|
|
'RUST_2018' 'RUST_2021' 'RUST_CLIPPY' 'SCALAFMT' 'SHELL_SHFMT'
|
|
'SNAKEMAKE_LINT' 'SNAKEMAKE_SNAKEFMT' 'STATES' 'SQLFLUFF' 'TEKTON'
|
|
'TERRAFORM_FMT' 'TERRAFORM_TFLINT' 'TERRAFORM_TERRASCAN' 'TERRAGRUNT' 'TSX'
|
|
'TYPESCRIPT_ES' 'TYPESCRIPT_PRETTIER' 'TYPESCRIPT_STANDARD'
|
|
"VUE_PRETTIER"
|
|
'XML' 'YAML'
|
|
"YAML_PRETTIER"
|
|
)
|
|
|
|
LANGUAGE_ARRAY_FOR_LINTER_RULES=("${LANGUAGE_ARRAY[@]}" "TYPESCRIPT_STANDARD_TSCONFIG")
|