detekt / sonar-detekt

SonarQube plugin for Kotlin
https://detekt.dev
GNU Lesser General Public License v3.0
493 stars 52 forks source link

Fix config loading and related tests #42

Closed olivierlemasle closed 6 years ago

olivierlemasle commented 6 years ago

This commit fixes tryFindDetektConfigurationFile by using String path instead of configFile.path, which is already an absolute path.

It also enables Spek (a Spek spec was added in 873800d86 but Spek was not enabled, so the spec was ignored and did not fail!).

I've also changed the spec itself, because tryFindDetektConfigurationFile looks for the config in baseDir and its parent, not in baseDir and its childs.