Skip to content

Interface: FsRegexCheckNode<THandle> ​

Defined in: ast/domain/fs-regex-check-node.ts:11

Passive AST node evaluating a forbidden regex pattern across mutated files matching targetGlobs (fs.regexCheck).

Scans mutated files during beforeStop or scoped rule verification and reports violationMessage in deficits whenever forbidPattern matches.

Extends ​

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
__handleBrand?readonlyBivariantCallback<[handle: THandle], void>Phantom type brand binding the check to its compatible scope handle type.BaseCheckASTNode.__handleBrandast/base/base-check-ast-node.ts:18
forbidFlags?readonlystringOptional regular expression flags.-ast/domain/fs-regex-check-node.ts:18
forbidPatternreadonlystringRegular expression source pattern that fails the check when matched.-ast/domain/fs-regex-check-node.ts:16
idreadonlystringLogical identifier of the check instance.BaseCheckASTNode.idast/base/base-check-ast-node.ts:16
targetGlobsreadonlyreadonly string[]Glob patterns selecting mutated files to scan.-ast/domain/fs-regex-check-node.ts:14
typereadonly"fs:regex-check"Unique string-literal discriminant of the check node.BaseCheckASTNode.typeast/base/base-check-ast-node.ts:14
violationMessagereadonlystringDiagnostic message reported in deficits when a match is found.-ast/domain/fs-regex-check-node.ts:20

Released under the MIT License.