Anypoint Studio - Rules Playground
Rules Playground is a tool for quick and easy development of Custom Rules
|
Features:
-
Develop/Create a custom rule definition and evaluate against the project
-
Provides feedback about any syntax errors in the rule definition
-
Capability to evaluate the rule definition on Mule components, APIs, property files, pom.xml etc
-
Publish the rule definition to configured server and activate it
Custom Rule Editor:
-
Click on
Window
→Show View
→Other
→Falcon Scan
→Custom Rule Editor
-
Custom rule editor properties -
-
Rule Name
- Name of the new custom rule -
Type
- Select the type of rule, which can be one of-
Code Smell
-
Bug
-
Vulnerability
-
Security Hotspot
-
-
Severity
- Select the rule severity, which can be one of-
Blocker
-
Critical
-
Major
-
Minor
-
Info
-
-
Rule Definition
- Groovy definition for the custom rule
-
Evaluating Custom Rule:
-
Click on
Evaluate Rule
button to validate and execute the rule definition -
Custom rule will be applied on the current project and results will be displayed in
Evaluation Results
section -
Results in case of valid rule definition
-
Results in case of syntax errors in the rule definition
Publishing Custom Rule:
Before publishing a custom rule, make sure you have:
|
-
Expand the
Publish Rule
section -
Enter the Rule Key and Description -
-
Key
- Unique key for the custom rule. The key will be auto populated, which can be changed if there are any conflicts -
Description
- Description of the rule. Markdown syntax can be used to describe the rule
-
-
Click on
Publish Rule
to upload the rule to configured server. Rule will be activated in the selected Quality Profile.