RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/google-oauth/server/index.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function _endOfLoginResponse has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    OAuth._endOfLoginResponse = (res, details) => {
        res.writeHead(200, { 'Content-Type': 'text/html' });
        let redirectUrl;

        if (details.loginStyle === 'redirect') {
Severity: Minor
Found in apps/meteor/app/google-oauth/server/index.js - About 1 hr to fix

    Function renderEndOfLoginResponse has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const renderEndOfLoginResponse = (options) => {
            const escape = (s) => {
                if (!s) {
                    return s;
                }
    Severity: Minor
    Found in apps/meteor/app/google-oauth/server/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status