In SonarQube, there is one rule for Java Resources should be closed (squid:S2095). This rule has a parameter excludedResourceTypes.
How to set this parameter?
In SonarQube, there is one rule for Java Resources should be closed (squid:S2095). This rule has a parameter excludedResourceTypes.
How to set this parameter?

One way you can set it is by going to the Administration -> Analysis Scope of your SonarQube server:
For example, if you want to restrict the following COBOL rule: "Prevent GO TO statement from transferring control outside current module" located in the directories bank/creditcard and bank/bankcard => this one requires two criteria to define it:
UPDATE
None of the SonarQube.Issue.* properties can be set by the command line since they are multivalued. Please find the official documentation here.
These are the SonarQube issue properties:
If you are looking to apply this rule to a specific SonarQube project, you can do this by going to SonarQube:
SOURCE
***UPdate 2: doing a google search looks like there is way to pass this property via POM.xml: https://stackoverflow.com/a/21825470/1766402 but not as per the official documentation.