aristath/kirki

View on GitHub

Showing 644 of 644 total issues

Function KirkiReactColorfulCircle has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const KirkiReactColorfulCircle = (props) => {
  const { color = "" } = props;
  const [value, setValue] = useState(() => color);

  // Update the local state when `color` property value is changed.

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

},{"120":120}],260:[function(_dereq_,module,exports){
_dereq_(120)('Int32', 4, function (init) {
  return function Int32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

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

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

},{"121":121,"122":122,"40":40}],257:[function(_dereq_,module,exports){
_dereq_(120)('Float32', 4, function (init) {
  return function Float32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

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

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

},{"120":120}],261:[function(_dereq_,module,exports){
_dereq_(120)('Int8', 1, function (init) {
  return function Int8Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

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

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

},{"120":120}],264:[function(_dereq_,module,exports){
_dereq_(120)('Uint8', 1, function (init) {
  return function Uint8Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930

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

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

},{"120":120}],259:[function(_dereq_,module,exports){
_dereq_(120)('Int16', 2, function (init) {
  return function Int16Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

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

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

},{"120":120}],262:[function(_dereq_,module,exports){
_dereq_(120)('Uint16', 2, function (init) {
  return function Uint16Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

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

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

},{"120":120}],263:[function(_dereq_,module,exports){
_dereq_(120)('Uint32', 4, function (init) {
  return function Uint32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5888..5895
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

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

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

},{"120":120}],258:[function(_dereq_,module,exports){
_dereq_(120)('Float64', 8, function (init) {
  return function Float64Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5881..5888
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5895..5902
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5902..5909
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5909..5916
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5916..5923
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5923..5930
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 5930..5937

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

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

},{"80":80,"83":83,"84":84}],40:[function(_dereq_,module,exports){
var global = _dereq_(46);
var core = _dereq_(30);
var hide = _dereq_(48);
var redefine = _dereq_(94);
Severity: Minor
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js - About 1 hr to fix

Function 96 has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"25":25}],96:[function(_dereq_,module,exports){
'use strict';

var regexpFlags = _dereq_(44);

Severity: Minor
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js - About 1 hr to fix

Function 86 has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

},{"30":30,"40":40,"42":42}],86:[function(_dereq_,module,exports){
var getKeys = _dereq_(83);
var toIObject = _dereq_(116);
var isEnum = _dereq_(84).f;
module.exports = function (isEntries) {
Severity: Minor
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.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 266 has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

},{"120":120}],266:[function(_dereq_,module,exports){
'use strict';
var each = _dereq_(20)(0);
var redefine = _dereq_(94);
var meta = _dereq_(70);
Severity: Minor
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.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 getVersionRanges has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

    public static function getVersionRanges($packageName)
    {
        foreach (self::getInstalled() as $installed) {
            if (!isset($installed['versions'][$packageName])) {
                continue;
Severity: Minor
Found in packages/composer/InstalledVersions.php - 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 get_colors has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

    public static function get_colors( $context = 'primary' ) {
        $colors = [
            'primary'     => [ '#ffffff', '#000000', '#f44336', '#e91e63', '#9c27b0', '#673ab7', '#3f51b5', '#2196f3', '#03a9f4', '#00bcd4', '#009688', '#4caf50', '#8bc34a', '#cddc39', '#ffeb3b', '#ffc107', '#ff9800', '#ff5722', '#795548', '#9e9e9e', '#607d8b' ],
            'red'         => [ '#ffebee', '#ffcdd2', '#ef9a9a', '#e57373', '#ef5350', '#f44336', '#e53935', '#d32f2f', '#c62828', '#b71c1c', '#ff8a80', '#ff5252', '#ff1744', '#d50000' ],
            'pink'        => [ '#fce4ec', '#f8bbd0', '#f48fb1', '#f06292', '#ec407a', '#e91e63', '#d81b60', '#c2185b', '#ad1457', '#880e4f', '#ff80ab', '#ff4081', '#f50057', '#c51162' ],
Severity: Minor
Found in packages/kirki-framework/util/src/MaterialColors.php - 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 process_output has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

    protected function process_output( $output, $value ) {
        $output = wp_parse_args(
            $output,
            [
                'element'     => '',
Severity: Minor
Found in packages/kirki-framework/field-dimensions/src/CSS/Dimensions.php - 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 __construct has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

    public function __construct( $config_id = 'global', $args = [] ) {

        // In case the user only provides 1 argument,
        // assume that the provided argument is $args and set $config_id = 'global'.
        if ( is_array( $config_id ) && empty( $args ) ) {
Severity: Minor
Found in packages/kirki-framework/compatibility/src/Field.php - 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 210 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"11":11,"16":16,"40":40,"42":42,"46":46}],210:[function(_dereq_,module,exports){
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
var $export = _dereq_(40);
var create = _dereq_(74);
var aFunction = _dereq_(11);
Severity: Minor
Found in packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js - About 1 hr to fix

Function start has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  NativeFontWatchRunner.prototype.start = function () {
    var doc = this.domHelper_.getLoadWindow().document,
        that = this;

    var start = goog.now();

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

},{"94":94}],156:[function(_dereq_,module,exports){
// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
var $export = _dereq_(40);

$export($export.P, 'Function', { bind: _dereq_(24) });
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3361..3367
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3765..3771
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3827..3833
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3843..3849
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 3978..3984
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4257..4262
packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js on lines 4815..4821

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

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