Analysis rules and rule categories
On the Rules tab in the UI, use check boxes to select analysis types, rule categories, and rules. For example, open Java™ Code Review, select Security, and then select J2SE to display a list of security rules:
- Always create final class extending java.security.Permission
- Always declare clone () method as final
- Always make reference to System resource transient
To create an analysis configuration, you select one or more rules for each analysis type. Selecting a small set of logically related rules has several benefits, see Strategies for creating analysis configurations.
You can run rules without modification or you can modify a rule to suit your purposes. For example, you can modify the severity level setting for a rule. If the rule author allows, you can edit rule parameter values or use the rule as a template for creating custom rules through the UI.
Through the analysis API, you can create rules from scratch and assign them to unique rule categories.