flut1/knockout-validator

View on GitHub
src/lib/rules/RuleState.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function validate has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public validate(value:any):Promise<boolean>
    {
        let validation:Promise<boolean>;
        switch(this.ruleType)
        {
Severity: Minor
Found in src/lib/rules/RuleState.ts - About 1 hr to fix

    Function constructor has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        constructor(
            name:string,
            ruleType:RuleType,
            test:any
        )
    Severity: Minor
    Found in src/lib/rules/RuleState.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status