Attributes of a custom rule revision, including code, metadata, and test cases.

Hierarchy

  • CustomRuleRevisionAttributes

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
arguments: null | 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

Full description

documentationUrl?: string

Documentation URL

isPublished: boolean

Whether the revision is published

isTesting: boolean

Whether this is a testing revision

language: Language

Programming language

Rule severity

shortDescription: string

Short description

shouldUseAiFix: boolean

Whether to use AI for fixes

tags: null | string[]

Rule tags

tests: null | CustomRuleRevisionTest[]

Rule tests

treeSitterQuery: string

Tree-sitter query

versionId: number

Monotonically increasing version number of the revision.

Generated using TypeDoc