Dulce-Work-Schedule/2018.1-Dulce_User

View on GitHub
Server/_user.js

Summary

Maintainability
A
1 hr
Test Coverage

Function exports has 103 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

module.exports = function(options){
  this.add('role:user, cmd:create', async function create( msg, respond) {
    var user = this.make('users')
    user.firstName = msg.firstName
    user.lastName = msg.lastName
Severity: Major
Found in Server/_user.js - About 4 hrs to fix

    Function create has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      this.add('role:user, cmd:create', async function create( msg, respond) {
        var user = this.make('users')
        user.firstName = msg.firstName
        user.lastName = msg.lastName
        user.email = msg.email
    Severity: Minor
    Found in Server/_user.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status