diff --git a/Dockerfile b/Dockerfile index 6cf349ea..fe0c3e4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ ARG ARM_TTK_DIRECTORY='/usr/lib/microsoft' ARG CHECKSTYLE_VERSION='10.3.4' # Dart Linter ## stable dart sdk: https://dart.dev/get-dart#release-channels -ARG DART_VERSION='2.18.5' +ARG DART_VERSION='2.8.4' ARG GOOGLE_JAVA_FORMAT_VERSION='1.15.0' ## install alpine-pkg-glibc (glibc compatibility layer package for Alpine Linux) ARG GLIBC_VERSION='2.34-r0' diff --git a/lib/linter.sh b/lib/linter.sh index 89507972..b459ac1d 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -887,7 +887,7 @@ LINTER_COMMANDS_ARRAY['COFFEESCRIPT']="coffeelint -f ${COFFEESCRIPT_LINTER_RULES LINTER_COMMANDS_ARRAY['CPP']="cpplint" LINTER_COMMANDS_ARRAY['CSHARP']="dotnet-format --folder --check --exclude / --include" LINTER_COMMANDS_ARRAY['CSS']="stylelint --config ${CSS_LINTER_RULES}" -LINTER_COMMANDS_ARRAY['DART']="dart analyze --fatal-infos" +LINTER_COMMANDS_ARRAY['DART']="dartanalyzer --fatal-infos --fatal-warnings --options ${DART_LINTER_RULES}" LINTER_COMMANDS_ARRAY['DOCKERFILE_HADOLINT']="hadolint -c ${DOCKERFILE_HADOLINT_LINTER_RULES}" LINTER_COMMANDS_ARRAY['EDITORCONFIG']="editorconfig-checker -config ${EDITORCONFIG_LINTER_RULES}" LINTER_COMMANDS_ARRAY['ENV']="dotenv-linter"