katrotz/splitify

View on GitHub

Showing 98 of 98 total issues

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

var packageMetadata = {
  "insecure": {},
  "base64": {
    "Base64": {
      "type": "object",
Severity: Major
Found in tests/jasmine/server/unit/packageMocksSpec.js and 1 other location - About 10 mos to fix
tests/jasmine/server/unit/package-stubs.js on lines 3..13149

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

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

var packageMetadata = {
  "insecure": {},
  "base64": {
    "Base64": {
      "type": "object",
Severity: Major
Found in tests/jasmine/server/unit/package-stubs.js and 1 other location - About 10 mos to fix
tests/jasmine/server/unit/packageMocksSpec.js on lines 4..13150

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

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 (window, jasmine, $) { "use strict";

    jasmine.spiedEventsKey = function (selector, eventName) {
      return [$(selector).selector, eventName].toString()
    }
packages/meteor-jasmine/src/client/unit/assets/jasmine-jquery.js on lines 30..832

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

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 (window, jasmine, $) { "use strict";

  jasmine.spiedEventsKey = function (selector, eventName) {
    return [$(selector).selector, eventName].toString()
  }
packages/meteor-jasmine/src/client/integration/assets/jasmine-jquery.js on lines 32..834

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

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 packageMocksSpec.js has 13174 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// goal: read JSON metadata for packages and create the mocks
// DEPENDS ON GLOBAL OBJECT: 'ComponentMocker'

var packageMetadata = {
  "insecure": {},
Severity: Major
Found in tests/jasmine/server/unit/packageMocksSpec.js - About 1 mo to fix

    File package-stubs.js has 13154 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // DEPENDS ON GLOBAL OBJECT: 'ComponentMocker'
    
    var packageMetadata = {
      "insecure": {},
      "base64": {
    Severity: Major
    Found in tests/jasmine/server/unit/package-stubs.js - About 1 mo to fix

      Function initJasmineJquery has 652 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      window.initJasmineJquery = _.once(function () {
      
        /*!
        Jasmine-jQuery: a set of jQuery helpers for Jasmine tests.
      
      

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

        describe('Player', function() {
          var player;
          var song;
        
          beforeEach(function() {
        packages/meteor-jasmine/src/client/integration/sample-tests/sample/spec/PlayerSpec.js on lines 3..49
        packages/meteor-jasmine/src/client/unit/sample-tests/sample/spec/PlayerSpec.js on lines 3..49
        packages/meteor-jasmine/src/server/unit/sample-tests/sample/spec/PlayerSpec.js on lines 3..49

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

        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 4 locations. Consider refactoring.
        Open

        describe('Player', function() {
          var player;
          var song;
        
          beforeEach(function() {
        packages/meteor-jasmine/src/client/unit/sample-tests/sample/spec/PlayerSpec.js on lines 3..49
        packages/meteor-jasmine/src/server/integration/sample-tests/sample/spec/PlayerSpec.js on lines 3..49
        packages/meteor-jasmine/src/server/unit/sample-tests/sample/spec/PlayerSpec.js on lines 3..49

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

        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 4 locations. Consider refactoring.
        Open

        describe('Player', function() {
          var player;
          var song;
        
          beforeEach(function() {
        packages/meteor-jasmine/src/client/integration/sample-tests/sample/spec/PlayerSpec.js on lines 3..49
        packages/meteor-jasmine/src/server/integration/sample-tests/sample/spec/PlayerSpec.js on lines 3..49
        packages/meteor-jasmine/src/server/unit/sample-tests/sample/spec/PlayerSpec.js on lines 3..49

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

        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 4 locations. Consider refactoring.
        Open

        describe('Player', function() {
          var player;
          var song;
        
          beforeEach(function() {
        packages/meteor-jasmine/src/client/integration/sample-tests/sample/spec/PlayerSpec.js on lines 3..49
        packages/meteor-jasmine/src/client/unit/sample-tests/sample/spec/PlayerSpec.js on lines 3..49
        packages/meteor-jasmine/src/server/integration/sample-tests/sample/spec/PlayerSpec.js on lines 3..49

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

        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 jasmine-jquery.js has 654 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        window.initJasmineJquery = _.once(function () {
        
          /*!
          Jasmine-jQuery: a set of jQuery helpers for Jasmine tests.
        
        

          File jasmine-jquery.js has 652 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
          Jasmine-jQuery: a set of jQuery helpers for Jasmine tests.
          
          Version 2.1.0
          
          
          Severity: Major
          Found in packages/meteor-jasmine/src/client/unit/assets/jasmine-jquery.js - About 1 day to fix

            Function initJasmineJquery has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring.
            Open

            window.initJasmineJquery = _.once(function () {
            
              /*!
              Jasmine-jQuery: a set of jQuery helpers for Jasmine tests.
            
            

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function VelocityTestReporter has 170 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              VelocityTestReporter = function VelocityTestReporter(options) {
                var self = this,
                  timer = options.timer || noopTimer,
                  ddpParentConnection = options.ddpParentConnection,
                  ancestors = [],
            Severity: Major
            Found in packages/meteor-jasmine/src/lib/VelocityTestReporter.js - About 6 hrs to fix

              Function executeSpecsUnitMode has 104 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                runTests: function executeSpecsUnitMode() {
                  Meteor.call('velocity/reports/reset', {framework: this.name})
              
                  if (this._getTestFilesCursor().count() === 0) {
                    this._reportCompleted()
              Severity: Major
              Found in packages/meteor-jasmine/src/server/unit/ServerUnitTestFramework.js - About 4 hrs to fix

                Function KarmaVelocityReporter has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function KarmaVelocityReporter(options) {
                
                    var ddpParentConnection = options.ddpParentConnection
                    var ancestors = []
                    var tc = options.tc
                Severity: Major
                Found in packages/meteor-jasmine/src/client/unit/assets/adapter.js - About 3 hrs to fix

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

                  AuthSignInController = ApplicationController.extend({
                    template: 'signIn',
                    layoutTemplate: 'empty',
                    yieldRegions: {},
                    subscriptions: function() {},
                  Severity: Major
                  Found in lib/routing/auth/controller/main.sign.in.js and 1 other location - About 3 hrs to fix
                  lib/routing/auth/controller/main.sign.up.js on lines 1..16

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

                  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

                  AuthSignUpController = ApplicationController.extend({
                    template: 'signUp',
                    layoutTemplate: 'empty',
                    yieldRegions: {},
                    subscriptions: function() {},
                  Severity: Major
                  Found in lib/routing/auth/controller/main.sign.up.js and 1 other location - About 3 hrs to fix
                  lib/routing/auth/controller/main.sign.in.js on lines 1..16

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

                  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 4 locations. Consider refactoring.
                  Open

                      sampleTestGenerator: function () {
                        return [
                          {
                            path: 'jasmine/server/unit/sample/spec/PlayerSpec.js',
                            contents: Assets.getText('src/server/unit/sample-tests/sample/spec/PlayerSpec.js')
                  packages/meteor-jasmine/src/client/integration/ClientIntegrationTestFramework.js on lines 9..28
                  packages/meteor-jasmine/src/client/unit/ClientUnitTestFramework.js on lines 13..32
                  packages/meteor-jasmine/src/server/integration/ServerIntegrationTestFramework.js on lines 78..97

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

                  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

                  Severity
                  Category
                  Status
                  Source
                  Language