include/exclude patterns for inspections in multi-module project

I'm having a problem getting TC to exclude some parts of a multi-module maven project from running inspections. We have a large and deeply nested structure like this:

root
  |---a
  |    |---b
  |    |    \----c
  |    |          \---src/main/java....
  |    \---d
  |         \---src/main/kotlin....
  |---e
       \---src/main/java....
  .... etc

The project is a mixture of java and kotlin modules, and we want to exclude some of the kotlin modules from running inspections for the time being. We have tried every variation of exclusion patterns that we can think of but the documentation is extremely vague and nothing works. It seems to imply that the exclusion paths are relative to the individual module root - which would suggest that I need to be excluding with a pattern like:

-:/src/main/kotlin/**

But this doesn't seem to work and it's not sufficient for us because we don't want to blanket exclude all the kotlin modules anyway. We need to be able to exclude specific modules. Paths relative to the root of the whole project don't seem to work either:

-:/a/b/c/**

I was wondering if we needed something like:

-:[c]/** 

but that doesn't seem to work + our leaf artifact ids are not globally unique without the group id in front of them. Is there anywhere where this stuff is _properly_ documented with a wide range of examples. Does anyone know how this is _supposed_ to work?

0

Please sign in to leave a comment.