sebastian-software/core

View on GitHub
source/class/core/Interface.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function assert has 93 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        assert : function(objectOrClass, iface)
        {
            if (!objectOrClass) {
                throw new Error("Invalid class or object to verify interface with: " + objectOrClass);
            }
Severity: Major
Found in source/class/core/Interface.js - About 3 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                                if (!(cMember instanceof Function)) {
                                    throw new Error(commonErrMsg + "Different member types in: " + name + "! Expecting a function!");
                                } else if (!removedUnusedArgs && iMember.length != cMember.length) {
                                    throw new Error(commonErrMsg + "Different number of arguments in function '" + name + "'. Expecting " + iMember.length + "!");
                                }
    Severity: Major
    Found in source/class/core/Interface.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status