colonizers/colonizers

View on GitHub
packages/colonizers/server/web/room/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function register has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.register = function(server, options, next) {
  server.route({
    method: 'GET',
    path: '/room/{roomId}',
    config: {
Severity: Minor
Found in packages/colonizers/server/web/room/index.js - About 1 hr to fix

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

        handler: function(request, reply) {
          var Room = mongoose.model('Room');
    
          Room.findById(request.params.roomId, function(err, room) {
            if (err) {
    Severity: Minor
    Found in packages/colonizers/server/web/room/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status