TheHatSky/expressions-ts

View on GitHub

Showing 3 of 3 total issues

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

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

    const getFunctionExpressionParts = (sourceCode: string) : ExpressionParts =>
    {
        // "function (x){ return x.test; }"
    
        let code = sourceCode.trim();
    Severity: Minor
    Found in ts/internals.ts - About 1 hr to fix

      Function exports has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(config) {
        config.set({
          // frameworks to use
          // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
          frameworks: ['jasmine', 'karma-typescript'],
      Severity: Minor
      Found in karma.conf.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language