src/numeric-directive.js
Function numeric
has 198 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
function numeric($locale) {
// Usage:
// <input type="text" decimals="3" min="-20" max="40" formatting="false" ></input>
// Creates:
//
Function link
has 190 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
function link(scope, el, attrs, ngModelCtrl) {
var decimalSeparator = $locale.NUMBER_FORMATS.DECIMAL_SEP;
var groupSeparator = $locale.NUMBER_FORMATS.GROUP_SEP;
// Create new regular expression with current decimal separator.
Function parseViewValue
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseViewValue(value) {
if (angular.isUndefined(value)) {
value = '';
}
value = (""+value).replace(decimalSeparator, '.');
Function minmaxValidator
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function minmaxValidator(value, testValue, validityName, limit, compareFunction) {