Showing 297 of 530 total issues
Function validate
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
Function validate
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
File theme.js
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var models = require("./models");
var glob = require("glob");
var changeCase = require("change-case");
var fs = require("fs");
var internals = {};
Function _bg
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_bg: function(value) {
if (/^BG[0-9]{9,10}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9,10}$/.test(value)) {
File angular-sanitize.js
has 285 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.2.24
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
Function _bg
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_bg: function(value) {
if (/^BG[0-9]{9,10}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9,10}$/.test(value)) {
Function doList
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
commandProto.doList = function (chunk, postProcessing, isNumberedList) {
// These are identical except at the very beginning and end.
// Should probably use the regex extension function to make this clearer.
var previousItemsRegex = /(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/;
Function _cz
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_cz: function(value) {
if (/^CZ[0-9]{8,10}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8,10}$/.test(value)) {
Function _cz
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_cz: function(value) {
if (/^CZ[0-9]{8,10}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8,10}$/.test(value)) {
Function exports
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
var ThemeSetting = sequelize.define("ThemeSetting", {
headerfilename: {
type: DataTypes.STRING(50)
},
Function updateTheme
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internals.updateTheme = function(input, callback){
var errorMessages = [];
var id = input.id;
var name = input.name;
var description = input.description;
Function validate
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '' || !options.country) {
return true;
}
Function validate
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '' || !options.country) {
return true;
}
Function createTheme
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internals.createTheme = function(input, callback){
var errorMessages = [];
var systemid = input.systemid;
var name = input.name;
var description = input.description;
Function handler
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handler: function(request, reply){
Mely.System.createSystem({
name: request.payload["mely-name"],
description: request.payload["mely-description"] ? request.payload["mely-description"] : null
}, function(err, system){
Function _parseOptions
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_parseOptions: function($field) {
var field = $field.attr('name') || $field.attr('data-bv-field'),
validators = {},
validator,
v, // Validator name
Function _parseOptions
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_parseOptions: function($field) {
var field = $field.attr('name') || $field.attr('data-bv-field'),
validators = {},
validator,
v, // Validator name
Function show
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tooltip.prototype.show = function () {
var e = $.Event('show.bs.' + this.type)
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
Function destroy
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
destroy: function() {
var field, fields, $field, validator, $icon, group;
for (field in this.options.fields) {
fields = this.getFieldElements(field);
group = this.options.fields[field].group || this.options.group;
Function destroy
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
destroy: function() {
var field, fields, $field, validator, $icon, group;
for (field in this.options.fields) {
fields = this.getFieldElements(field);
group = this.options.fields[field].group || this.options.group;