RHeactorJS/server

View on GitHub
src/api/route/password-change.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function default has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function (app, config, emitter, userRepository, tokenAuth, sendHttpProblem) {
  app.post('/api/password-change', function (req, res) {
    Promise
      .try(() => {
        let schema = Joi.object().keys({
Severity: Major
Found in src/api/route/password-change.js - About 2 hrs to fix

    Function default has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export default function (app, config, emitter, userRepository, tokenAuth, sendHttpProblem) {
    Severity: Minor
    Found in src/api/route/password-change.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status