mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 13:41:19 -05:00
69a45e022d
- Fail if the configuration contains USE_FIND_ALGORITHM=true and VALIDATE_ALL_CODEBASE=false because this is an unsupported configuration. Before this change, super-linter silently ignored VALIDATE_ALL_CODEBASE, leading to potentially surprising behavior.
2.7 KiB
2.7 KiB
Super-linter upgrade guide
This document helps you upgrade from a super-linter version to newer ones:
Upgrade from v5 to v6
This section helps you migrate from super-linter v5
to v6
.
Experimental batch workers
- Experimental batch support is deprecated. You can safely remove the
EXPERIMENTAL_BATCH_WORKER
variable from your configuration.
Gitleaks
- If you defined secret patterns in
.gitleaks.toml
, Gitleaks may report errors about that file. If this happens, you can configure Gitleaks to ignore that file. - Gitleaks doesn't consider the
FILTER_REGEX_EXCLUDE
,FILTER_REGEX_INCLUDE
,IGNORE_GENERATED_FILES
,IGNORE_GITIGNORED_FILES
variables. For more information about how to ignore files with Gitleaks, see the Gitleaks documentation.
Jscpd
- The
VALIDATE_JSCPD_ALL_CODEBASE
variable is deprecated. Jscpd now lints the entire workspace instead of linting files one by one. You can safely remove theVALIDATE_JSCPD_ALL_CODEBASE
variable from your configuration. - Jscpd doesn't consider the
FILTER_REGEX_EXCLUDE
,FILTER_REGEX_INCLUDE
,IGNORE_GENERATED_FILES
,IGNORE_GITIGNORED_FILES
variables. For more information about how to ignore files with Jscpd, see the Jscpd documentation.
textlint
- textlint doesn't consider the
FILTER_REGEX_EXCLUDE
,FILTER_REGEX_INCLUDE
,IGNORE_GENERATED_FILES
,IGNORE_GITIGNORED_FILES
variables. For more information about how to ignore files with textlint, see the textlint documentation.
USE_FIND_ALGORITHM and VALIDATE_ALL_CODEBASE used together
- Setting
USE_FIND_ALGORITHM
totrue
andVALIDATE_ALL_CODEBASE
tofalse
is an unsupported configuration. super-linterv5
and earlier silently ignoredVALIDATE_ALL_CODEBASE
whenUSE_FIND_ALGORITHM
is set totrue
, leading to potentially confusing behavior for users. super-linterv6
explicitly fail in this case. Remove one of the two from your configuration, depending on the desired behavior.
VALIDATE_KOTLIN_ANDROID
- The
VALIDATE_KOTLIN_ANDROID
variable has been deprecated because ktlint handles linting Kotlin files for Android using a configuration option, so super-linter doesn't need to account for this special case anymore. If you setVALIDATE_KOTLIN_ANDROID
in your configuration, change it toVALIDATE_KOTLIN
and configure ktlint to lint Android files.