react-epfl/chachachat

View on GitHub
controllers/room.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

  onSendMessage: function(socket, event) {
    return function(jsonMessage) {
      var author = socket.handshake.user.id;

      report.debug('user ' + author + ' sends message ' + JSON.stringify(jsonMessage));
Severity: Major
Found in controllers/room.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status