mamboer/motice

View on GitHub
src/js/motice.js

Summary

Maintainability
B
6 hrs
Test Coverage

File motice.js has 334 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* global define */
; (function (define) {
    define(['jquery'], function ($) {
        
        var $body = $('body'),
Severity: Minor
Found in src/js/motice.js - About 4 hrs to fix

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

                _parseDomBySettings: function() {
                    var settings = this.options;
                    var $container = this.$container = containers.get( settings.position );
                    var $notification = this.$el;
                    var me = this;
    Severity: Minor
    Found in src/js/motice.js - About 1 hr to fix

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

                  _initEvents: function(){
                      var settings = this.options,
                          me = this,
                          $el = this.$el;
                      //close button
      Severity: Minor
      Found in src/js/motice.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status