categoryForRule function

String? categoryForRule(
  1. String ruleName
)

Returns the category slug for ruleName (e.g. core, security, packages), derived from the source file's parent directory. Returns null if the rule is not in the generated category map.

Implementation

String? categoryForRule(String ruleName) => ruleCategoryMap[ruleName];