mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 23:32:10 -05:00
Change spotless to checkstyle
This commit is contained in:
parent
91eb58e61a
commit
c0626d00fa
2 changed files with 4 additions and 4 deletions
|
@ -58,7 +58,7 @@ Developers on **GitHub** can call the **GitHub Action** to lint their code base
|
|||
| **JavaScript** | [eslint](https://eslint.org/) [standard js](https://standardjs.com/) |
|
||||
| **JSON** | [jsonlint](https://github.com/zaach/jsonlint) |
|
||||
| **CSS** | [stylelint](https://stylelint.io/) |
|
||||
| **Java** | [Spotless](https://github.com/diffplug/spotless) |
|
||||
| **Java** | [checkstyle](https://checkstyle.org) |
|
||||
| **Kotlin** | [ktlint](https://github.com/pinterest/ktlint) |
|
||||
| **Markdown** | [markdownlint](https://github.com/igorshubovych/markdownlint-cli#readme) |
|
||||
| **OpenAPI** | [spectral](https://github.com/stoplightio/spectral) |
|
||||
|
|
|
@ -94,7 +94,7 @@ LINTER_ARRAY=("jsonlint" "yamllint" "xmllint" "markdownlint" "shellcheck"
|
|||
"pylint" "perl" "raku" "rubocop" "coffeelint" "eslint" "standard"
|
||||
"ansible-lint" "dockerfilelint" "golangci-lint" "tflint"
|
||||
"stylelint" "dotenv-linter" "pwsh" "arm-ttk" "ktlint" "protolint" "clj-kondo"
|
||||
"spectral" "cfn-lint" "dart" "htmlhint" "spotless")
|
||||
"spectral" "cfn-lint" "dart" "htmlhint" "checkstyle")
|
||||
|
||||
#############################
|
||||
# Language array for prints #
|
||||
|
@ -940,7 +940,7 @@ Footer() {
|
|||
###############################
|
||||
# Exit with 1 if errors found #
|
||||
###############################
|
||||
|
||||
|
||||
elif [ "${ERRORS_FOUND_YML}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_JSON}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_XML}" -ne 0 ] ||
|
||||
|
@ -1373,7 +1373,7 @@ if [ "$VALIDATE_JAVA" == "true" ]; then
|
|||
# Lint the JAVA files #
|
||||
#######################
|
||||
# LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY"
|
||||
LintCodebase "JAVA" "spotless" "spotless" ".*\.\(java\)\$" "${FILE_ARRAY_JAVA[@]}"
|
||||
LintCodebase "JAVA" "checkstyle" "java -jar /usr/bin/checksytle.jar" ".*\.\(java\)\$" "${FILE_ARRAY_JAVA[@]}"
|
||||
fi
|
||||
|
||||
##################
|
||||
|
|
Loading…
Reference in a new issue