os-js/osjs-server

View on GitHub
src/providers/core.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

  initSocketRoutes() {
    const {app} = this.core;

    app.ws('/', (ws, req) => {
      ws.upgradeReq = ws.upgradeReq || req;
Severity: Minor
Found in src/providers/core.js - About 1 hr to fix

    Function initService has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      initService() {
        const {app} = this.core;
        const {requireAllGroups} = this.core.configuration.auth;
    
        const middleware = {
    Severity: Minor
    Found in src/providers/core.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status