(sourceFile: ts.SourceFile, options: Lint.IOptions)
| 67 | private _rules: DecoratorRules; |
| 68 | |
| 69 | constructor(sourceFile: ts.SourceFile, options: Lint.IOptions) { |
| 70 | super(sourceFile, options); |
| 71 | |
| 72 | // Globs that are used to determine which files to exclude from linting. |
| 73 | const fileGlobs: string[] = options.ruleArguments[1] || []; |
| 74 | |
| 75 | this._rules = this._generateRules(options.ruleArguments[0], sourceFile.fileName); |
| 76 | this._enabled = |
| 77 | Object.keys(this._rules).length > 0 && |
| 78 | !fileGlobs.some(p => minimatch(sourceFile.fileName, p)); |
| 79 | } |
| 80 | |
| 81 | override visitClassDeclaration(node: ts.ClassDeclaration) { |
| 82 | if (this._enabled) { |
nothing calls this directly
no test coverage detected