Morphy2k/broadcast-notification-system

View on GitHub
lib/authentication.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function koaMiddleware has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  koaMiddleware() {
    return async (ctx, next) => {

      const url = ctx.url;
      const authPath = '/authentication';
Severity: Minor
Found in lib/authentication.js - About 1 hr to fix

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

      send(token) {
    
        const uri = db.settings.get('uri').value();
    
        const body =
    Severity: Minor
    Found in lib/authentication.js - About 1 hr to fix

      Definition for rule 'semi-style' was not found
      Open

      'use strict';
      Severity: Minor
      Found in lib/authentication.js by eslint

      For more information visit Source: http://eslint.org/docs/rules/

      There are no issues that match your filters.

      Category
      Status