mohayonao/SCScript

View on GitHub
src/sc/lang/compiler/codegen/function-expr.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function generateSegmentedFunctionBodyElements has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function generateSegmentedFunctionBodyElements(that, node, args) {

    var fargs = args.map(function(_, i) {
      return "_arg" + i;
    });
Severity: Minor
Found in src/sc/lang/compiler/codegen/function-expr.js - About 1 hr to fix

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

      function generateFunctionMetadata(that, info) {
        var keys = info.keys;
        var vals = info.vals;
        var args = that.interpose(keys, ";", function(item, i) {
          var result = [ keys[i] ];
    Severity: Minor
    Found in src/sc/lang/compiler/codegen/function-expr.js - About 1 hr to fix

      Function getMetaDataOfFunction has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function getMetaDataOfFunction(node) {
          var args = [];
          var keys = [];
          var vals = [];
          var remain = null;
      Severity: Minor
      Found in src/sc/lang/compiler/codegen/function-expr.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status