RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/meteor-accounts-saml/server/lib/parsers/LogoutResponse.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function validate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public async validate(xmlString: string, callback: ILogoutResponseValidateCallback): Promise<void> {
        SAMLUtils.log(`LogoutResponse: ${xmlString}`);

        const doc = new xmldom.DOMParser().parseFromString(xmlString, 'text/xml');
        if (!doc) {

    Avoid too many return statements within this function.
    Open

            return callback(null, inResponseTo);

      There are no issues that match your filters.

      Category
      Status