marten/ohnoes

View on GitHub

Showing 5 of 5 total issues

File notifier.js has 607 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Airbrake notifier JavaScript code taken from
// https://github.com/airbrake/airbrake-js/blob/v0.1.2-JSON/dist/notifier.js
// Parts licenced under BSD license,
// Parts licenced under MIT license.
//
Severity: Major
Found in lib/assets/javascripts/ohnoes/notifier.js - About 1 day to fix

    Function generateDataJSON has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                generateDataJSON: (function () {
                    /*
                     * Generate variables array for inputObj object.
                     *
                     * e.g.
    Severity: Major
    Found in lib/assets/javascripts/ohnoes/notifier.js - About 2 hrs to fix

      Function generateBacktrace has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  generateBacktrace: function (error) {
                      var backtrace = [],
                          file,
                          i,
                          matches,
      Severity: Minor
      Found in lib/assets/javascripts/ohnoes/notifier.js - About 1 hr to fix

        Function generatePublicAPI has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    generatePublicAPI: (function () {
                        function _generateSetter (variable, namespace, configObj) {
                            return function (value) {
                                configObj[namespace][variable] = value;
                            };
        Severity: Minor
        Found in lib/assets/javascripts/ohnoes/notifier.js - About 1 hr to fix

          Avoid too many return statements within this function.
          Open

                      return (this._mode = 'other');
          Severity: Major
          Found in lib/assets/javascripts/ohnoes/notifier.js - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language