bigdatr/bd-stampy

View on GitHub

Showing 61 of 61 total issues

Function updateChildProps has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    updateChildProps: function(tabindex) {
        tabindex = tabindex || this.state.tabindex;

        var _this = this;
        var tabGroup = [];
Severity: Minor
Found in components/TabView.jsx - About 1 hr to fix

    Function getBodyData has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        getBodyData() {
            // 1. Filter search
            // 2. Sort direction
            // 3. Truncate to pagination
    
    
    Severity: Minor
    Found in components/DataTable.jsx - About 1 hr to fix

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

          propTypes: {
              defaultTab: React.PropTypes.number,
              text: React.PropTypes.string,
              transition: React.PropTypes.bool,
              onChange: React.PropTypes.func
      Severity: Major
      Found in components/TabView.jsx and 3 other locations - About 1 hr to fix
      components/ShowHide.jsx on lines 10..15
      components/Textarea.jsx on lines 8..13
      mixins/FormEventMixin.jsx on lines 4..9

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

          propTypes: {
              onClick: React.PropTypes.func,
              active: React.PropTypes.bool,
              disabled: React.PropTypes.bool,
              button: React.PropTypes.element
      Severity: Major
      Found in components/ShowHide.jsx and 3 other locations - About 1 hr to fix
      components/TabView.jsx on lines 42..47
      components/Textarea.jsx on lines 8..13
      mixins/FormEventMixin.jsx on lines 4..9

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

          propTypes: {
              placeholder: React.PropTypes.string,
              value: React.PropTypes.string,
              ref: React.PropTypes.string,
              onChange: React.PropTypes.func
      Severity: Major
      Found in components/Textarea.jsx and 3 other locations - About 1 hr to fix
      components/ShowHide.jsx on lines 10..15
      components/TabView.jsx on lines 42..47
      mixins/FormEventMixin.jsx on lines 4..9

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

          propTypes: {
              onChange: React.PropTypes.func,
              onFocus: React.PropTypes.func,
              onBlur: React.PropTypes.func,
              onKeyUp: React.PropTypes.func
      Severity: Major
      Found in mixins/FormEventMixin.jsx and 3 other locations - About 1 hr to fix
      components/ShowHide.jsx on lines 10..15
      components/TabView.jsx on lines 42..47
      components/Textarea.jsx on lines 8..13

      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

      Function _updateUrl has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
      Open

          _updateUrl: function(forcedUrl) {
              var urlChanged = false;
      
              // Skip this if we are running server side
              if (forcedUrl) {
      Severity: Minor
      Found in utils/BrowserHistory.js - About 1 hr 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 setQueryParams has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
      Open

          setQueryParams: function(params, config) {
              if (!params || typeof params !== 'object') {
                  console.warn('::UrlStore.setQueryParams', 'Missing or invalid argument `params`.', params || '');
                  return false;
              }
      Severity: Minor
      Found in utils/UrlStore.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 add has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Open

      ClassBuilder.prototype.add = function (condition, passClass, failClass) {
          if(condition !== undefined) {
              if (passClass) {
                  if (condition) {
                      this.className += ' ' + passClass;
      Severity: Minor
      Found in utils/ClassBuilder.js - About 45 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 componentClassNames has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Open

      const componentClassNames = (props, name, additionalModifiers, ...additionalClassnamesArguments) => {
      
          function createModifiers(modifiers) {
              if(!modifiers) {
                  return null;
      Severity: Minor
      Found in utils/ComponentClassNames.js - About 45 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

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

              if (this.props.onChange) {
                  this.props.onChange(e, {
                      key: this.props.name,
                      value: ''
                  });
      Severity: Minor
      Found in components/Input.jsx and 1 other location - About 45 mins to fix
      components/DatePicker.jsx on lines 123..128

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

      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 (this.props.onChange) {
                      this.props.onChange(e, {
                          key: this.props.name,
                          value: ''
                      });
      Severity: Minor
      Found in components/DatePicker.jsx and 1 other location - About 45 mins to fix
      components/Input.jsx on lines 76..81

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

      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

          onFocus: function(e) {
              if (this.props.onFocus) {
                  this.props.onFocus(e, this.getDetails());
              }
          },
      Severity: Major
      Found in mixins/FormEventMixin.jsx and 7 other locations - About 40 mins to fix
      components/Input.jsx on lines 50..54
      components/Input.jsx on lines 55..59
      components/Input.jsx on lines 60..64
      components/_Checkbox.jsx on lines 14..18
      mixins/FormEventMixin.jsx on lines 10..14
      mixins/FormEventMixin.jsx on lines 20..24
      mixins/FormEventMixin.jsx on lines 25..29

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

      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

          onFocus: function(e) {
              if (this.props.onFocus) {
                  this.props.onFocus(e, this.getDetails());
              }
          },
      Severity: Major
      Found in components/Input.jsx and 7 other locations - About 40 mins to fix
      components/Input.jsx on lines 50..54
      components/Input.jsx on lines 60..64
      components/_Checkbox.jsx on lines 14..18
      mixins/FormEventMixin.jsx on lines 10..14
      mixins/FormEventMixin.jsx on lines 15..19
      mixins/FormEventMixin.jsx on lines 20..24
      mixins/FormEventMixin.jsx on lines 25..29

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

      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

          onBlur: function(e) {
              if (this.props.onBlur) {
                  this.props.onBlur(e, this.getDetails());
              }
          },
      Severity: Major
      Found in components/Input.jsx and 7 other locations - About 40 mins to fix
      components/Input.jsx on lines 50..54
      components/Input.jsx on lines 55..59
      components/_Checkbox.jsx on lines 14..18
      mixins/FormEventMixin.jsx on lines 10..14
      mixins/FormEventMixin.jsx on lines 15..19
      mixins/FormEventMixin.jsx on lines 20..24
      mixins/FormEventMixin.jsx on lines 25..29

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

      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

          onChange: function(e) {
              if (this.props.onChange) {
                  this.props.onChange(e, this.getDetails());
              }
          },
      Severity: Major
      Found in components/Input.jsx and 7 other locations - About 40 mins to fix
      components/Input.jsx on lines 55..59
      components/Input.jsx on lines 60..64
      components/_Checkbox.jsx on lines 14..18
      mixins/FormEventMixin.jsx on lines 10..14
      mixins/FormEventMixin.jsx on lines 15..19
      mixins/FormEventMixin.jsx on lines 20..24
      mixins/FormEventMixin.jsx on lines 25..29

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

      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

          onChange: function(e) {
              if (this.props.onChange) {
                  this.props.onChange(e, this.getDetails());
              }
          },
      Severity: Major
      Found in components/_Checkbox.jsx and 7 other locations - About 40 mins to fix
      components/Input.jsx on lines 50..54
      components/Input.jsx on lines 55..59
      components/Input.jsx on lines 60..64
      mixins/FormEventMixin.jsx on lines 10..14
      mixins/FormEventMixin.jsx on lines 15..19
      mixins/FormEventMixin.jsx on lines 20..24
      mixins/FormEventMixin.jsx on lines 25..29

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

      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

          onKeyUp: function(e) {
              if (this.props.onKeyUp) {
                  this.props.onKeyUp(e, this.getDetails());
              }
          }
      Severity: Major
      Found in mixins/FormEventMixin.jsx and 7 other locations - About 40 mins to fix
      components/Input.jsx on lines 50..54
      components/Input.jsx on lines 55..59
      components/Input.jsx on lines 60..64
      components/_Checkbox.jsx on lines 14..18
      mixins/FormEventMixin.jsx on lines 10..14
      mixins/FormEventMixin.jsx on lines 15..19
      mixins/FormEventMixin.jsx on lines 20..24

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

      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

          onChange: function(e) {
              if (this.props.onChange) {
                  this.props.onChange(e, this.getDetails());
              }
          },
      Severity: Major
      Found in mixins/FormEventMixin.jsx and 7 other locations - About 40 mins to fix
      components/Input.jsx on lines 50..54
      components/Input.jsx on lines 55..59
      components/Input.jsx on lines 60..64
      components/_Checkbox.jsx on lines 14..18
      mixins/FormEventMixin.jsx on lines 15..19
      mixins/FormEventMixin.jsx on lines 20..24
      mixins/FormEventMixin.jsx on lines 25..29

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

      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

          propTypes: {
              name: React.PropTypes.string.isRequired,
              checked: React.PropTypes.bool,
              onChange: React.PropTypes.func
          },
      Severity: Minor
      Found in components/Checkbox.jsx and 1 other location - About 40 mins to fix
      components/Carousel.jsx on lines 9..13

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

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Severity
      Category
      Status
      Source
      Language