We have a maven multimodule project. One module contains regression tests. And for this module we want to apply a rule that checks that all test cases has the package regression. Is it possible to apply one rule to a specific module?
I think the analysis property sonar.issue.enforce.multicriteria would meet this need well. It will allow you to restrict the enforcement of the rule down to just some files/directories, in which you can specify a pattern that matches only the files in your desired module.
The same property can be found in the UI under Project Settings / General / Analysis Scope at the bottom of the page.