Dulce-Work-Schedule/2018.1-Dulce_Login

View on GitHub

Showing 2 of 7 total issues

Function api has 151 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function api(options) {
  this.add('role:api, path:create', function (msg, respond) {
    var firstName = {
      verbose: 'Primeiro Nome',
      field_name: 'firstName'
Severity: Major
Found in Client/api.js - About 6 hrs to fix

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

    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
      Severity
      Category
      Status
      Source
      Language