sue445/chrome-gitlab-notifier

View on GitHub

Showing 208 of 10,177 total issues

Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function on( elem, types, selector, data, fn, one ) {
    var origFn, type;

    // Types can be a map of types/handlers
    if ( typeof types === "object" ) {
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function PromisePolyfill has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var PromisePolyfill = function(executor) {
    if (!(this instanceof PromisePolyfill)) throw new Error("Promise must be called with `new`")
    if (typeof executor !== "function") throw new TypeError("executor must be a function")
    var self = this, resolvers = [], rejectors = [], resolveCurrent = handler(resolvers, true), rejectCurrent = handler(rejectors, false)
    var instance = self._instance = {resolvers: resolvers, rejectors: rejectors}
Severity: Minor
Found in lib/mithril.js - About 1 hr to fix

Function removeNode has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function removeNode(parent, vnode3) {
        var mask = 0
        var original = vnode3.state
        var stateResult, attrsResult
        if (typeof vnode3.tag !== "string" && typeof vnode3.state.onbeforeremove === "function") {
Severity: Minor
Found in lib/mithril.js - About 1 hr to fix

Function execSelector has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function execSelector(state, vnode) {
    var attrs = vnode.attrs
    var children = Vnode.normalizeChildren(vnode.children)
    var hasClass = hasOwn.call(attrs, "class")
    var className = hasClass ? attrs.class : attrs.className
Severity: Minor
Found in lib/mithril.js - About 1 hr to fix

Function toggleClass has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    toggleClass: function( value, stateVal ) {
        var type = typeof value;

        if ( typeof stateVal === "boolean" && type === "string" ) {
            return stateVal ? this.addClass( value ) : this.removeClass( value );
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function show has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Modal.prototype.show = function (_relatedTarget) {
    var that = this
    var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })

    this.$element.trigger(e)
Severity: Minor
Found in lib/bootstrap.js - About 1 hr to fix

Function onload has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

window.onload = function() {
  m.mount(document.getElementById("app"), {
    oninit: function() {
      const config = new Config(localStorage);

Severity: Minor
Found in src/options_init.js - About 1 hr to fix

Function backdrop has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Modal.prototype.backdrop = function (callback) {
    var that = this
    var animate = this.$element.hasClass('fade') ? 'fade' : ''

    if (this.isShown && this.options.backdrop) {
Severity: Minor
Found in lib/bootstrap.js - About 1 hr to fix

Function adjustCSS has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function adjustCSS( elem, prop, valueParts, tween ) {
    var adjusted,
        scale = 1,
        maxIterations = 20,
        currentValue = tween ?
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function activate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Tab.prototype.activate = function (element, container, callback) {
    var $active    = container.find('> .active')
    var transition = callback
      && $.support.transition
      && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
Severity: Minor
Found in lib/bootstrap.js - About 1 hr to fix

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

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

      this.gitlab_path = config.gitlabPath;
      this.api_path = config.apiPath;
Severity: Minor
Found in src/trigger_init.js - About 1 hr to fix

Function dispatch has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    dispatch: function( nativeEvent ) {

        // Make a writable jQuery.Event from the native event object
        var event = jQuery.event.fix( nativeEvent );

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

Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function ajaxHandleResponses( s, jqXHR, responses ) {

    var ct, type, finalDataType, firstDataType,
        contents = s.contents,
        dataTypes = s.dataTypes;
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function _15 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var _15 = function(render0, schedule, console) {
    var subscriptions = []
    var rendering = false
    var pending = false
    function sync() {
Severity: Minor
Found in lib/mithril.js - About 1 hr to fix

Function makeRequest has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function makeRequest(factory) {
        return function(url, args) {
            if (typeof url !== "string") { args = url; url = url.url }
            else if (args == null) args = {}
            var promise1 = new Promise(function(resolve, reject) {
Severity: Minor
Found in lib/mithril.js - About 1 hr to fix

Function mightThrow has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                                mightThrow = function() {
                                    var returned, then;

                                    // Support: Promises/A+ section 2.3.3.3.3
                                    // https://promisesaplus.com/#point-59
Severity: Minor
Found in lib/jquery-3.2.1.js - About 1 hr to fix

Function show has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    var activesData
    var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
Severity: Minor
Found in lib/bootstrap.js - About 1 hr to fix

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

        view: function(vnode5) {
            var options = vnode5.attrs.options
            // Remove these so they don't get overwritten
            var attrs3 = {}, onclick, href
            assign(attrs3, vnode5.attrs)
Severity: Minor
Found in lib/mithril.js - About 1 hr to fix

Function makeLisIndices has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function makeLisIndices(a) {
        var result = [0]
        var u = 0, v = 0, i = 0
        var il = lisTemp.length = a.length
        for (var i = 0; i < il; i++) lisTemp[i] = a[i]
Severity: Minor
Found in lib/mithril.js - About 1 hr to fix

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

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

      this.gitlab_path = config.gitlabPath;
      this.api_path = config.apiPath;
Severity: Minor
Found in src/options_init.js - About 1 hr to fix
Severity
Category
Status
Source
Language