JSON Rules Output Schema Reference

This example shows how to create a JSON-formatted output file when using the --output-file flag of the code-analyzer rules command.

This sample output shows the two rules associated with the flow engine.

Property NameData TypeDescription
namestringThe name of the rule.
descriptionstringThe description of the rule.
enginestringThe engine that's associated with the rule.
severitystringThe default severity level of the rule: 1 (Critical), 2 (High), 3 (Moderate), 4 (Low), 5 (Info)
tagsstring[]An array of tags that are associated with the rule, such as Recommended, Security, or BestPractices.
resourcesstring[]An array of URLs for additional resources and information about the rule.