TheHatSky/expressions-ts

View on GitHub
js/internals.js

Summary

Maintainability
A
1 hr
Test Coverage

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

var getFunctionExpressionParts = function (sourceCode) {
    // "function (x){ return x.test; }"
    var code = sourceCode.trim();
    if (code.indexOf(FunctionToken) != 0)
        throw Error("Expression is not a function. Code: \"" + sourceCode + "\".");
Severity: Minor
Found in js/internals.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status