partkeepr/PartKeepr

View on GitHub
src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js

Summary

Maintainability
F
6 days
Test Coverage

File ThemeTester.js has 943 lines of code (exceeds 250 allowed). Consider refactoring.
Open

Ext.define("PartKeepr.ThemeTester", {
    extend: "Ext.panel.Panel",
    scrollable: true,

    initComponent: function () {

    Function getFormWidgets has 151 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        getFormWidgets: function () {
            return this.applySizing('formWidgets', {
                xtype: 'form',
                id: 'form-widgets',
                title: 'Form Widgets',

      Function getPanelWithToolbars has 83 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          getPanelWithToolbars: function () {
              /**
               * Toolbar with a menu
               */
              return this.applySizing('panelWithToolbars', {

        Function addFormWindow has 81 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            addFormWindow: function () {
                Ext.widget('window', {
                    x: 660,
                    y: 1230,
        
        

          `` has 24 functions (exceeds 20 allowed). Consider refactoring.
          Open

          Ext.define("PartKeepr.ThemeTester", {
              extend: "Ext.panel.Panel",
              scrollable: true,
          
              initComponent: function () {

            Function getGrid has 50 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                getGrid: function () {
                    var store = this.getStore(),
                        pagingBar = Ext.widget('pagingtoolbar', {
                            store: store,
                            displayInfo: true,

              Function getBorderLayout has 49 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  getBorderLayout: function () {
                      var padding = {
                          classic: 5,
                          partkeepr: 5,
                          gray: 5,

                Function doThemes has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    doThemes: function () {
                        var time = Ext.perf.getTimestamp(),
                            maskedPanel;
                
                        var items = [this.getBasicPanel(),

                  Function getStore has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      getStore: function () {
                          // Reverse order data should get sorted by the MemoryProxy
                          var myData = [['E.I. du Pont de Nemours and Company', 40.48, 0.51, 1.28, '9/1 12:00am'],
                              ['Citigroup, Inc.', 49.37, 0.02, 0.04, '9/1 12:00am'],
                              ['Caterpillar Inc.', 67.27, 0.92, 1.39, '9/1 12:00am'],

                    Function getAccordion has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        getAccordion: function () {
                            var tree = Ext.create('Ext.tree.Panel', {
                                title: 'TreePanel',
                                root: {
                                    text: 'Root Node',

                      Function getFramedGrid has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          getFramedGrid: function () {
                              return this.applySizing('framedGrid', {
                                  xtype: 'grid',
                                  title: 'Framed Grid',
                                  collapsible: true,

                        Function getScrollingTabs has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            getScrollingTabs: function () {
                                return this.applySizing('scrollingTabs', this.getTabs({
                                    enableTabScroll: true,
                                    plain: true,
                                    items: [{

                          Function getProgressBar has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              getProgressBar: function () {
                                  var progressbar = Ext.widget('progressbar', {
                                      value: 0.5
                                  });
                          
                          

                            Function getFramedPanel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                getFramedPanel: function () {
                                    return this.applySizing('framedPanel', {
                                        xtype: 'panel',
                                        title: 'Framed Panel',
                                        animCollapse: true,

                              Function applySizing has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  applySizing: function (id, config) {
                              
                                      var info = this.getSizing(id),
                                          keys = ['width', 'height', 'x', 'y'],
                                          len = keys.length,

                              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

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

                                  statics: {
                                      iconCls: 'fugue-icon ui-combo-box-blue',
                                      title: i18n('Theme Tester'),
                                      closable: true,
                                      menuPath: [{text: i18n("View")},
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/Statistics/StatisticsChartPanel.js on lines 83..88
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/Statistics/SummaryStatisticsPanel.js on lines 101..106

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

                              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

                                          }, {
                                              fieldLabel: 'Checkboxes',
                                              xtype: 'checkboxgroup',
                                              columns: [100, 100],
                                              items: [{
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 754..764

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

                              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

                                              }, {
                                                  fieldLabel: 'Checkboxes',
                                                  xtype: 'checkboxgroup',
                                                  columns: [100, 100],
                                                  items: [{
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 241..251

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

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

                                      plainTabs: {
                                          classic: [310, 150, 340, 960],
                                          neptune: [325, 150, 355, 1050],
                                          triton: [325, 150, 355, 1300],
                                          'neptune-touch': [350, 200, 440, 2880]
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

                                      resizer: {
                                          classic: [440, 220, 210, 1120],
                                          neptune: [440, 220, 240, 1210],
                                          triton: [340, 220, 340, 1460],
                                          'neptune-touch': [488, 314, 302, 3780]
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893

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

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

                                      framedGrid: {
                                          classic: [450, 180, 660, 1230],
                                          neptune: [500, 180, 690, 1320],
                                          triton: [500, 280, 690, 1540],
                                          'neptune-touch': [790, 300, 0, 3460]
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

                                      progressBar: {
                                          classic: [450, 200, 660, 1020],
                                          neptune: [500, 200, 690, 1110],
                                          triton: [500, 220, 690, 1310],
                                          'neptune-touch': [790, 340, 0, 3100]
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

                                      formWidgets: {
                                          classic: [630, 750, 20, 200],
                                          neptune: [660, 750, 20, 290],
                                          triton: [660, 1000, 20, 290],
                                          'neptune-touch': [790, 940, 0, 620]
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

                                      accordion: {
                                          classic: [450, 240, 660, 770],
                                          neptune: [500, 240, 690, 860],
                                          triton: [500, 340, 690, 960],
                                          'neptune-touch': [790, 340, 0, 2520]
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

                                      grid: {
                                          classic: [450, 200, 660, 560],
                                          neptune: [500, 200, 690, 650],
                                          triton: [500, 300, 690, 650],
                                          'neptune-touch': [790, 400, 0, 2100]
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 864..869
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

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

                                      scrollingTabs: {
                                          classic: [310, 150, 20, 960],
                                          neptune: [325, 150, 20, 1050],
                                          triton: [325, 150, 20, 1300],
                                          'neptune-touch': [420, 200, 0, 2880]
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 841..846
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 852..857
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 858..863
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 870..875
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 882..887
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 888..893
                              src/PartKeepr/FrontendBundle/Resources/public/js/Components/ThemeTester/ThemeTester.js on lines 894..899

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

                              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

                              There are no issues that match your filters.

                              Category
                              Status