I don't seem to understand how "Inspections" or "Duplicates finder" runners can be configured to exclude certain files. Found this old thread but see nothing in runner configurations where I can specify a scope or anything close to that. Should it be done in IDEA? I use "Inspection profile name" which only specifies which inspections are active.
Didn't try -Didea.exclude.patterns/idea.include.patterns mentioned by Anna yet but I'd prefer a simple textarea input where I can specify patterns of files to be excluded for both "Inspections" or "Duplicates finder" runners, like the one available for "Artifact paths".