Files
detekt/detekt-api/api
marschwar 16b66586bc Allow users and rule authors to specify a reason per configured value (#4611)
* implement first idea on values with reasons

* have ExplainedValues implement List by delegation

* Parse explained value defaults

* fix error message

* [WIP] support ExplainedValues in yaml

* print markdown value in DefaultValue directly

* quote values in yaml maps

* Update detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/ConfigProperty.kt

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/ConfigProperty.kt

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* add test case for missing reason

* fail fast in case of invalid configuration

* rename explainedValues to valuesWithReason

* add api documentation

* resolve and suppress code smells

* suppress UNCHECKED_CAST

* merge RuleCollectorSpec

* reformat spec

* fix indentation of test code

Co-authored-by: Markus Schwarz <post@markus-schwarz.net>
Co-authored-by: Brais Gabín <braisgabin@gmail.com>
2022-06-01 21:19:28 +02:00
..