AgileVentures/WebsiteOne

View on GitHub

Showing 63 of 206 total issues

File bootstrap-datepicker.js has 1769 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* =========================================================
 * bootstrap-datepicker.js
 * Repo: https://github.com/uxsolutions/bootstrap-datepicker/
 * Demo: https://eternicode.github.io/bootstrap-datepicker/
 * Docs: https://bootstrap-datepicker.readthedocs.org/
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 4 days to fix

File typeahead.jquery.js has 1684 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * typeahead.js 1.3.1
 * https://github.com/corejavascript/typeahead.js
 * Copyright 2013-2020 Twitter, Inc. and other contributors; Licensed MIT
 */
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 4 days to fix

Function Typeahead has 292 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var Typeahead = function() {
        "use strict";
        function Typeahead(o, www) {
            var onFocused, onBlurred, onEnterKeyed, onTabKeyed, onEscKeyed, onUpKeyed, onDownKeyed, onLeftKeyed, onRightKeyed, onQueryChanged, onWhitespaceChanged;
            o = o || {};
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 1 day to fix

Function Input has 229 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var Input = function() {
        "use strict";
        var specialKeyCodeMap;
        specialKeyCodeMap = {
            9: "tab",
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 1 day to fix

Function Dataset has 211 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var Dataset = function() {
        "use strict";
        var keys, nameGenerator;
        keys = {
            dataset: "tt-selectable-dataset",
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 1 day to fix

Function fill has 151 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        fill: function(){
            var d = new Date(this.viewDate),
                year = d.getUTCFullYear(),
                month = d.getUTCMonth(),
                startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 6 hrs to fix

Function Menu has 144 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var Menu = function() {
        "use strict";
        function Menu(o, www) {
            var that = this;
            o = o || {};
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 5 hrs to fix

Function _ has 140 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var _ = function() {
        "use strict";
        return {
            isMsie: function() {
                return /(msie|trident)/i.test(navigator.userAgent) ? navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2] : false;
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 5 hrs to fix

Class Event has 40 methods (exceeds 20 allowed). Consider refactoring.
Open

class Event < ApplicationRecord
  has_many :event_instances
  belongs_to :project, optional: true
  belongs_to :creator, class_name: 'User', optional: true
  has_and_belongs_to_many :slack_channels
Severity: Minor
Found in app/models/event.rb - About 5 hrs to fix

Function parseDate has 114 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        parseDate: function(date, format, language, assumeNearby){
            if (!date)
                return undefined;
            if (date instanceof Date)
                return date;
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 4 hrs to fix

Function keydown has 94 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        keydown: function(e){
            if (!this.picker.is(':visible')){
                if (e.keyCode === 40 || e.keyCode === 27) { // allow down to re-show picker
                    this.show();
                    e.stopPropagation();
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 3 hrs to fix

Function _process_options has 93 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _process_options: function(opts){
            // Store raw options for reference
            this._o = $.extend({}, this._o, opts);
            // Processed options
            var o = this.o = $.extend({}, this._o);
Severity: Major
Found in app/assets/javascripts/bootstrap-datepicker.js - About 3 hrs to fix

Function WWW has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var WWW = function() {
        "use strict";
        var defaultClassNames = {
            wrapper: "twitter-typeahead",
            input: "tt-input",
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 3 hrs to fix

Function EventEmitter has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var EventEmitter = function() {
        "use strict";
        var splitter = /\s+/, nextTick = getNextTick();
        return {
            onSync: onSync,
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 3 hrs to fix

Function highlight has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var highlight = function(doc) {
        "use strict";
        var defaults = {
            node: null,
            pattern: null,
Severity: Major
Found in app/assets/javascripts/typeahead.jquery.js - About 3 hrs to fix

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

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

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 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
Severity
Category
Status
Source
Language