cwill747/angular-libphonenumber

View on GitHub

Showing 2 of 4 total issues

Function link has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      link: function(scope, element, attrs, ctrl) {
        var el = element[0];
        scope.$watch('countryCode', function() {
          ctrl.$modelValue = ctrl.$viewValue + ' ';
        });
Severity: Major
Found in src/phone-number.js - About 2 hrs to fix

Function runTests has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var runTests = function(input, nonFormatted) {
      var BS = protractor.Key.BACK_SPACE;
      var LK = protractor.Key.ARROW_LEFT;
      var DL = protractor.Key.DELETE;
      var tests = [
Severity: Major
Found in src/phone-number.e2e.js - About 2 hrs to fix
Severity
Category
Status
Source
Language