AgileVentures/WebsiteOne

View on GitHub

Showing 197 of 206 total issues

Method 'parseDate' has too many statements (43). Maximum allowed is 30.
Open

parseDate: function(date, format, language, assumeNearby){

Class User has 27 methods (exceeds 20 allowed). Consider refactoring.
Open

class User < ApplicationRecord
acts_as_paranoid
 
include Filterable
 
 
Severity: Minor
Found in app/models/user.rb - About 3 hrs to fix

Function _buildEvents has 78 lines of code (exceeds 25 allowed). Consider refactoring.
Open

_buildEvents: function(){
var events = {
keyup: $.proxy(function(e){
if ($.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1)
this.update();
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 3 hrs to fix

Method 'parseDate' has a complexity of 18.
Open

parseDate: function(date, format, language, assumeNearby){

Function place has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

place: function(){
if (this.isInline)
return this;
var calendarWidth = this.picker.outerWidth(),
calendarHeight = this.picker.outerHeight(),
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 2 hrs to fix

Method 'getClassNames' has a complexity of 16.
Open

getClassNames: function(date){

Method 'place' has a complexity of 16.
Open

place: function(){

Method '_fill_yearsView' has a complexity of 16.
Open

_fill_yearsView: function(selector, cssClass, factor, year, startYear, endYear, beforeFn){

Method 'update' has a complexity of 14.
Open

update: function(){

Method 'click' has a complexity of 13.
Open

click: function(e){

File nprogress.js has 270 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */
 
;(function(root, factory) {
 
 
Severity: Minor
Found in app/assets/javascripts/nprogress.js - About 2 hrs to fix

Function has too many statements (36). Maximum allowed is 30.
Open

var Datepicker = function(element, options){

Function 'Dataset' has a complexity of 12.
Open

function Dataset(o, www) {

Function update has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

update: function(){
if (!this._allow_update)
return this;
 
var oldDates = this.dates.copy(),
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 2 hrs to fix

Method '_fill_yearsView' has too many statements (35). Maximum allowed is 30.
Open

_fill_yearsView: function(selector, cssClass, factor, year, startYear, endYear, beforeFn){

Method 'place' has too many statements (35). Maximum allowed is 30.
Open

place: function(){

Method 'updateNavArrows' has a complexity of 11.
Open

updateNavArrows: function(){

Method 'keydown' has too many statements (35). Maximum allowed is 30.
Open

keydown: function(e){

Function WebsiteOne has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

(function() {
var modules = [],
newPageLoaded = false,
runOnceCallbacks = {},
moduleFactories = {};
Severity: Major
Found in app/assets/javascripts/websiteone.js - About 2 hrs to fix

Function Datepicker has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var Datepicker = function(element, options){
$.data(element, 'datepicker', this);
 
this._events = [];
this._secondaryEvents = [];
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 2 hrs to fix
Severity
Category
Status
Source
Language