Tags: Endhuine/detekt
Tags
Merge SARIF reports (detekt#3522) * Merge SARIF reports * Update docs/pages/reporting.md Co-authored-by: Nicola Corti <corti.nico@gmail.com> * Merge Gradle tasks into one * Remove DetektSarifReportMergeTest.kt * Remove SarifReportMergeTask.kt * Update Doc * Update Doc Co-authored-by: Nicola Corti <corti.nico@gmail.com>
Gradle Plugin tests should access also Maven Local (detekt#3510)
Allow using regular expressions when defining license header templates ( detekt#3486) Problem: different projects might impose different rules on license headers. It's not uncommon, for example, that a year in the license header is the year when the source file was created. This leads to a situation when different source files have different license headers (at least some parts of them differ) making it impossible to use a single static license header template to match against. This change makes it possible to define license header templates as regexps. An example of such template is: \/\/ Copyright 20[0-9]{2} Artur Bosch & Contributors which would match both // Copyright 2020 Artur Bosch & Contributors and // Copyright 2021 Artur Bosch & Contributors The way `AbsentOrWrongFileLicense` works now is controlled by the new configuration option `licenseTemplateIsRegex`: when `licenseTemplateIsRegex` is false the template is considered to be static and the old matching rules apply. If `licenseTemplateIsRegex` is set to true the new regexp based logic kicks in. To avoid breakage of existing projects, the added configuration option `licenseTemplateIsRegex` is disabled by default. This commit implements a feature requested here detekt#3100.
NamedArguments: fix false positive with varargs (detekt#3294)
PreviousNext