daavelino/vulnerability-catalog

View on GitHub

Showing 888 of 888 total issues

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

tinymce.addI18n('lt',{
"Redo": "Gr\u0105\u017einti",
"Undo": "Atstatyti",
"Cut": "I\u0161kirpti",
"Copy": "Kopijuoti",
Severity: Major
Found in base/catalog/static/tinymce/langs/lt.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('hr',{
"Redo": "Ponovi",
"Undo": "Poni\u0161ti",
"Cut": "Izre\u017ei",
"Copy": "Kopiraj",
Severity: Major
Found in base/catalog/static/tinymce/langs/hr.js and 6 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/cy.js on lines 1..388
base/catalog/static/tinymce/langs/gl.js on lines 1..388
base/catalog/static/tinymce/langs/kk.js on lines 1..388
base/catalog/static/tinymce/langs/ro.js on lines 1..388
base/catalog/static/tinymce/langs/sk.js on lines 1..388
base/catalog/static/tinymce/langs/sl_SI.js on lines 1..388

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

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

tinymce.addI18n('gl',{
"Redo": "Refacer",
"Undo": "Desfacer",
"Cut": "Cortar",
"Copy": "Copiar",
Severity: Major
Found in base/catalog/static/tinymce/langs/gl.js and 6 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/cy.js on lines 1..388
base/catalog/static/tinymce/langs/hr.js on lines 1..388
base/catalog/static/tinymce/langs/kk.js on lines 1..388
base/catalog/static/tinymce/langs/ro.js on lines 1..388
base/catalog/static/tinymce/langs/sk.js on lines 1..388
base/catalog/static/tinymce/langs/sl_SI.js on lines 1..388

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

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

tinymce.addI18n('ro',{
"Redo": "Refacere",
"Undo": "Anulare",
"Cut": "Decupare",
"Copy": "Copiere",
Severity: Major
Found in base/catalog/static/tinymce/langs/ro.js and 6 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/cy.js on lines 1..388
base/catalog/static/tinymce/langs/gl.js on lines 1..388
base/catalog/static/tinymce/langs/hr.js on lines 1..388
base/catalog/static/tinymce/langs/kk.js on lines 1..388
base/catalog/static/tinymce/langs/sk.js on lines 1..388
base/catalog/static/tinymce/langs/sl_SI.js on lines 1..388

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

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

tinymce.addI18n('sl_SI',{
"Redo": "Ponovno uveljavi",
"Undo": "Razveljavi",
"Cut": "Izre\u017ei",
"Copy": "Kopiraj",
Severity: Major
Found in base/catalog/static/tinymce/langs/sl_SI.js and 6 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/cy.js on lines 1..388
base/catalog/static/tinymce/langs/gl.js on lines 1..388
base/catalog/static/tinymce/langs/hr.js on lines 1..388
base/catalog/static/tinymce/langs/kk.js on lines 1..388
base/catalog/static/tinymce/langs/ro.js on lines 1..388
base/catalog/static/tinymce/langs/sk.js on lines 1..388

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

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

tinymce.addI18n('sk',{
"Redo": "Znova",
"Undo": "Sp\u00e4\u0165",
"Cut": "Vystrihn\u00fa\u0165",
"Copy": "Kop\u00edrova\u0165",
Severity: Major
Found in base/catalog/static/tinymce/langs/sk.js and 6 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/cy.js on lines 1..388
base/catalog/static/tinymce/langs/gl.js on lines 1..388
base/catalog/static/tinymce/langs/hr.js on lines 1..388
base/catalog/static/tinymce/langs/kk.js on lines 1..388
base/catalog/static/tinymce/langs/ro.js on lines 1..388
base/catalog/static/tinymce/langs/sl_SI.js on lines 1..388

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

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

tinymce.addI18n('cy',{
"Redo": "Ailwneud",
"Undo": "Dadwneud",
"Cut": "Torri",
"Copy": "Cop\u00efo",
Severity: Major
Found in base/catalog/static/tinymce/langs/cy.js and 6 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/gl.js on lines 1..388
base/catalog/static/tinymce/langs/hr.js on lines 1..388
base/catalog/static/tinymce/langs/kk.js on lines 1..388
base/catalog/static/tinymce/langs/ro.js on lines 1..388
base/catalog/static/tinymce/langs/sk.js on lines 1..388
base/catalog/static/tinymce/langs/sl_SI.js on lines 1..388

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

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

tinymce.addI18n('kk',{
"Redo": "\u049a\u0430\u0439\u0442\u0430\u0440\u0443",
"Undo": "\u0411\u043e\u043b\u0434\u044b\u0440\u043c\u0430\u0443",
"Cut": "\u049a\u0438\u044b\u043f \u0430\u043b\u0443",
"Copy": "\u041a\u04e9\u0448\u0456\u0440\u0443",
Severity: Major
Found in base/catalog/static/tinymce/langs/kk.js and 6 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/cy.js on lines 1..388
base/catalog/static/tinymce/langs/gl.js on lines 1..388
base/catalog/static/tinymce/langs/hr.js on lines 1..388
base/catalog/static/tinymce/langs/ro.js on lines 1..388
base/catalog/static/tinymce/langs/sk.js on lines 1..388
base/catalog/static/tinymce/langs/sl_SI.js on lines 1..388

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

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

tinymce.addI18n('sl',{
"Redo": "Ponovno uveljavi",
"Undo": "Razveljavi",
"Cut": "Izre\u017ei",
"Copy": "Kopiraj",
Severity: Major
Found in base/catalog/static/tinymce/langs/sl.js and 3 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/es_ES.js on lines 1..370
base/catalog/static/tinymce/langs/it_IT.js on lines 1..370
base/catalog/static/tinymce/langs/ro_RO.js on lines 1..370

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

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

tinymce.addI18n('es_ES',{
"Redo": "Rehacer",
"Undo": "Deshacer",
"Cut": "Cortar",
"Copy": "Copiar",
Severity: Major
Found in base/catalog/static/tinymce/langs/es_ES.js and 3 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/it_IT.js on lines 1..370
base/catalog/static/tinymce/langs/ro_RO.js on lines 1..370
base/catalog/static/tinymce/langs/sl.js on lines 1..370

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

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

tinymce.addI18n('ro_RO',{
"Redo": "Refacere",
"Undo": "Anulare",
"Cut": "Decupare",
"Copy": "Copiere",
Severity: Major
Found in base/catalog/static/tinymce/langs/ro_RO.js and 3 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/es_ES.js on lines 1..370
base/catalog/static/tinymce/langs/it_IT.js on lines 1..370
base/catalog/static/tinymce/langs/sl.js on lines 1..370

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

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

tinymce.addI18n('it_IT',{
"Redo": "Ripristina",
"Undo": "Annulla",
"Cut": "Taglia",
"Copy": "Copia",
Severity: Major
Found in base/catalog/static/tinymce/langs/it_IT.js and 3 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/es_ES.js on lines 1..370
base/catalog/static/tinymce/langs/ro_RO.js on lines 1..370
base/catalog/static/tinymce/langs/sl.js on lines 1..370

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

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

CVSS.generateXMLFromMetrics = function (
  AttackVector, AttackComplexity, PrivilegesRequired, UserInteraction, Scope, Confidentiality, Integrity, Availability,
  ExploitCodeMaturity, RemediationLevel, ReportConfidence,
  ConfidentialityRequirement, IntegrityRequirement, AvailabilityRequirement,
  ModifiedAttackVector, ModifiedAttackComplexity, ModifiedPrivilegesRequired, ModifiedUserInteraction, ModifiedScope,
Severity: Major
Found in base/catalog/static/js/cvsscalc30.js and 1 other location - About 6 days to fix
base/catalog/static/cvss/calculator/cvsscalc30.js on lines 522..624

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

CVSS.generateXMLFromMetrics = function (
  AttackVector, AttackComplexity, PrivilegesRequired, UserInteraction, Scope, Confidentiality, Integrity, Availability,
  ExploitCodeMaturity, RemediationLevel, ReportConfidence,
  ConfidentialityRequirement, IntegrityRequirement, AvailabilityRequirement,
  ModifiedAttackVector, ModifiedAttackComplexity, ModifiedPrivilegesRequired, ModifiedUserInteraction, ModifiedScope,
Severity: Major
Found in base/catalog/static/cvss/calculator/cvsscalc30.js and 1 other location - About 6 days to fix
base/catalog/static/js/cvsscalc30.js on lines 522..624

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

Function 6 has 1087 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./identity":10}],6:[function(require,module,exports){
'use strict';

var xfilterArray = require('./array');
var xfilterFilter = require('./filter');
Severity: Major
Found in base/catalog/static/js/crossfilter.js - About 5 days to fix

    Function crossfilter has 1045 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function crossfilter() {
      var crossfilter = {
        add: add,
        remove: removeData,
        dimension: dimension,
    Severity: Major
    Found in base/catalog/static/js/crossfilter.js - About 5 days to fix

      File crossfilter.js has 1906 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.crossfilter = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
      module.exports = require("./src/crossfilter").crossfilter;
      
      },{"./src/crossfilter":6}],2:[function(require,module,exports){
      (function (global){
      Severity: Major
      Found in base/catalog/static/js/crossfilter.js - About 5 days to fix

        Function dimension has 854 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function dimension(value, iterable) {
        
            if (typeof value === 'string') {
              var accessorPath = value;
              value = function(d) { return result(d, accessorPath); };
        Severity: Major
        Found in base/catalog/static/js/crossfilter.js - About 4 days to fix

          Function coordinateGridMixin has 765 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          dc.coordinateGridMixin = function (_chart) {
              var GRID_LINE_CLASS = 'grid-line';
              var HORIZONTAL_CLASS = 'horizontal';
              var VERTICAL_CLASS = 'vertical';
              var Y_AXIS_LABEL_CLASS = 'y-axis-label';
          Severity: Major
          Found in base/catalog/static/js/dc.js - About 3 days to fix

            Function baseMixin has 633 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            dc.baseMixin = function (_chart) {
                _chart.__dcFlag__ = dc.utils.uniqueId();
            
                var _dimension;
                var _group;
            Severity: Major
            Found in base/catalog/static/js/dc.js - About 3 days to fix
              Severity
              Category
              Status
              Source
              Language