RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/lib/server/startup/rateLimiter.js

Summary

Maintainability
A
1 hr
Test Coverage

Function check has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

RateLimiter.prototype.check = function (input) {
    // ==== BEGIN OVERRIDE ====
    const session = Meteor.server.sessions.get(input.connectionId);
    input.broadcastAuth = (session && session.connectionHandle && session.connectionHandle.broadcastAuth) === true;
    // ==== END OVERRIDE ====
Severity: Minor
Found in apps/meteor/app/lib/server/startup/rateLimiter.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status