Showing 48 of 187 total issues
File bootstrap.js
has 1587 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under the MIT license
*/
Function init
has 349 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function( options ) {
var settings = $.extend(true, {}, defaults);
settings.options = $.extend(true, settings.options, options);
File jqBootstrapValidation.js
has 731 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* jqBootstrapValidation
* A plugin for automating validation on Twitter Bootstrap formatted forms.
*
* v1.3.6
*
File vip_dashboard.js
has 480 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @ngdoc function
* @name iReceptionistApp.controller:MainCtrl
* @description
* # MainCtrl
File register.js
has 312 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @ngdoc function
* @name iReceptionistApp.controller:RegisterCtrl
* @description
* # RegisterCtrl
Function sortBy
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.sortBy = function(category) {
switch(category) {
case 'name':
if ($scope.lastSort==='name') {
$scope.clients.reverse();
Function plotNewData
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.plotNewData = function(whichData) {
var dataMonths = [[1, 'Jan'], [2, 'Feb'], [3, 'Mar'], [4, 'Apr'], [5, 'May'], [6, 'Jun'], [7, 'Jul'], [8, 'Aug'], [9, 'Sep'], [10, 'Oct'], [11, 'Nov'], [12, 'Dec']];
var dataToPlot = [];
var updateData = function(whichData) {
// hard coded for now until get routes from backend
Function getPlotData
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getPlotData = function() {
var freeDict = {};
var basicDict = {};
var premierDict = {};
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 continue
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.continue = function() {
//initally show all clients
$scope.clientsToShow=$scope.clients;
//initialize dates/suspended
Function updatePlan
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.updatePlan = function() {
// Credit card validation
if ($scope.planClicked !== 'Free') {
var nameValid = $scope.name !== "";
var cardValid = $.payment.validateCardNumber($scope.card);
Function slide
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Carousel.prototype.slide = function (type, next) {
var $active = this.$element.find('.item.active')
var $next = next || this.getItemForDirection(type, $active)
var isCycling = this.interval
var direction = type == 'next' ? 'left' : 'right'
Function doLogin
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.doLogin = function() {
AuthenticationService.login(
{
'email': $scope.register.step1.email,
'password': $scope.register.step1.password,
Function exports
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
Function show
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Modal.prototype.show = function (_relatedTarget) {
var that = this
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
this.$element.trigger(e)
Function backdrop
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Modal.prototype.backdrop = function (callback) {
var that = this
var animate = this.$element.hasClass('fade') ? 'fade' : ''
if (this.isShown && this.options.backdrop) {
Function doLogin
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.doLogin = function() {
AuthenticationService.login(
{
'email': $scope.email,
'password': $scope.password,
Function activate
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.activate = function (element, container, callback) {
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
&& ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
Function submitSuccess
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit behaviour
// get values from FORM
var name = $("input#name").val();
var email = $("input#email").val();
Function validate
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function ($this, value, validator) {
if (""+validator.lastValue === ""+value && validator.lastFinished === true) {
return validator.lastValid === false;
}