sue445/chrome-gitlab-notifier

View on GitHub

Showing 208 of 10,177 total issues

Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    finish: function( type ) {
        if ( type !== false ) {
            type = type || "fx";
        }
        return this.each( function() {
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function parseHTML has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.parseHTML = function( data, context, keepScripts ) {
    if ( typeof data !== "string" ) {
        return [];
    }
    if ( typeof context === "boolean" ) {
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function off has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    off: function( types, selector, fn ) {
        var handleObj, type;
        if ( types && types.preventDefault && types.handleObj ) {

            // ( event )  dispatched jQuery.Event
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function checkPosition has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Affix.prototype.checkPosition = function () {
    if (!this.$element.is(':visible')) return

    var height       = this.$element.height()
    var offset       = this.options.offset
Severity: Minor
Found in lib/bootstrap.js - About 1 hr to fix

Function buildPathname has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var buildPathname = function(template, params) {
    if ((/:([^\/\.-]+)(\.{3})?:/).test(template)) {
        throw new SyntaxError("Template parameter names *must* be separated")
    }
    if (params == null) return template
Severity: Minor
Found in lib/mithril.js - About 1 hr to fix

Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function propFilter( props, specialEasing ) {
    var index, name, easing, value, hooks;

    // camelCase, specialEasing and expand cssHook pass
    for ( index in props ) {
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function when has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    when: function( singleValue ) {
        var

            // count of uncompleted subordinates
            remaining = arguments.length,
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    clone: function( elem, dataAndEvents, deepDataAndEvents ) {
        var i, l, srcElements, destElements,
            clone = elem.cloneNode( true ),
            inPage = jQuery.contains( elem.ownerDocument, elem );

Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    addClass: function( value ) {
        var classes, elem, cur, curValue, clazz, j, finalValue,
            i = 0;

        if ( jQuery.isFunction( value ) ) {
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function refresh has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  ScrollSpy.prototype.refresh = function () {
    var that          = this
    var offsetMethod  = 'offset'
    var offsetBase    = 0

Severity: Minor
Found in lib/bootstrap.js - About 1 hr to fix

Function remove has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    remove: function( owner, key ) {
        var i,
            cache = owner[ this.expando ];

        if ( cache === undefined ) {
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function loadBranchesBase has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  loadBranchesBase(proj_id, page, all_branches) {
    const params = {
      page: page,
      per_page: this.per_page
    };
Severity: Minor
Found in src/gitlab.js - About 1 hr to fix

Function oninit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    oninit: function() {
      const config = new Config(localStorage);

      this.projects = config.projects;
      this.new_milli_seconds = config.newMarkMinute * 60 * 1000;
Severity: Minor
Found in src/popup_init.js - About 1 hr to fix

Function hide has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Collapse.prototype.hide = function () {
    if (this.transitioning || !this.$element.hasClass('in')) return

    var startEvent = $.Event('hide.bs.collapse')
    this.$element.trigger(startEvent)
Severity: Minor
Found in lib/bootstrap.js - About 1 hr to fix

Function augmentWidthOrHeight has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
    var i,
        val = 0;

    // If we already have the right measurement, avoid augmentation
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function next has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function next() {
      $active
        .removeClass('active')
        .find('> .dropdown-menu > .active')
          .removeClass('active')
Severity: Minor
Found in lib/bootstrap.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

    if ( support.matchesSelector && documentIsHTML &&
        !compilerCache[ expr + " " ] &&
        ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
        ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {

Severity: Major
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

        if (key === "key" || key === "is" || value == null || isLifecycleMethod(key) || (old === value && !isFormAttribute(vnode3, key)) && typeof value !== "object") return
Severity: Major
Found in lib/mithril.js - About 1 hr to fix

Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
Severity: Major
Found in lib/jquery-3.2.1.js - About 50 mins to fix

Function createNodes has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    function createNodes(parent, vnodes, start, end, hooks, nextSibling, ns) {
Severity: Major
Found in lib/mithril.js - About 50 mins to fix
Severity
Category
Status
Source
Language