Showing 5 of 5 total issues
File notifier.js
has 607 lines of code (exceeds 250 allowed). Consider refactoring. Open
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.
//
Function generateDataJSON
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateDataJSON: (function () {
/*
* Generate variables array for inputObj object.
*
* e.g.
Function generateBacktrace
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateBacktrace: function (error) {
var backtrace = [],
file,
i,
matches,
Function generatePublicAPI
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generatePublicAPI: (function () {
function _generateSetter (variable, namespace, configObj) {
return function (value) {
configObj[namespace][variable] = value;
};
Avoid too many return
statements within this function. Open
Open
return (this._mode = 'other');