mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
Improve description of AbsentOrWrongFileLicense rule (#3109)
* Improve description of AbsentOrWrongFileLicense rule The new description states how the rule checks Kotlin source files against the given license header. Closes #3100 * Update grammar in description * Regenerate docs
This commit is contained in:
@@ -10,7 +10,9 @@ import io.gitlab.arturbosch.detekt.api.Severity
|
||||
import org.jetbrains.kotlin.psi.KtFile
|
||||
|
||||
/**
|
||||
* This rule will report every Kotlin source file which doesn't have required license header.
|
||||
* This rule will report every Kotlin source file which doesn't have the required license header.
|
||||
* The rule checks each Kotlin source file whether the header starts with the read text from the passed file in the
|
||||
* `licenseTemplateFile` configuration option.
|
||||
*
|
||||
* @configuration licenseTemplateFile - path to file with license header template resolved relatively to config file
|
||||
* (default: `'license.template'`)
|
||||
|
||||
@@ -11,7 +11,9 @@ of the code.
|
||||
|
||||
### AbsentOrWrongFileLicense
|
||||
|
||||
This rule will report every Kotlin source file which doesn't have required license header.
|
||||
This rule will report every Kotlin source file which doesn't have the required license header.
|
||||
The rule checks each Kotlin source file whether the header starts with the read text from the passed file in the
|
||||
`licenseTemplateFile` configuration option.
|
||||
|
||||
**Severity**: Maintainability
|
||||
|
||||
|
||||
Reference in New Issue
Block a user