mohayonao/SCScript

View on GitHub

Showing 245 of 1,712 total issues

File iterator.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function(sc) {
  "use strict";

  require("./lang");
  require("./dollar");
Severity: Minor
Found in src/sc/lang/iterator.js - About 2 hrs to fix

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

    module.exports = function(grunt) {
      "use strict";
    
      var _ = require("underscore");
      var path = require("path");
    Severity: Major
    Found in tools/grunt-tasks/build.js - About 2 hrs to fix

      Function parseForStatement has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function parseForStatement() {
              var init, test, update, left, right, body, oldInIteration;
      
              init = test = update = null;
      
      
      Severity: Major
      Found in assets/esprima.js - About 2 hrs to fix

        File Set_test.js has 253 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        describe("Collections/Set", function() {
          "use strict";
        
          var testCase = sc.test.testCase;
          var $$ = sc.test.object;
        Severity: Minor
        Found in src/sc/classlib/Collections/Set_test.js - About 2 hrs to fix

          Function parseFunctionSourceElements has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function parseFunctionSourceElements() {
                  var sourceElement, sourceElements = [], token, directive, firstRestricted,
                      oldLabelSet, oldInIteration, oldInSwitch, oldInFunctionBody;
          
                  delegate.markStart();
          Severity: Minor
          Found in assets/esprima.js - About 2 hrs to fix

            Function advanceSlash has 49 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function advanceSlash() {
                    var prevToken,
                        checkToken;
                    // Using the following algorithm:
                    // https://github.com/mozilla/sweet.js/wiki/design
            Severity: Minor
            Found in assets/esprima.js - About 1 hr to fix

              Function skipComment has 49 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function skipComment() {
                      var ch, start;
              
                      start = (index === 0);
                      while (index < length) {
              Severity: Minor
              Found in assets/esprima.js - About 1 hr to fix

                Function parseBinaryExpression has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function parseBinaryExpression() {
                        var marker, markers, expr, token, prec, stack, right, operator, left, i;
                
                        marker = createLocationMarker();
                        left = parseUnaryExpression();
                Severity: Minor
                Found in assets/esprima.js - About 1 hr to fix

                  Function generateNumber has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        function generateNumber(value) {
                          var result, point, temp, exponent, pos;
                          if (value !== value) {
                            throw new Error('Numeric literal whose value is NaN');
                          }
                  Severity: Minor
                  Found in assets/escodegen.js - About 1 hr to fix

                    Function parsePrimaryExpression has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function parsePrimaryExpression() {
                            var type, token, expr;
                    
                            if (match('(')) {
                                return parseGroupExpression();
                    Severity: Minor
                    Found in assets/esprima.js - About 1 hr to fix

                      Function parseParams has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function parseParams(firstRestricted) {
                              var param, params = [], token, stricted, paramSet, key, message;
                              expect('(');
                      
                              if (!match(')')) {
                      Severity: Minor
                      Found in assets/esprima.js - About 1 hr to fix

                        Function f has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              var f = $.Function(function(_) {
                                return [
                                  function() {
                                    return _.push(), $.Func(function() {
                                      return $$(10);
                        Severity: Minor
                        Found in src/sc/lang/bytecode_test.js - About 1 hr to fix

                          Function skipMultiLineComment has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function skipMultiLineComment() {
                                  var start, loc, ch, comment;
                          
                                  if (extra.comments) {
                                      start = index - 2;
                          Severity: Minor
                          Found in assets/esprima.js - About 1 hr to fix

                            Function SourceMapGenerator_serializeMappings has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
                                    var previousGeneratedColumn = 0;
                                    var previousGeneratedLine = 1;
                                    var previousOriginalColumn = 0;
                                    var previousOriginalLine = 0;
                            Severity: Minor
                            Found in assets/escodegen.js - About 1 hr to fix

                              Function selectParenthesesParseMethod has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                ParenthesesParser.prototype.selectParenthesesParseMethod = function() {
                                  if (this.lookahead.type === Token.Label || this.match(")")) {
                                    return function() {
                                      return this.parseEventExpression();
                                    };
                              Severity: Minor
                              Found in src/sc/lang/compiler/parser/parentheses.js - About 1 hr to fix

                                Function generateFunctionBody has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      function generateFunctionBody(node) {
                                        var result, i, len, expr, arrow;
                                        arrow = node.type === Syntax.ArrowFunctionExpression;
                                        if (arrow && node.params.length === 1 && node.params[0].type === Syntax.Identifier) {
                                          result = [generateIdentifier(node.params[0])];
                                Severity: Minor
                                Found in assets/escodegen.js - About 1 hr to fix

                                  Function CallExpression has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      CallExpression: function(node) {
                                        if (node.callee.type !== "MemberExpression") {
                                          return;
                                        }
                                        if (node.callee.property.type !== "Identifier") {
                                  Severity: Minor
                                  Found in tools/grunt-tasks/typo/args.js - About 1 hr to fix

                                    Function parseObjectProperty has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function parseObjectProperty() {
                                            var token, key, id, value, param;
                                    
                                            token = lookahead;
                                            delegate.markStart();
                                    Severity: Minor
                                    Found in assets/esprima.js - About 1 hr to fix

                                      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 parseFunctionExpression has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function parseFunctionExpression() {
                                                var token, id = null, stricted, firstRestricted, message, tmp, params = [], body, previousStrict;
                                        
                                                delegate.markStart();
                                                expectKeyword('function');
                                        Severity: Minor
                                        Found in assets/esprima.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language