A static analysis rule to apply during code analysis. Clients forward complete rule objects returned by the rulesets endpoints, so every member of that resource is declared here; only id, category, checksum, language, severity, tree_sitter_query, entity_checked, regex, type and code are read by this operation and the rest are ignored. The schema stays open so that any member beyond the forwarded rule resource is reported as a promotion candidate rather than rejected; it can be closed once that telemetry confirms none remain.

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

The configurable arguments accepted by the rule. Forwarded from the rulesets endpoints; ignored by this operation.

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.

createdAt?: Date

The date and time when the rule was created. Server-assigned by the rulesets endpoints; ignored by this operation.

createdBy?: string

The identifier of the user or system that created the rule. Server-assigned by the rulesets endpoints; ignored by this operation.

cve?: string

The CVE identifier associated with the rule. Forwarded from the rulesets endpoints; ignored by this operation.

cwe?: string

The CWE identifier associated with the rule. Forwarded from the rulesets endpoints; ignored by this operation.

description?: string

A detailed explanation of what the rule detects. Forwarded from the rulesets endpoints; ignored by this operation.

documentationUrl?: string

A URL pointing to the rule documentation. Forwarded from the rulesets endpoints; ignored by this operation.

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.

isPublished?: boolean

Whether the rule is published. Forwarded from the rulesets endpoints; ignored by this operation.

isTesting?: boolean

Whether the rule is in testing mode. Forwarded from the rulesets endpoints; ignored by this operation.

language: string

The programming language this rule targets.

lastUpdatedAt?: Date

The date and time when the rule was last modified. Server-assigned by the rulesets endpoints; ignored by this operation.

lastUpdatedBy?: string

The identifier of the user or system that last updated the rule. Server-assigned by the rulesets endpoints; ignored by this operation.

name?: string

The name of the rule. Forwarded from the rulesets endpoints; ignored by this operation.

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).

shortDescription?: string

A brief summary of what the rule detects. Forwarded from the rulesets endpoints; ignored by this operation.

shouldUseAiFix?: boolean

Whether an AI-generated fix should be offered. Forwarded from the rulesets endpoints; ignored by this operation.

The test cases associated with the rule. Forwarded from the rulesets endpoints; ignored by this operation.

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