JetBrains / Qodana

📝 Source repository of Qodana Help
https://www.jetbrains.com/help/qodana
Apache License 2.0
392 stars 67 forks source link

Exclude not working #242

Closed Inaki74 closed 7 months ago

Inaki74 commented 8 months ago

Discussed in https://github.com/JetBrains/Qodana/discussions/109

Originally posted by **burberius** July 29, 2022 I try to scan a project on GitLab CI with Qodana and specified the Qodana cache into the project folder so it can be cached by GitLab CI. But Qodana also scans the Gradle in there and finds some hundret problems. So I tried to exclude it with, but that is not recognized! I tried relative paths, absolute and also tried to exclude some of the project files, but it was all ignored! ``` version: "1.0" profile: name: qodana.recommended exclude: - name: ALL paths: - qodana/cache ``` Can it be broken in the latest release? Unfortunatelly I couldn't verify it by using an old one...

Hi, I've been having this problem so I decided to revive this issue.

This is my exclude in my qodana.yaml: image

Which should be working, however when I see the actual files being analyzed I see this: image

Getting the GameAssembly is ok since its within the Assets/Project/Code folder, the one I'm interested in. However Its getting the contents of the Library folder, which I told Qodana to ignore specifically.

Am I doing something wrong here? Thanks for the help in advance.

Inaki74 commented 8 months ago

Ah, in case it is needed, here is my whole qodana.yaml file as an image because for some reason its not showing as code:

image

Inaki74 commented 7 months ago

Bump

tiulpin commented 7 months ago

So I tried to exclude it with, but that is not recognized! I tried relative paths, absolute and also tried to exclude some of the project files, but it was all ignored!

Hello! Could you please also share your GitLab configuration? Our default example there is with .qodana directory, not qodana, maybe that's why the exclude is not working as expected