AgileVentures/WebsiteOne

View on GitHub

Showing 197 of 206 total issues

Function has a complexity of 10.
Open

var Datepicker = function(element, options){

Function init has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function init() {
$('.yt_link').on('click', selectVideo);
 
$('#skills').tags({
readOnly: false,
Severity: Major
Found in app/assets/javascripts/users.js - About 2 hrs to fix

Function initialize has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

initialize: function initialize(o, datasets) {
var www;
datasets = _.isArray(datasets) ? datasets : [].slice.call(arguments, 1);
o = o || {};
www = WWW(o.classNames);
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 2 hrs to fix

Method '_setDate' has a complexity of 9.
Open

_setDate: function(date, which){

Method '_toggle_multidate' has a complexity of 9.
Open

_toggle_multidate: function(date){

Function _fill_yearsView has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

_fill_yearsView: function(selector, cssClass, factor, year, startYear, endYear, beforeFn){
var html = '';
var step = factor / 10;
var view = this.picker.find(selector);
var startVal = Math.floor(year / factor) * factor;
Severity: Minor
Found in app/assets/javascripts/bootstrap-datepicker.js - About 2 hrs to fix

Method 'formatDate' has a complexity of 8.
Open

formatDate: function(date, format, language){

Method 'moveMonth' has a complexity of 8.
Open

moveMonth: function(date, dir){

Method 'dateUpdated' has a complexity of 8.
Open

dateUpdated: function(e){

Function 'Typeahead' has too many statements (32). Maximum allowed is 30.
Open

function Typeahead(o, www) {

Function EventCountdown has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function EventCountdown() {
var countdownClock, eventName, eventTime, eventDuration, eventUrl, textToAppend;
var self = this;
 
this.format = function(num) {
Severity: Minor
Found in app/assets/javascripts/global-modules/event_countdown.js - About 1 hr to fix

Function Status has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var Status = function() {
"use strict";
function Status(options) {
this.$el = $("<span></span>", {
role: "status",
Severity: Minor
Found in app/assets/javascripts/typeahead.jquery.js - About 1 hr to fix

Function attach has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function attach() {
var $input, $wrapper, $hint, $menu, defaultHint, defaultMenu, eventBus, input, menu, status, typeahead, MenuConstructor;
_.each(datasets, function(d) {
d.highlight = !!o.highlight;
});
Severity: Minor
Found in app/assets/javascripts/typeahead.jquery.js - About 1 hr to fix

Function has a complexity of 7.
Open

$.each(months, function(i, month){

Function has a complexity of 7.
Open

NProgress.getPositioningCSS = function() {
Severity: Minor
Found in app/assets/javascripts/nprogress.js by eslint

Function 'attach' has a complexity of 7.
Open

function attach() {

Method 'moveCursor' has a complexity of 7.
Open

moveCursor: function moveCursor(delta) {

Function buildCss has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function buildCss() {
var css = {
wrapper: {
position: "relative",
display: "inline-block"
Severity: Minor
Found in app/assets/javascripts/typeahead.jquery.js - About 1 hr to fix

Function click has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

click: function(e){
e.preventDefault();
e.stopPropagation();
 
var target, dir, day, year, month;
Severity: Minor
Found in app/assets/javascripts/bootstrap-datepicker.js - About 1 hr to fix

Function DefaultMenu has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var DefaultMenu = function() {
"use strict";
var s = Menu.prototype;
function DefaultMenu() {
Menu.apply(this, [].slice.call(arguments, 0));
Severity: Minor
Found in app/assets/javascripts/typeahead.jquery.js - About 1 hr to fix
Severity
Category
Status
Source
Language