(
private _sourceFile: ts.SourceFile,
options: Lint.IOptions,
private _typeChecker: ts.TypeChecker,
)
| 21 | private _enabled: boolean; |
| 22 | |
| 23 | constructor( |
| 24 | private _sourceFile: ts.SourceFile, |
| 25 | options: Lint.IOptions, |
| 26 | private _typeChecker: ts.TypeChecker, |
| 27 | ) { |
| 28 | super(_sourceFile, options); |
| 29 | |
| 30 | // Globs that are used to determine which files to lint. |
| 31 | const fileGlobs: string[] = options.ruleArguments[0]; |
| 32 | |
| 33 | // Whether the file should be checked at all. |
| 34 | this._enabled = !fileGlobs.some(p => minimatch(_sourceFile.fileName, p)); |
| 35 | } |
| 36 | |
| 37 | override visitIdentifier(node: ts.Identifier): void { |
| 38 | if (!this._enabled) { |
nothing calls this directly
no outgoing calls
no test coverage detected