meteor/meteor

View on GitHub

Showing 3,488 of 3,488 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 mongo_livedata_tests.js has 3700 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        import isEmpty from 'lodash.isempty';
        import isObject from 'lodash.isobject';
        import times from 'lodash.times';
        
        // This is a magic collection that fails its writes on the server when
        Severity: Major
        Found in packages/mongo/mongo_livedata_tests.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 3183 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

              Similar 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 docs/jsdoc/docdata-jsdoc-template/publish.js and 1 other location - About 6 days to fix
              v3-docs/docs/jsdoc/docdata-jsdoc-template/publish.js on lines 2..165

              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 1104.

              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

              Similar 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 v3-docs/docs/jsdoc/docdata-jsdoc-template/publish.js and 1 other location - About 6 days to fix
              docs/jsdoc/docdata-jsdoc-template/publish.js on lines 2..165

              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 1104.

              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 2387 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

                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

                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

                File bundler.js has 2136 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 2105 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 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

                    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

                    File local_collection.js has 1681 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 4 days to fix

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

                      Accounts._connectionCloseDelayMsForTests = 1000;
                      const makeTestConnAsync =
                        (test) =>
                          new Promise((resolve, reject) => {
                            makeTestConnection(
                      Severity: Major
                      Found in packages/accounts-password/password_tests.js - About 4 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
                              Severity
                              Category
                              Status
                              Source
                              Language