detekt / sonar-detekt

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

AccessDeniedException fails build even though directory isn't actually included #137

Open martinvisser opened 3 years ago

martinvisser commented 3 years ago

During a mvn sonar:sonar run an AccessDeniedException is thrown and fails the execution. The filter configuration for detekt.sonar.kotlin.filters is set to the default: **/resources/**,**/build/**,**/target/**. This would scan each and every directory, but because there is a directory in the path which isn't accessible the execution fails. I think it should just ignore such a directory, and perhaps just log a warning.

The directory is a data directory from postgres, which runs in a docker image and uses its own user and/or permissions.

The stacktrace can be found here: AccessDeniedException_stacktrace.txt