forked from barnstee/UA-CloudPublisher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tools): add runSuperlinterLocal
- Loading branch information
1 parent
955dfee
commit 021d23e
Showing
1 changed file
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
#!/bin/bash | ||
|
||
# Get the current directory | ||
REPO_DIR=$(pwd) | ||
echo "$REPO_DIR" | ||
|
||
# Run the Docker container with the specified environment variables and volume mount | ||
docker run \ | ||
-e FILTER_REGEX_EXCLUDE="deps/*" \ | ||
-e IGNORE_GITIGNORED_FILES=true \ | ||
-e LOG_LEVEL=INFO \ | ||
-e DEFAULT_BRANCH=origin/develop \ | ||
-e RUN_LOCAL=true \ | ||
-e VALIDATE_ANSIBLE=false \ | ||
-e VALIDATE_ARM=false \ | ||
-e VALIDATE_BASH=false \ | ||
-e VALIDATE_BASH_EXEC=false \ | ||
-e VALIDATE_CPP=false \ | ||
-e VALIDATE_CHECKOV=false \ | ||
-e VALIDATE_CLANG_FORMAT=false \ | ||
-e VALIDATE_CLOJURE=false \ | ||
-e VALIDATE_CLOUDFORMATION=false \ | ||
-e VALIDATE_COFFEESCRIPT=false \ | ||
-e VALIDATE_CSHARP=true \ | ||
-e VALIDATE_CSS=false \ | ||
-e VALIDATE_DART=false \ | ||
-e VALIDATE_DOCKERFILE_HADOLINT=false \ | ||
-e VALIDATE_EDITORCONFIG=false \ | ||
-e VALIDATE_ENV=false \ | ||
-e VALIDATE_GHERKIN=false \ | ||
-e VALIDATE_GITHUB_ACTIONS=false \ | ||
-e VALIDATE_GITLEAKS=false \ | ||
-e VALIDATE_GO=false \ | ||
-e VALIDATE_GO_MODULES=false \ | ||
-e VALIDATE_GO_RELEASER=false \ | ||
-e VALIDATE_GOOGLE_JAVA_FORMAT=false \ | ||
-e VALIDATE_GROOVY=false \ | ||
-e VALIDATE_HTML=false \ | ||
-e VALIDATE_JAVA=false \ | ||
-e VALIDATE_JAVASCRIPT_ES=false \ | ||
-e VALIDATE_JAVASCRIPT_STANDARD=false \ | ||
-e VALIDATE_JSCPD=false \ | ||
-e VALIDATE_JSON=false \ | ||
-e VALIDATE_JSX=false \ | ||
-e VALIDATE_KOTLIN=false \ | ||
-e VALIDATE_KUBERNETES_KUBECONFORM=false \ | ||
-e VALIDATE_LATEX=false \ | ||
-e VALIDATE_LUA=false \ | ||
-e VALIDATE_MARKDOWN=false \ | ||
-e VALIDATE_NATURAL_LANGUAGE=false \ | ||
-e VALIDATE_OPENAPI=false \ | ||
-e VALIDATE_PERL=false \ | ||
-e VALIDATE_PHP=false \ | ||
-e VALIDATE_PHP_BUILTIN=false \ | ||
-e VALIDATE_PHP_PHPCS=false \ | ||
-e VALIDATE_PHP_PHPSTAN=false \ | ||
-e VALIDATE_PHP_PSALM=false \ | ||
-e VALIDATE_POWERSHELL=false \ | ||
-e VALIDATE_PROTOBUF=false \ | ||
-e VALIDATE_PYTHON=false \ | ||
-e VALIDATE_PYTHON_BLACK=false \ | ||
-e VALIDATE_PYTHON_FLAKE8=false \ | ||
-e VALIDATE_PYTHON_ISORT=false \ | ||
-e VALIDATE_PYTHON_MYPY=false \ | ||
-e VALIDATE_PYTHON_PYLINT=false \ | ||
-e VALIDATE_PYTHON_RUFF=false \ | ||
-e VALIDATE_R=false \ | ||
-e VALIDATE_RAKU=false \ | ||
-e VALIDATE_RENOVATE=false \ | ||
-e VALIDATE_RUBY=false \ | ||
-e VALIDATE_RUST_2015=false \ | ||
-e VALIDATE_RUST_2018=false \ | ||
-e VALIDATE_RUST_2021=false \ | ||
-e VALIDATE_RUST_CLIPPY=false \ | ||
-e VALIDATE_SCALAFMT=false \ | ||
-e VALIDATE_SHELL_SHFMT=false \ | ||
-e VALIDATE_SNAKEMAKE_LINT=false \ | ||
-e VALIDATE_SNAKEMAKE_SNAKEFMT=false \ | ||
-e VALIDATE_STATES=false \ | ||
-e VALIDATE_SQL=false \ | ||
-e VALIDATE_SQLFLUFF=false \ | ||
-e VALIDATE_TEKTON=false \ | ||
-e VALIDATE_TERRAFORM_FMT=false \ | ||
-e VALIDATE_TERRAFORM_TERRASCAN=false \ | ||
-e VALIDATE_TERRAFORM_TFLINT=false \ | ||
-e VALIDATE_TERRAGRUNT=false \ | ||
-e VALIDATE_TSX=false \ | ||
-e VALIDATE_TYPESCRIPT_ES=false \ | ||
-e VALIDATE_TYPESCRIPT_STANDARD=false \ | ||
-e VALIDATE_XML=false \ | ||
-e VALIDATE_YAML=true \ | ||
-v "$REPO_DIR:/tmp/lint" -it --rm ghcr.io/super-linter/super-linter:v6.6.0 | ||
|
||
# -e VALIDATE_ALL_CODEBASE=true \ |