A revision of a custom static analysis rule as embedded in a rule supplied by a create or update request. Nested revisions are sent flat, without a data/type/attributes envelope. id, version_id, checksum, created_at and created_by are server-assigned and read-only; they are declared so that a ruleset previously read back can be supplied unchanged.

Hierarchy

  • CustomRuleRevisionInput

Constructors

Properties

arguments?: Argument[]

Rule arguments

Rule category

checksum?: string

Code checksum

code?: string

Rule code

createdAt?: Date

Creation timestamp

createdBy?: string

Creator identifier

creationMessage?: string

Revision creation message

cve?: string

Associated CVE

cwe?: string

Associated CWE

description?: string

Base64-encoded full description

documentationUrl?: string

Documentation URL

id?: string

Revision identifier

isPublished?: boolean

Whether the revision should be published

isTesting?: boolean

Whether this is a testing revision

language?: Language

Programming language

Rule severity

shortDescription?: string

Base64-encoded short description

shouldUseAiFix?: boolean

Whether to use AI for fixes

tags?: string[]

Rule tags

Rule tests

treeSitterQuery?: string

Tree-sitter query

versionId?: number

Monotonically increasing version number of the revision.

Generated using TypeDoc