Showing 235 of 1,771 total issues

Avoid too many return statements within this function.
Open

  return false;
Severity: Major
Found in public/external/chart.js/dist/chart.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

        return elem[ name ];
Severity: Major
Found in public/external/jquery/dist/jquery.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

if("illegal"===r.type&&""===o)return 1
;if(R>1e5&&R>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
Severity: Major
Found in public/external/@highlightjs/cdn-assets/highlight.min.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

        return value(currentNode);
Severity: Major
Found in public/external/@shopify/draggable/build/umd/index.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                    return check && result.indexOf( check ) > -1;
Severity: Major
Found in public/external/jquery/dist/jquery.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                    return check && result.slice( -check.length ) === check;
Severity: Major
Found in public/external/jquery/dist/jquery.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                    return parsed && parsed.getTime() === dateToCheck.getTime()
                        ? bool
                        : !bool;
Severity: Major
Found in public/external/flatpickr/dist/flatpickr.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return bool;
Severity: Major
Found in public/js/vendor-vue-flatpickr.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return;
Severity: Major
Found in public/js/vendor-vue-flatpickr.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

        return [];
Severity: Major
Found in public/external/@shopify/draggable/build/umd/index.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                    return ( " " + result.replace( rwhitespace, " " ) + " " )
                        .indexOf( check ) > -1;
Severity: Major
Found in public/external/jquery/dist/jquery.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

          return "";
Severity: Major
Found in public/external/flatpickr/dist/l10n/cy.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

        return false;
Severity: Major
Found in public/external/@shopify/draggable/build/umd/index.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return sortInput ?
                ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
                0;
Severity: Major
Found in public/external/jquery/dist/jquery.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                    return bool;
Severity: Major
Found in public/external/flatpickr/dist/flatpickr.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return this.isComponent;
Severity: Major
Found in public/js/atk-vue-query-builder.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                    return result === check || result.slice( 0, check.length + 1 ) === check + "-";
Severity: Major
Found in public/external/jquery/dist/jquery.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

                    return bool;
Severity: Major
Found in public/external/flatpickr/dist/flatpickr.js - About 30 mins to fix

The method url() has an NPath complexity of 864. The configured NPath complexity threshold is 200.
Open

    public function url($page = [], array $extraRequestUrlArgs = []): string
    {
        if (is_string($page)) {
            $pageExploded = explode('?', $page, 2);
            parse_str($pageExploded[1] ?? '', $page);
Severity: Minor
Found in src/App.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

The method _typecastLoadField() has an NPath complexity of 1260. The configured NPath complexity threshold is 200.
Open

    protected function _typecastLoadField(Field $field, $value)
    {
        switch ($field->type) {
            case 'boolean':
                if (is_string($value)) {
Severity: Minor
Found in src/Persistence/Ui.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

Severity
Category
Status
Source
Language