A static analysis rule to apply during code analysis.

Hierarchy

  • AnalysisRequestRule

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
category: string

The category of the rule (for example, BEST_PRACTICES, SECURITY).

checksum: string

A checksum of the rule definition.

code: string

The base64-encoded rule implementation code.

entityChecked?: string

The code entity type checked by the rule, applicable when rule type is AST_CHECK.

id: string

The unique identifier of the rule.

language: string

The programming language this rule targets.

regex?: string

A base64-encoded regex pattern used by the rule, applicable when rule type is REGEX.

severity: string

The severity of findings from this rule (for example, ERROR, WARNING).

treeSitterQuery: string

The base64-encoded tree-sitter query used by the rule.

type: string

The rule type indicating the detection mechanism (for example, TREE_SITTER_QUERY).

Generated using TypeDoc