Skip to content

Interface: FsRegexCheckNode<THandle> ​

Defined in: core/dist/ast/domain/fs-regex-check-node.d.ts:10

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.__handleBrandcore/dist/ast/base/base-check-ast-node.d.ts:17
forbidFlags?readonlystringOptional regular expression flags.-core/dist/ast/domain/fs-regex-check-node.d.ts:16
forbidPatternreadonlystringRegular expression source pattern that fails the check when matched.-core/dist/ast/domain/fs-regex-check-node.d.ts:14
idreadonlystringLogical identifier of the check instance.BaseCheckASTNode.idcore/dist/ast/base/base-check-ast-node.d.ts:15
targetGlobsreadonlyreadonly string[]Glob patterns selecting mutated files to scan.-core/dist/ast/domain/fs-regex-check-node.d.ts:12
typereadonly"fs:regex-check"Unique string-literal discriminant of the check node.BaseCheckASTNode.typecore/dist/ast/base/base-check-ast-node.d.ts:13
violationMessagereadonlystringDiagnostic message reported in deficits when a match is found.-core/dist/ast/domain/fs-regex-check-node.d.ts:18

Released under the MIT License.