Change spotless to checkstyle

This commit is contained in:
Ishan Goel 2020-08-03 14:48:32 +04:00
parent 91eb58e61a
commit c0626d00fa
2 changed files with 4 additions and 4 deletions

View file

@ -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) |

View file

@ -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 #
@ -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
##################