whitef0x0/tellform

View on GitHub
app/sockets/analytics_service.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

module.exports = function (io, socket) {
    var visitorsData = {};

    var saveVisitorData = function (data, socket, cb){
        Form.findById(data.formId, function(err, form) {
Severity: Major
Found in app/sockets/analytics_service.js - About 2 hrs to fix

    Function saveVisitorData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var saveVisitorData = function (data, socket, cb){
            Form.findById(data.formId, function(err, form) {
                if (err) {
                    console.error(err);
                    throw new Error(errorHandler.getErrorMessage(err));
    Severity: Minor
    Found in app/sockets/analytics_service.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status