1 | import { IRuleMetadata, RuleFailure, Rules } from 'tslint/lib';
|
2 | import { SourceFile } from 'typescript/lib/typescript';
|
3 | export declare class Rule extends Rules.AbstractRule {
|
4 | static readonly metadata: IRuleMetadata;
|
5 | static readonly FAILURE_STRING = "The cyclomatic complexity exceeded the defined limit (cost '%s'). Your template should be refactored.";
|
6 | static readonly DEFAULT_MAX_COMPLEXITY = 5;
|
7 | apply(sourceFile: SourceFile): RuleFailure[];
|
8 | isEnabled(): boolean;
|
9 | }
|
10 | export declare const getFailureMessage: (maxComplexity?: number) => string;
|