Open BraisGabin opened 2 weeks ago
It's easy to find the basePath on the detekt API.
I would vote to add a val basePath: Path inside SetupContext and use it instead of getOrNull(DETEKT_OUTPUT_REPORT_BASE_PATH_KEY).
val basePath: Path
SetupContext
getOrNull(DETEKT_OUTPUT_REPORT_BASE_PATH_KEY)
It's not, we are storing in an user property and you need to know the constant to read its value.
https://github.com/detekt/detekt/pull/7234#discussion_r1581766941
Expected Behavior
It's easy to find the basePath on the detekt API.
I would vote to add a
val basePath: Path
insideSetupContext
and use it instead ofgetOrNull(DETEKT_OUTPUT_REPORT_BASE_PATH_KEY)
.Current Behavior
It's not, we are storing in an user property and you need to know the constant to read its value.
Context
https://github.com/detekt/detekt/pull/7234#discussion_r1581766941