The "Analysis Scope" field from RSPEC, which specifies whether a rule applies to main sources, test source or both should be made visible on SonarQube when looking at a rule description.
For the sake of clarity the scope should be labeled as:
- Main sources
- Test sources
- Main and Test sources
Attached is mockup of what it could look like.
Scope is defined in the rule metadata as specified in the following schema:
If the scope is not defined then the default value should be "Main sources".