Showing 16 of 34 total issues
Function create
has 309 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create() {
var options;
var maskWithoutOptionals;
var maskWithoutOptionalsLength = 0;
var maskWithoutOptionalsAndDivisorsLength = 0;
Function create
has 309 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create() {
var options;
var maskWithoutOptionals;
var maskWithoutOptionalsLength = 0;
var maskWithoutOptionalsAndDivisorsLength = 0;
File ngMask.js
has 562 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
angular.module('ngMask', []);
})();(function() {
'use strict';
Function compile
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function($element, $attrs) {
if (!$attrs.mask || !$attrs.ngModel) {
$log.info('Mask and ng-model attributes are required!');
return;
}
Function compile
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function($element, $attrs) {
if (!$attrs.mask || !$attrs.ngModel) {
$log.info('Mask and ng-model attributes are required!');
return;
}
File maskService.js
has 320 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
angular.module('ngMask')
.factory('MaskService', ['$q', 'OptionalService', 'UtilService', function($q, OptionalService, UtilService) {
function create() {
Function post
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
post: function($scope, $element, $attrs, controller) {
promise.then(function() {
// get initial options
var timeout;
var options = maskService.getOptions();
Function post
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
post: function($scope, $element, $attrs, controller) {
promise.then(function() {
// get initial options
var timeout;
var options = maskService.getOptions();
Function parseViewValue
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseViewValue(value) {
var untouchedValue = value;
// set default value equal 0
value = value || '';
Function parseViewValue
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseViewValue(value) {
var untouchedValue = value;
// set default value equal 0
value = value || '';
Function generateRegex
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateRegex(opts) {
var deferred = $q.defer();
options = opts;
try {
Function generateRegex
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateRegex(opts) {
var deferred = $q.defer();
options = opts;
try {
Function tryDivisorConfiguration
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tryDivisorConfiguration(value) {
var output = value.split('');
var defaultDivisors = true;
// has optional?
Function tryDivisorConfiguration
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tryDivisorConfiguration(value) {
var output = value.split('');
var defaultDivisors = true;
// has optional?
Function lazyProduct
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lazyProduct(sets, f, context){
if (!context){
context=this;
}
Function lazyProduct
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lazyProduct(sets, f, context){
if (!context){
context=this;
}