We have a pretty complex project (180+ modules) and we use scopes pretty extensively to manage the inspections. I have a scope defined (Infrastructure):
However for certain classes in generated.* IDEA insists on using the Infrastructure error profile. However when I edit the scope, in the drop-down tree showing which packages are covered by it the package is correctly marked as not included. This looks like a bug, or am I missing something obvious? If it is a bug, is there a good workaround?