Skip to content

Commit d46c446

Browse files
committed
test: adjust DebugLogConfigurator
remove the DebugLogConfigurator from the exclusion list of Timber logging, present in the ValidateLogger#no class should use Timber logging quality test. include the PlatformInitializer.android in the exclusion list of Timber logging, present in the ValidateLogger#no class should use Timber logging quality test.
1 parent 18bc49f commit d46c446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quality/konsist/src/test/kotlin/net/thunderbird/quality/ValidateLogger.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class ValidateLogger {
2727
@Test
2828
fun `no class should use Timber logging`() {
2929
projectScope.files
30-
.filterNot { it.hasNameMatching("ConsoleLogSink.android|ConsoleLogSinkTest.android".toRegex()) }
30+
.filterNot { it.hasNameMatching("ConsoleLogSink.android|ConsoleLogSinkTest.android|PlatformInitializer.android".toRegex()) }
3131
.filterNot {
3232
// Exclude legacy code that still uses Timber
33-
it.hasNameMatching("LogFileWriter|FileLoggerTree|K9|DebugLogConfigurator".toRegex())
33+
it.hasNameMatching("LogFileWriter|FileLoggerTree|K9".toRegex())
3434
}
3535
.assertFalse(
3636
additionalMessage = "No class should use timber.log.Timber import, use net.thunderbird.core.logging.Logger instead."

0 commit comments

Comments
 (0)