wikimedia/mediawiki-core

View on GitHub
resources/src/jquery.lengthLimit.js

Summary

Maintainability
A
1 hr
Test Coverage

Function lengthLimit has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function lengthLimit( trimFn, limit, filterFunction ) {
        var allowNativeMaxlength = trimFn === trimByteLength;

        // If the first argument is the function,
        // set filterFunction to the first argument's value and ignore the second argument.
Severity: Minor
Found in resources/src/jquery.lengthLimit.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status