You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A project using kotlin's new source directory structure does not enforce rules like lateinitusage for files in src/androidUnitTest/** and src/androidInstrumentedTest/** when using the default configuration.
Current Behavior
rules that are excluded by tests in the default config should also be excluded in the new test folder structure.
The default detekt configuration file excludes a bunch of different variants of test source sets by default.
It would be nice to either add the new androidUnitTest and androidInstrumentedTest to those defaults as well, or maybe even better, build in support for defaulting all test source sets to be excluded (not sure how feasible that is).
The text was updated successfully, but these errors were encountered:
It would be nice to either add the new androidUnitTest and androidInstrumentedTest to those defaults as well, or maybe even better, build in support for defaulting all test source sets to be excluded (not sure how feasible that is).
I believe the best would be to add **/androidUnitTest/** and **/androidInstrumentedTest/** to our default excludes as suggested 👍
Expected Behavior
A project using kotlin's new source directory structure does not enforce rules like
lateinitusage
for files insrc/androidUnitTest/**
andsrc/androidInstrumentedTest/**
when using the default configuration.Current Behavior
rules that are excluded by tests in the default config should also be excluded in the new test folder structure.
Context
Kotlin 1.8 introduces a new folder structure https://kotlinlang.org/docs/whatsnew18.html#sourcedirectories
The default detekt configuration file excludes a bunch of different variants of test source sets by default.
It would be nice to either add the new
androidUnitTest
andandroidInstrumentedTest
to those defaults as well, or maybe even better, build in support for defaulting all test source sets to be excluded (not sure how feasible that is).The text was updated successfully, but these errors were encountered: