Showing 63 of 206 total issues
File bootstrap-datepicker.js
has 1769 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* =========================================================
* bootstrap-datepicker.js
* Repo: https://github.com/uxsolutions/bootstrap-datepicker/
* Demo: https://eternicode.github.io/bootstrap-datepicker/
* Docs: https://bootstrap-datepicker.readthedocs.org/
- Create a ticketCreate a ticket
File typeahead.jquery.js
has 1684 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* typeahead.js 1.3.1
* https://github.com/corejavascript/typeahead.js
* Copyright 2013-2020 Twitter, Inc. and other contributors; Licensed MIT
*/
- Create a ticketCreate a ticket
Function Typeahead
has 292 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Typeahead = function() {
"use strict";
function Typeahead(o, www) {
var onFocused, onBlurred, onEnterKeyed, onTabKeyed, onEscKeyed, onUpKeyed, onDownKeyed, onLeftKeyed, onRightKeyed, onQueryChanged, onWhitespaceChanged;
o = o || {};
- Create a ticketCreate a ticket
Function Input
has 229 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Input = function() {
"use strict";
var specialKeyCodeMap;
specialKeyCodeMap = {
9: "tab",
- Create a ticketCreate a ticket
Function Dataset
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Dataset = function() {
"use strict";
var keys, nameGenerator;
keys = {
dataset: "tt-selectable-dataset",
- Create a ticketCreate a ticket
Function fill
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
- Create a ticketCreate a ticket
Function Menu
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Menu = function() {
"use strict";
function Menu(o, www) {
var that = this;
o = o || {};
- Create a ticketCreate a ticket
Function _
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
- Create a ticketCreate a ticket
Class Event
has 40 methods (exceeds 20 allowed). Consider refactoring. Open
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
- Create a ticketCreate a ticket
Function parseDate
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseDate: function(date, format, language, assumeNearby){
if (!date)
return undefined;
if (date instanceof Date)
return date;
- Create a ticketCreate a ticket
Function keydown
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
- Create a ticketCreate a ticket
Function _process_options
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
- Create a ticketCreate a ticket
Function WWW
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var WWW = function() {
"use strict";
var defaultClassNames = {
wrapper: "twitter-typeahead",
input: "tt-input",
- Create a ticketCreate a ticket
Function EventEmitter
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var EventEmitter = function() {
"use strict";
var splitter = /\s+/, nextTick = getNextTick();
return {
onSync: onSync,
- Create a ticketCreate a ticket
Function highlight
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var highlight = function(doc) {
"use strict";
var defaults = {
node: null,
pattern: null,
- Create a ticketCreate a ticket
Class User
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class User < ApplicationRecord
acts_as_paranoid
include Filterable
- Create a ticketCreate a ticket
Function _buildEvents
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_buildEvents: function(){
var events = {
keyup: $.proxy(function(e){
if ($.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1)
this.update();
- Create a ticketCreate a ticket
Function place
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
place: function(){
if (this.isInline)
return this;
var calendarWidth = this.picker.outerWidth(),
calendarHeight = this.picker.outerHeight(),
- Create a ticketCreate a ticket
File nprogress.js
has 270 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */
;(function(root, factory) {
- Create a ticketCreate a ticket
Function update
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function(){
if (!this._allow_update)
return this;
var oldDates = this.dates.copy(),
- Create a ticketCreate a ticket