meteor/meteor

View on GitHub

Showing 3,362 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

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

              (function () {
                'use strict';
              
                // This file receives data from JSDoc via the `publish` exported function,
                // and converts it into JSON that is written to a file.
              Severity: Major
              Found in scripts/admin/jsdoc/docdata-jsdoc-template/publish.js and 1 other location - About 6 days to fix
              npm-packages/eslint-plugin-meteor/scripts/admin/jsdoc/docdata-jsdoc-template/publish.js on lines 2..166

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 1097.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

              (function () {
                'use strict';
              
                // This file receives data from JSDoc via the `publish` exported function,
                // and converts it into JSON that is written to a file.
              scripts/admin/jsdoc/docdata-jsdoc-template/publish.js on lines 2..166

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 1097.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              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

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                    process.argv.slice(2).forEach(function (fileName) {
                      var text = fs.readFileSync(fileName, "utf8");
                    
                      var outFileName = fileName.replace(/\.js$/, '') + '.md';
                      if (text.slice(0, 10) === '///!README') {
                    Severity: Major
                    Found in npm-packages/eslint-plugin-meteor/scripts/doctool.js and 1 other location - About 5 days to fix
                    scripts/doctool.js on lines 62..154

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 870.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                    process.argv.slice(2).forEach(function (fileName) {
                      var text = fs.readFileSync(fileName, "utf8");
                    
                      var outFileName = fileName.replace(/\.js$/, '') + '.md';
                      if (text.slice(0, 10) === '///!README') {
                    Severity: Major
                    Found in scripts/doctool.js and 1 other location - About 5 days to fix
                    npm-packages/eslint-plugin-meteor/scripts/doctool.js on lines 62..154

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 870.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    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
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language