ablanco/jquery.pwstrength.bootstrap

View on GitHub
src/ui.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

    ui.getUIElements = function(options, $el) {
        var $container, result;

        if (options.instances.viewports) {
            return options.instances.viewports;
Severity: Minor
Found in src/ui.js - About 1 hr to fix

    Function updateUI has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        ui.updateUI = function(options, $el, score) {
            var cssClass, verdictText, verdictCssClass;
    
            cssClass = ui.getVerdictAndCssClass(options, score);
            verdictText = score === 0 ? '' : cssClass[0];
    Severity: Minor
    Found in src/ui.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status