Skip to content

Commit

Permalink
Loading a specific resource from a module must use class from module (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbosch committed Jun 29, 2022
1 parent 1e696fd commit 5c39d7d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ class DefaultConfigProvider : DefaultConfigurationProvider {
private fun configInputStream(extensionsSpec: ExtensionsSpec): InputStream {
val outputStream = ByteArrayOutputStream()

requireNotNull(extensionsSpec.javaClass.getSafeResourceAsStream("/default-detekt-config.yml"))
requireNotNull(DefaultConfigProvider::class.java.getSafeResourceAsStream("/default-detekt-config.yml"))
.use { it.copyTo(outputStream) }

ExtensionFacade(extensionsSpec.plugins).pluginLoader
Expand Down

0 comments on commit 5c39d7d

Please sign in to comment.