sue445/chrome-gitlab-notifier

View on GitHub

Showing 208 of 10,177 total issues

File jquery-3.2.1.js has 6620 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v3.2.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in lib/jquery-3.2.1.js - About 2 wks to fix

Function Sizzle has 1452 lines of code (exceeds 25 allowed). Consider refactoring.
Open

(function( window ) {

var i,
    support,
    Expr,
Severity: Major
Found in lib/jquery-3.2.1.js - About 1 wk to fix

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

/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
Severity: Major
Found in lib/bootstrap.js - About 4 days to fix

File mithril.js has 1527 lines of code (exceeds 250 allowed). Consider refactoring.
Open

;(function() {
"use strict"
function Vnode(tag, key, attrs0, children0, text, dom) {
    return {tag: tag, key: key, attrs: attrs0, children: children0, text: text, dom: dom, domSize: undefined, state: undefined, events: undefined, instance: undefined}
}
Severity: Major
Found in lib/mithril.js - About 4 days to fix

Function _12 has 742 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var _12 = function($window) {
    var $doc = $window && $window.document
    var currentRedraw
    var nameSpace = {
        svg: "http://www.w3.org/2000/svg",
Severity: Major
Found in lib/mithril.js - About 3 days to fix

Function view has 305 lines of code (exceeds 25 allowed). Consider refactoring.
Open

app.view = function(vnode) {
  const state = vnode.state;

  const matchSearchKey = (project) => {
    const keys = state.search_key.split(" ");
Severity: Major
Found in src/options.js - About 1 day to fix

Function ajax has 251 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    ajax: function( url, options ) {

        // If url is an object, simulate pre-1.5 signature
        if ( typeof url === "object" ) {
            options = url;
Severity: Major
Found in lib/jquery-3.2.1.js - About 1 day to fix

Function setDocument has 245 lines of code (exceeds 25 allowed). Consider refactoring.
Open

setDocument = Sizzle.setDocument = function( node ) {
    var hasCompare, subWindow,
        doc = node ? node.ownerDocument || node : preferredDoc;

    // Return early if doc is invalid or already selected
Severity: Major
Found in lib/jquery-3.2.1.js - About 1 day to fix

Function _25 has 182 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var _25 = function($window, mountRedraw00) {
    var fireAsync
    function setPath(path0, data, options) {
        path0 = buildPathname(path0, data)
        if (fireAsync != null) {
Severity: Major
Found in lib/mithril.js - About 7 hrs to fix

Function Deferred has 176 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Deferred: function( func ) {
        var tuples = [

                // action, add listener, callbacks,
                // ... .then handlers, argument index, [final state]
Severity: Major
Found in lib/jquery-3.2.1.js - About 7 hrs to fix

Function view has 162 lines of code (exceeds 25 allowed). Consider refactoring.
Open

app.view = function(vnode) {
  const state = vnode.state;

  const matchSearchKey = (project) => {
    const keys = state.search_key.split(" ");
Severity: Major
Found in src/trigger.js - About 6 hrs to fix

Function _18 has 145 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var _18 = function($window, Promise, oncompletion) {
    var callbackCount = 0
    function PromiseProxy(executor) {
        return new Promise(executor)
    }
Severity: Major
Found in lib/mithril.js - About 5 hrs to fix

Function notifyProjectEvent has 138 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  notifyProjectEvent(project_id, project_event){
    const target_type = project_event.target_type || "Commit";

    let comment_target_type;
    if((target_type == "Note" || target_type == "DiffNote" ) && project_event.action_name == "commented on"){
Severity: Major
Found in src/background.js - About 5 hrs to fix

Function view has 126 lines of code (exceeds 25 allowed). Consider refactoring.
Open

app.view = function(vnode) {
  const state = vnode.state;

  const current_time = new Date();
  const action_labels = {
Severity: Major
Found in src/popup.js - About 5 hrs to fix

Function defaultPrefilter has 122 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function defaultPrefilter( elem, props, opts ) {
    var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
        isBox = "width" in props || "height" in props,
        anim = this,
        orig = {},
Severity: Major
Found in lib/jquery-3.2.1.js - About 4 hrs to fix

Function Callbacks has 121 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.Callbacks = function( options ) {

    // Convert options from String-formatted to Object-formatted if needed
    // (we check in cache first)
    options = typeof options === "string" ?
Severity: Major
Found in lib/jquery-3.2.1.js - About 4 hrs to fix

Function updateNodes has 112 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function updateNodes(parent, old, vnodes, hooks, nextSibling, ns) {
        if (old === vnodes || old == null && vnodes == null) return
        else if (old == null || old.length === 0) createNodes(parent, vnodes, 0, vnodes.length, hooks, nextSibling, ns)
        else if (vnodes == null || vnodes.length === 0) removeNodes(parent, old, 0, old.length)
        else {
Severity: Major
Found in lib/mithril.js - About 4 hrs to fix

Function route has 110 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function route(root, defaultRoute, routes) {
        if (root == null) throw new Error("Ensure the DOM element that was passed to `m.route` is not undefined")
        // 0 = start0
        // 1 = init
        // 2 = ready
Severity: Major
Found in lib/mithril.js - About 4 hrs to fix

Config has 33 functions (exceeds 20 allowed). Consider refactoring.
Open

class Config {
  constructor(storage){
    this.storage = storage || {};
  }

Severity: Minor
Found in src/config.js - About 4 hrs to fix

Function then has 102 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                then: function( onFulfilled, onRejected, onProgress ) {
                    var maxDepth = 0;
                    function resolve( depth, deferred, handler, special ) {
                        return function() {
                            var that = this,
Severity: Major
Found in lib/jquery-3.2.1.js - About 4 hrs to fix
Severity
Category
Status
Source
Language