elboletaire/password-strength-meter

View on GitHub

Showing 6 of 11 total issues

Function Password has 226 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var Password = function ($object, options) {
    var defaults = {
      enterPass: 'Type your password',
      shortPass: 'The password is too short',
      containsField: 'The password contains your username',
Severity: Major
Found in src/password.js - About 1 day to fix

    Function init has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function init() {
          var shown = true;
          var $text = options.showText;
          var $percentage = options.showPercent;
          var $graybar = $('<div>').addClass('pass-graybar');
    Severity: Major
    Found in src/password.js - About 2 hrs to fix

      Function calculateScore has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function calculateScore(password, field) {
            var score = 0;
      
            // password < options.minimumLength
            if (password.length < options.minimumLength) {
      Severity: Minor
      Found in src/password.js - About 2 hrs to fix

        Rule doesn't have all its properties in alphabetical order.
        Open

        .pass-colorbar {
        Severity: Minor
        Found in src/password.css by csslint

        Parsing error: The keyword 'const' is reserved
        Open

        const gulp = require('gulp'),
        Severity: Minor
        Found in gulpfile.js by eslint

        For more information visit Source: http://eslint.org/docs/rules/

        Rule doesn't have all its properties in alphabetical order.
        Open

        .pass-graybar {
        Severity: Minor
        Found in src/password.css by csslint
        Severity
        Category
        Status
        Source
        Language