mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
Replace get_analysis_projects.groovy with kotlin script (#4033)
* replace get_analysis_projects.groovy with kotlin script * fix violations Co-authored-by: Markus Schwarz <post@markus-schwarz.net>
This commit is contained in:
6
.github/CONTRIBUTING.md
vendored
6
.github/CONTRIBUTING.md
vendored
@@ -15,9 +15,9 @@
|
||||
- ... do not forget to add the new rule to a `RuleSetProvider` (e.g. StyleGuideProvider)
|
||||
- ... do not forget to write a description for the issue of the new rule.
|
||||
- ... add the [correct KDoc](#contents-and-structure-of-a-rules-kdoc) and [annotations](#rule-annotations) to your `Rule` class. This is used to generate documentation pages and the `default-detekt-config.yml` automatically.
|
||||
- ... do not forget to test the new rule and/or add tests for any changes made to a rule.
|
||||
Run detekt on itself and other kotlin projects with the `--run-rule RuleSet:RuleId` option to test your rule in isolation.
|
||||
Make use of the `scripts/get_analysis_projects.groovy` script to automatically establish a set of analysis projects.
|
||||
- ... do not forget to test the new rule and/or add tests for any changes made to a rule. Run detekt on itself and other
|
||||
kotlin projects with the `--run-rule RuleSet:RuleId` option to test your rule in isolation. Make use of
|
||||
the `scripts/get_analysis_projects.kts` script to automatically establish a set of analysis projects.
|
||||
- ... run `./gradlew generateDocumentation` to add your rule and its config options to the `default-detekt-config.yml`.
|
||||
- ... do not forget to run `./gradlew build`. This will execute tests locally.
|
||||
- To print the AST of sources you can pass the `--print-ast` flag to the CLI which will print each
|
||||
|
||||
Reference in New Issue
Block a user