-
Is it possible to exclude a specific Java/Kotlin class or file from the analysis? I don't want to exclude the whole package because there are other files under this package that I want to be analysed. I want to exclude just a specific class/file. A bit more details about my case. enum class FooBar(val value: String) {
FOO("FooValue"),
BAR("BarValue"),
} I'm mapping these enums to the response of the BE service: fun getAvailableFooBar(): List<FooBar> = client.getFooBar().responseBody() Then I'm using it as follows val fooBarValues = service.getAvailableFooBar().map { it.value } So, I'm not using enums individually, but using the So, can I exclude this particular enum class from the analysis? Or maybe I'm using enums here the wrong way? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, You can exclude files using
And about the enums themselves, your issue looks like a Kotlin Plugin issue. Is it reproducible when using in your IDE? |
Beta Was this translation helpful? Give feedback.
-
Hello, How I can exclude all migrations directories of migrations when de project has 50 apps, without relative paths version: "1.0"
Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Hello,
You can exclude files using
qodana.yaml
:And about the enums themselves, your issue looks like a Kotlin Plugin issue. Is it reproducible when using in your IDE?