Custom Rules
Manage Custom Rules
In case of an On-Premises or Hybrid installation model:
Navigate to your organization-specific service URL instead of https://analyzer.integralzone.com
Choosing an organization will not be required after login
Before creating a custom rule, make sure you have:
Created a custom Quality Profile from the default Profile. Refer to Create Custom Quality Profile for more information
In case of an On-Premises or Hybrid installation model, navigate to your organization-specific service URL instead of https://analyzer.integralzone.com
Create Custom Rule:
Click on
Rules->Show Templates Only->Create Custom Mule Rule
Registry Keywordsdetails the list of all available variables that can be used in the groovy script, while defining a custom ruleClick on
Createto start defining a custom rule
Fill in all the required attributes. Refer to Custom Rule Attributes for more information
Click on
Createto create the custom rule
Rules should be activated in at least one of the custom Quality Profiles for it to be applied on the projects being scanned (usually the default Quality Profile). Follow the below steps to activate the rule:
Select the custom rule created earlier
Click on
ActivateSelect the
Quality Profilein which the rule should be activated and click onActivate
Custom Rule Attributes:
Name- Name of the new custom ruleKey- Unique key for the custom rule. The key will be auto populated, which can be changed if there are any conflictsType- Select the type of rule, which can be one ofCode Smell
Bug
Vulnerability
Security Hotspot
Severity- Select the rule severity, which can be one ofBlocker
Critical
Major
Minor
Info
Implementation- Actual groovy script for the rule definitionDescription- Description of the rule. Markdown syntax can be used to describe the rule. Few examples include
+this text is bold+
this text is bold
+https://analyzer.integralzone.com/+
https://analyzer.integralzone.com/
Edit Custom Rule:
Click on
Rules-> Select languageMule->Search for rule name
Select a rule to edit
Update the required fields and click on
Save. Refer to Custom Rule Attributes for more information
See Also
For Activating custom rules - Activate Rules
For Deactivating custom rules - Deactivate Rules
Last updated
Was this helpful?

