modxcms/revolution

View on GitHub
manager/assets/modext/widgets/element/modx.grid.element.properties.js

Summary

Maintainability
F
2 wks
Test Coverage

File modx.grid.element.properties.js has 1082 lines of code (exceeds 250 allowed). Consider refactoring.
Open

MODx.panel.ElementProperties = function(config) {
    config = config || {};
    Ext.applyIf(config,{
        id: 'modx-panel-element-properties'
        ,title: _('properties')
Severity: Major
Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 2 days to fix

    Function ElementProperties has 132 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    MODx.grid.ElementProperties = function(config) {
        config = config || {};
        this.exp = new Ext.grid.RowExpander({
            tpl : new Ext.Template(
                '<p class="modx-property-description"><i>{desc_trans}</i></p>'
    Severity: Major
    Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 5 hrs to fix

      Function UpdateElementProperty has 118 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      MODx.window.UpdateElementProperty = function(config) {
          config = config || {};
          Ext.applyIf(config,{
              title: _('property_update')
              ,id: 'modx-window-element-property-update'
      Severity: Major
      Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 4 hrs to fix

        Function CreateElementProperty has 112 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        MODx.window.CreateElementProperty = function(config) {
            config = config || {};
            Ext.applyIf(config,{
                title: _('property_create')
                ,id: 'modx-window-element-property-create'
        Severity: Major
        Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 4 hrs to fix

          Function AddPropertySet has 70 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          MODx.window.AddPropertySet = function(config) {
              config = config || {};
              Ext.applyIf(config,{
                  title: _('propertyset_add')
                  ,id: 'modx-window-element-property-set-add'
          Severity: Major
          Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 2 hrs to fix

            Function CreateElementProperty has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
            Open

            MODx.window.CreateElementProperty = function(config) {
                config = config || {};
                Ext.applyIf(config,{
                    title: _('property_create')
                    ,id: 'modx-window-element-property-create'

            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 UpdateElementProperty has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
            Open

            MODx.window.UpdateElementProperty = function(config) {
                config = config || {};
                Ext.applyIf(config,{
                    title: _('property_update')
                    ,id: 'modx-window-element-property-update'

            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 ElementProperties has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            MODx.panel.ElementProperties = function(config) {
                config = config || {};
                Ext.applyIf(config,{
                    id: 'modx-panel-element-properties'
                    ,title: _('properties')

              Function changePropertySet has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
              Open

                  ,changePropertySet: function(cb) {
                      var ps = cb.getValue();
                      var lockbtn = Ext.getCmp('modx-btn-propset-lock');
                      if (ps == 0 || ps == _('default')) {
                          if (MODx.perm.unlock_element_properties) {

              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 save has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  ,save: function() {
                      var d = this.encode();
                      var cb = Ext.getCmp('modx-combo-property-set');
                      if (!cb) {
                          this.getStore().commitChanges();

                Function importProperties has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                Open

                    ,importProperties: function (btn,e) {
                        this.loadWindow(btn,e,{
                            xtype: 'modx-window-properties-import'
                            ,record: this.menu.record
                            ,listeners: {

                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 changePropertySet has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    ,changePropertySet: function(cb) {
                        var ps = cb.getValue();
                        var lockbtn = Ext.getCmp('modx-btn-propset-lock');
                        if (ps == 0 || ps == _('default')) {
                            if (MODx.perm.unlock_element_properties) {

                  Function ElementPropertyOption has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  MODx.grid.ElementPropertyOption = function(config) {
                      config = config || {};
                      Ext.applyIf(config,{
                          title: _('property_options')
                          ,id: 'modx-grid-element-property-options'

                    Function ImportProperties has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    MODx.window.ImportProperties = function(config) {
                        config = config || {};
                        Ext.applyIf(config,{
                            title: _('properties_import')
                            ,id: 'modx-window-properties-import'

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

                          ,getMenu: function() {
                              var def = this.isDefaultPropSet();
                      
                              var r = this.menu.record;
                              var m = [];

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

                        MODx.combo.xType = function(config) {
                            config = config || {};
                            Ext.applyIf(config,{
                                store: new Ext.data.SimpleStore({
                                    fields: ['d','v']

                          Function save has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                          Open

                              ,save: function() {
                                  var d = this.encode();
                                  var cb = Ext.getCmp('modx-combo-property-set');
                                  if (!cb) {
                                      this.getStore().commitChanges();
                          Severity: Minor
                          Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 55 mins to fix

                          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 onShow has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                          Open

                              ,onShow: function() {
                                  var g = Ext.getCmp('modx-uep-grid-element-property-options');
                                  if (!g) return;
                                  if (this.fp.getForm().findField('xtype').getValue() == 'list' || this.fp.getForm().findField('xtype').getValue() == 'color') {
                                      g.show();
                          Severity: Minor
                          Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 55 mins to fix

                          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

                          Consider simplifying this complex logical expression.
                          Open

                                  if ((r.overridden == 2 && !def) || (r.overridden != 1 && def) || (!r.overridden && !def)) {
                                      m.push({
                                          text: _('property_remove')
                                          ,scope: this
                                          ,handler: this.remove.createDelegate(this,[{
                          Severity: Major
                          Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if (t == 'combo-boolean') {
                                        v = (v == '1' || v == 'true' || v == 1 || v == true || v == _('yes') || v == 'yes') ? 1 : 0;
                                        fld.setValue(v);
                                    }
                            Severity: Major
                            Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 40 mins to fix

                              Function getMenu has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  ,getMenu: function() {
                                      var def = this.isDefaultPropSet();
                              
                                      var r = this.menu.record;
                                      var m = [];
                              Severity: Minor
                              Found in manager/assets/modext/widgets/element/modx.grid.element.properties.js - About 35 mins to fix

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

                              MODx.grid.ElementPropertyOption = function(config) {
                                  config = config || {};
                                  Ext.applyIf(config,{
                                      title: _('property_options')
                                      ,id: 'modx-grid-element-property-options'
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 265..296

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

                              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

                              Ext.extend(MODx.window.CreateElementProperty,MODx.Window,{
                                  submit: function() {
                                      var v = this.fp.getForm().getValues();
                              
                                      var g = Ext.getCmp('modx-cep-grid-element-property-options');
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 391..417

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

                              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

                              Ext.extend(MODx.grid.ElementPropertyOption,MODx.grid.LocalGrid,{
                                  create: function(btn,e) {
                                      this.loadWindow(btn,e,{
                                          xtype: 'modx-window-element-property-option-create'
                                          ,listeners: {
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 297..323

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

                              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

                                  ,removeMultiple: function(btn,e) {
                                      var rows = this.getSelectionModel().getSelections();
                                      var rids = [];
                                      for (var i=0;i<rows.length;i=i+1) {
                                          rids.push(rows[i].data.id);
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 182..195

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

                              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

                                  ,_showMenu: function(g,ri,e) {
                                      var sm = this.getSelectionModel();
                                      if (sm.getSelections().length > 1) {
                                          e.stopEvent();
                                          e.preventDefault();
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 197..212

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

                              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

                              MODx.window.CreateElementPropertyOption = function(config) {
                                  config = config || {};
                                  Ext.applyIf(config,{
                                      title: _('property_option_create')
                                      ,id: 'modx-window-element-property-option-create'
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 546..569

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

                              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

                              Ext.extend(MODx.form.ElementValueField,Ext.form.TextField,{
                                  checkValue: function(fld,nv,ov) {
                                      var t = Ext.getCmp(this.config.xtypeField).getValue();
                                      var v = fld.getValue();
                                      if (t == 'combo-boolean') {
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 638..647

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

                              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

                              Ext.extend(MODx.window.CreateElementPropertyOption,MODx.Window,{
                                  submit: function() {
                                      if (this.fp.getForm().isValid()) {
                                          if (this.fireEvent('success',this.fp.getForm().getValues())) {
                                              this.fp.getForm().reset();
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 570..581

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

                              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

                                      if (rec) {
                                          var opt = rec.data.options;
                                          var opts = [];
                                          for (var x in opt) {
                                            if (opt.hasOwnProperty(x)) {
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 524..533

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

                              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

                                  ,revertAll: function(btn,e) {
                                      Ext.Msg.confirm(_('warning'),_('property_revert_all_confirm'),function(e) {
                                          if (e == 'yes') {
                                              this.getStore().loadData(this.defaultProperties);
                                          }
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 174..180

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

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

                                      ,tools: [{
                                          id: 'plus'
                                          ,qtip: _('expand_all')
                                          ,handler: this.expandAll
                                          ,scope: this
                              manager/assets/modext/widgets/core/modx.grid.settings.js on lines 161..172
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 54..65

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

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

                                  ,_renderName: function(v,md,rec,ri) {
                                      switch (rec.data.overridden) {
                                          case 1:
                                              return '<span style="color: green;">'+v+'</span>'; break;
                                          case 2:
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 92..101
                              manager/assets/modext/workspace/lexicon/lexicon.grid.js on lines 192..201

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

                              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

                                      if ((r.overridden == 2 && !def) || (r.overridden != 1 && def) || (!r.overridden && !def)) {
                                          m.push({
                                              text: _('property_remove')
                                              ,scope: this
                                              ,handler: this.remove.createDelegate(this,[{
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 233..242

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

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

                                                      if (data[i][4]) { data[i][4] = data[i][4].replace(/&gt;/g,'>').replace(/&lt;/g,'<'); }
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 454..454
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 455..455

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

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

                                                      if (data[i][1]) { data[i][1] = data[i][1].replace(/&gt;/g,'>').replace(/&lt;/g,'<'); }
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 453..453
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 454..454

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

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

                                                      if (data[i][5]) { data[i][5] = data[i][5].replace(/&gt;/g,'>').replace(/&lt;/g,'<'); }
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 453..453
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 455..455

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

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

                                              },{
                                                  xtype: 'textfield'
                                                  ,fieldLabel: _('lexicon')
                                                  ,description: MODx.expandHelp ? '' : _('property_lexicon_desc')
                                                  ,name: 'lexicon'
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 677..685
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 690..698
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 843..851
                              manager/assets/modext/widgets/fc/modx.grid.fcset.js on lines 428..436
                              manager/assets/modext/widgets/fc/modx.grid.fcset.js on lines 442..450

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

                                              },{
                                                  xtype: 'textfield'
                                                  ,fieldLabel: _('area')
                                                  ,description: MODx.expandHelp ? '' : _('property_area_desc')
                                                  ,name: 'area'
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 677..685
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 690..698
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 830..838
                              manager/assets/modext/widgets/fc/modx.grid.fcset.js on lines 428..436
                              manager/assets/modext/widgets/fc/modx.grid.fcset.js on lines 442..450

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

                                              },{
                                                  xtype: 'textfield'
                                                  ,fieldLabel: _('lexicon')
                                                  ,description: MODx.expandHelp ? '' : _('property_lexicon_desc')
                                                  ,name: 'lexicon'
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 690..698
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 830..838
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 843..851
                              manager/assets/modext/widgets/fc/modx.grid.fcset.js on lines 428..436
                              manager/assets/modext/widgets/fc/modx.grid.fcset.js on lines 442..450

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

                                              },{
                                                  xtype: 'textfield'
                                                  ,fieldLabel: _('area')
                                                  ,description: MODx.expandHelp ? '' : _('property_area_desc')
                                                  ,name: 'area'
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 677..685
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 830..838
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 843..851
                              manager/assets/modext/widgets/fc/modx.grid.fcset.js on lines 428..436
                              manager/assets/modext/widgets/fc/modx.grid.fcset.js on lines 442..450

                              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: _('description')
                                                  ,description: MODx.expandHelp ? '' : _('property_description_desc')
                                                  ,name: 'desc'
                                                  ,id: 'modx-uep-desc'
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 637..645

                              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: _('description')
                                                  ,description: MODx.expandHelp ? '' : _('property_description_desc')
                                                  ,name: 'desc'
                                                  ,id: 'modx-cep-desc'
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 789..797

                              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

                                              'expand': {fn:function(p) {
                                                  Ext.getCmp('modx-aps-propertyset-new').setValue(true);
                                                  this.center(); // re-centers window on screen after height changed
                                              },scope:this}
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 1113..1116

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

                              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

                                              ,'collapse': {fn:function(p) {
                                                  Ext.getCmp('modx-aps-propertyset-new').setValue(false);
                                                  this.center(); // re-centers window on screen after height changed
                                              },scope:this}
                              manager/assets/modext/widgets/element/modx.grid.element.properties.js on lines 1109..1112

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

                              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

                                  ,onDirty: function() {
                                      if (this.config.panel) {
                                          Ext.getCmp(this.config.panel).fireEvent('fieldChange');
                                      }
                                  }
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 78..82

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

                              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

                                      },{
                                          header: _('value')
                                          ,dataIndex: 'value'
                                          ,id: 'value'
                                          ,width: 250
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 33..40

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

                              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

                                      if (r.overridden) {
                                          m.push({
                                              text: _('property_revert')
                                              ,scope: this
                                              ,handler: this.revert
                              manager/assets/modext/widgets/source/modx.grid.source.properties.js on lines 226..232

                              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