inderpartap/Bunk-O-Meter

View on GitHub
static/assets/js/bootstrap-notify.js

Summary

Maintainability
C
1 day
Test Coverage

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

/*
    
    

     Creative Tim Modifications
Severity: Minor
Found in static/assets/js/bootstrap-notify.js - About 4 hrs to fix

    Function init has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            init: function () {
                var self = this;
    
                this.buildNotify();
                if (this.settings.content.icon) {
    Severity: Major
    Found in static/assets/js/bootstrap-notify.js - About 2 hrs to fix

      Function placement has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              placement: function () {
                  var self = this,
                      offsetAmt = this.settings.offset.y,
                      css = {
                          display: 'inline-block',
      Severity: Major
      Found in static/assets/js/bootstrap-notify.js - About 2 hrs to fix

        Function update has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        update: function (command, update) {
                            var commands = {};
                            if (typeof command === "string") {
                                commands[command] = update;
                            } else {
        Severity: Minor
        Found in static/assets/js/bootstrap-notify.js - About 1 hr to fix

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

              function Notify(element, content, options) {
                  // Setup Content of Notify
                  var contentObj = {
                      content: {
                          message: typeof content === 'object' ? content.message : content,
          Severity: Minor
          Found in static/assets/js/bootstrap-notify.js - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status