cyclomaticComplexityRule.d.ts 447B

123456789101112
  1. import * as ts from "typescript";
  2. import * as Lint from "../index";
  3. export declare class Rule extends Lint.Rules.AbstractRule {
  4. static DEFAULT_THRESHOLD: number;
  5. static MINIMUM_THRESHOLD: number;
  6. static metadata: Lint.IRuleMetadata;
  7. static FAILURE_STRING(expected: number, actual: number, name?: string): string;
  8. apply(sourceFile: ts.SourceFile): Lint.RuleFailure[];
  9. isEnabled(): boolean;
  10. private readonly threshold;
  11. }