meteor/meteor

View on GitHub

Showing 2,021 of 3,362 total issues

File d3.v3.js has 8428 lines of code (exceeds 250 allowed). Consider refactoring.
Open

d3 = function() {
  var d3 = {
    version: "3.1.4"
  };
  if (!Date.now) Date.now = function() {
Severity: Major
Found in packages/deprecated/d3/d3.v3.js - About 3 wks to fix

    Function layout has 2774 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    $.fn.layout = function (opts) {
        var
    
        // local aliases to global data
        browser    = $.layout.browser
    Severity: Major
    Found in packages/deprecated/jquery-layout/jquery.layout.js - About 1 wk to fix

      File jquery.layout.js has 3926 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /**
       * @preserve
       * jquery.layout 1.3.0 - Release Candidate 30.79
       * $Date: 2013-01-12 08:00:00 (Sat, 12 Jan 2013) $
       * $Rev: 303007 $
      Severity: Major
      Found in packages/deprecated/jquery-layout/jquery.layout.js - About 1 wk to fix

        File slow-test-data.js has 3666 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        SLOW_TEST_DATA = {
          "dependencies": [
            "meteor-platform",
            "autopublish",
            "insecure",
        Severity: Major
        Found in packages/constraint-solver/slow-test-data.js - About 1 wk to fix

          File minimongo_tests_client.js has 3101 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          import {hasOwn} from './common';
          
          // Hack to make LocalCollection generate ObjectIDs by default.
          LocalCollection._useOID = true;
          
          
          Severity: Major
          Found in packages/minimongo/minimongo_tests_client.js - About 1 wk to fix

            File mongo_livedata_tests.js has 2747 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // This is a magic collection that fails its writes on the server when
            // the selector (or inserted document) contains fail: true.
            
            var TRANSFORMS = {};
            
            
            Severity: Major
            Found in packages/mongo/mongo_livedata_tests.js - About 1 wk to fix

              File commands.js has 2245 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              var main = require('./main.js');
              var _ = require('underscore');
              var files = require('../fs/files');
              var deploy = require('../meteor-services/deploy.js');
              var buildmessage = require('../utils/buildmessage.js');
              Severity: Major
              Found in tools/cli/commands.js - About 6 days to fix

                File bundler.js has 2127 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                // == Site Archive (*.star) file layout (subject to rapid change) ==
                //
                // /star.json
                //
                //  - format: "site-archive-pre1" for this version
                Severity: Major
                Found in tools/isobuild/bundler.js - About 5 days to fix

                  File commands-packages.js has 2086 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  var main = require('./main.js');
                  var _ = require('underscore');
                  var files = require('../fs/files');
                  var buildmessage = require('../utils/buildmessage.js');
                  var auth = require('../meteor-services/auth.js');
                  Severity: Major
                  Found in tools/cli/commands-packages.js - About 5 days to fix

                    File logic_tests.js has 1530 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    
                    Tinytest.add("logic-solver - require", function (test) {
                      var s = new Logic.Solver;
                    
                      s.require('foo');
                    Severity: Major
                    Found in packages/logic-solver/logic_tests.js - About 4 days to fix

                      Function initCore has 812 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          History.initCore = function(){
                              // Initialise
                              if ( typeof History.initCore.initialized !== 'undefined' ) {
                                  // Already Loaded
                                  return false;
                      Severity: Major
                      Found in packages/deprecated/jquery-history/history.js - About 4 days to fix

                        File bootstrap.js has 1508 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /* ===================================================
                         * bootstrap-transition.js v2.3.0
                         * http://twitter.github.com/bootstrap/javascript.html#transitions
                         * ===================================================
                         * Copyright 2012 Twitter, Inc.
                        Severity: Major
                        Found in packages/deprecated/bootstrap/js/bootstrap.js - About 4 days to fix

                          File password_tests.js has 1481 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          Accounts._connectionCloseDelayMsForTests = 1000;
                          
                          function hashPassword(password) {
                            return {
                              digest: SHA256(password),
                          Severity: Major
                          Found in packages/accounts-password/password_tests.js - About 3 days to fix

                            File diff_match_patch_uncompressed.js has 1453 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /**
                             * Diff Match and Patch
                             * Copyright 2018 The diff-match-patch Authors.
                             * https://github.com/google/diff-match-patch
                             *
                            Severity: Major
                            Found in packages/test-in-browser/diff_match_patch_uncompressed.js - About 3 days to fix

                              File local_collection.js has 1383 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              import Cursor from './cursor.js';
                              import ObserveHandle from './observe_handle.js';
                              import {
                                hasOwn,
                                isIndexable,
                              Severity: Major
                              Found in packages/minimongo/local_collection.js - About 3 days to fix

                                File project-context.js has 1257 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                
                                var assert = require("assert");
                                var _ = require('underscore');
                                
                                var archinfo = require('./utils/archinfo');
                                Severity: Major
                                Found in tools/project-context.js - About 3 days to fix

                                  File import-scanner.ts has 1234 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  import assert from "assert";
                                  import {inspect} from "util";
                                  import {Script} from "vm";
                                  import {
                                    isString, isObject, isEmpty, has, keys, each, omit,
                                  Severity: Major
                                  Found in tools/isobuild/import-scanner.ts - About 3 days to fix

                                    File livedata_server.js has 1208 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    DDPServer = {};
                                    
                                    var Fiber = Npm.require('fibers');
                                    
                                    // Publication strategies define how we handle data from published cursors at the collection level
                                    Severity: Major
                                    Found in packages/ddp-server/livedata_server.js - About 3 days to fix

                                      File compiler-plugin.js has 1196 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      var archinfo = require('../utils/archinfo');
                                      var buildmessage = require('../utils/buildmessage.js');
                                      var buildPluginModule = require('./build-plugin.js');
                                      var colonConverter = require('../utils/colon-converter.js');
                                      var files = require('../fs/files');
                                      Severity: Major
                                      Found in tools/isobuild/compiler-plugin.js - About 3 days to fix

                                        File files.ts has 1176 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        ///
                                        /// utility functions for files and directories. includes both generic
                                        /// helper functions (such as rm_recursive), and meteor-specific ones
                                        /// (such as testing whether an directory is a meteor app)
                                        ///
                                        Severity: Major
                                        Found in tools/fs/files.ts - About 3 days to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language