Class CustomRuleRevisionInputAttributes

Input attributes for creating or updating a custom rule revision.

Hierarchy

  • CustomRuleRevisionInputAttributes

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. Derived by the API from code; ignored on write.

code: string

Rule code

createdAt?: Date

Creation timestamp. Set by the API; ignored on write.

createdBy?: string

Creator identifier. Set by the API from the caller; ignored on write.

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. Assigned by the API; ignored on write.

Generated using TypeDoc