Repository Analysis

RocketChat/Rocket.Chat

The Secure CommsOS™ for mission-critical operations

1.2 Likely human-written View on GitHub
1.2
Adjusted Score
1.2
Raw Score
100%
Time Factor
2026-05-29
Last Push
45,384
Stars
TypeScript
Language
1,135,740
Lines of Code
9341
Files
636
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 69HIGH 0MEDIUM 8LOW 559

Pattern Findings

636 matches across 10 categories. Click a row to expand file-level details.

Hallucination Indicators69 hits · 790 pts
SeverityFileLineSnippet
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts27 jsrsasignStub.KJUR.jws.IntDate.get.reset();
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts28 jsrsasignStub.KJUR.jws.JWS.sign.reset();
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts29 jsrsasignStub.KJUR.jws.JWS.verify.reset();
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts30 jsrsasignStub.KJUR.jws.JWS.parse.reset();
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts39 jsrsasignStub.KJUR.jws.IntDate.get.callsFake((timeStr) => {
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts44 jsrsasignStub.KJUR.jws.JWS.sign.returns('mocked.jwt.token');
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts122 jsrsasignStub.KJUR.jws.JWS.verify.returns(false);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts128 expect(jsrsasignStub.KJUR.jws.JWS.verify.calledWith('invalid.jwt.token', 'secret', ['HS256'])).to.be.true;
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts132 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts133 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts214 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts215 jsrsasignStub.KJUR.jws.JWS.parse.throws(new Error('Parse error'));
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts223 jsrsasignStub.KJUR.jws.JWS.verify.throws(new Error('Verification error'));
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts232 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts233 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts264 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts265 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts275 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts276 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts69 jsrsasignStub.KJUR.jws.IntDate.get.returns(1609459200);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts70 jsrsasignStub.KJUR.jws.JWS.sign.returns('mocked.jwt.token');
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts84 jsrsasignStub.KJUR.jws.IntDate.get.returns(1609459200);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts85 jsrsasignStub.KJUR.jws.JWS.sign.returns('mocked.jwt.token');
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts148 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts149 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts164 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts165 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts181 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts182 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts200 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts201 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts248 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts249 jsrsasignStub.KJUR.jws.JWS.parse.returns({
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts291 jsrsasignStub.KJUR.jws.JWS.verify.returns(true);
CRITICALapps/meteor/app/utils/server/lib/JWTHelper.spec.ts292 jsrsasignStub.KJUR.jws.JWS.parse.returns(undefined);
CRITICAL…s/unit/app/settings/server/functions/settings.tests.ts593 expect(spiedCallback1).to.have.been.called.always.with('value1');
CRITICAL…s/unit/app/settings/server/functions/settings.tests.ts594 expect(spiedCallback2).to.have.been.called.always.with('setting_callback', 'value1');
CRITICAL…ps/meteor/tests/end-to-end/api/livechat/09-visitors.ts906 expect(res.body.items).to.have.length.of.at.least(1);
CRITICAL…ps/meteor/tests/end-to-end/api/livechat/09-visitors.ts995 expect(res.body.history).to.have.length.of.at.least(1);
CRITICAL…ps/meteor/tests/end-to-end/api/livechat/09-visitors.ts1017 expect(res.body.history).to.have.length.of.at.least(1);
CRITICAL…meteor/tests/end-to-end/api/livechat/10-departments.ts134 expect(res.body.departments).to.have.length.of.at.least(0);
CRITICAL…meteor/tests/end-to-end/api/livechat/10-departments.ts720 expect(response.body.items).to.have.length.of.at.least(1);
CRITICAL…meteor/tests/end-to-end/api/livechat/10-departments.ts745 expect(res.body.items).to.have.length.of.at.least(1);
CRITICAL…meteor/tests/end-to-end/api/livechat/11-email-inbox.ts71 expect(res.body.emailInboxes).to.have.length.of.at.least(1);
CRITICALapps/meteor/tests/e2e/channel-management.spec.ts260 await expect(poHomeChannel.tabs.members.userInfo.menu.getMenuItem('Unignore')).toBeVisible();
CRITICALapps/meteor/tests/e2e/channel-management.spec.ts300 await expect(poHomeChannel.tabs.members.userInfo.menu.getMenuItem('Ignore')).toBeVisible();
CRITICALapps/meteor/tests/e2e/retention-policy.spec.ts101 await auxContext.poHomeChannel.tabs.room.btnEdit.click();
CRITICALapps/meteor/tests/e2e/retention-policy.spec.ts111 await auxContext.poHomeChannel.tabs.editRoom.advancedSettingsAccordion.click();
CRITICALapps/meteor/tests/e2e/retention-policy.spec.ts112 await auxContext.poHomeChannel.tabs.editRoom.checkboxReadOnly.check();
CRITICALapps/meteor/tests/e2e/retention-policy.spec.ts113 await auxContext.poHomeChannel.tabs.editRoom.btnSave.click();
CRITICAL…tests/e2e/omnichannel/omnichannel-chat-history.spec.ts77 await agent.poHomeOmnichannel.contacts.contactInfo.tabHistory.click();
CRITICAL…tests/e2e/omnichannel/omnichannel-chat-history.spec.ts80 await agent.poHomeOmnichannel.contacts.contactInfo.historyItem.click();
CRITICAL…tests/e2e/omnichannel/omnichannel-chat-history.spec.ts89 await agent.poHomeOmnichannel.contacts.contactInfo.historyItem.click();
CRITICAL…tests/e2e/omnichannel/omnichannel-chat-history.spec.ts90 await agent.poHomeOmnichannel.contacts.contactInfo.historyMessage.click();
CRITICAL…tests/e2e/omnichannel/omnichannel-chat-history.spec.ts91 await agent.poHomeOmnichannel.contacts.contactInfo.btnOpenChat.click();
CRITICAL…channel/omnichannel-transfer-to-another-agents.spec.ts76 await agentA.poHomeOmnichannel.content.forwardChatModal.inputForwardUser.click();
CRITICAL…channel/omnichannel-transfer-to-another-agents.spec.ts77 await agentA.poHomeOmnichannel.content.forwardChatModal.inputForwardUser.type('user2');
CRITICAL…channel/omnichannel-transfer-to-another-agents.spec.ts89 await agentA.poHomeOmnichannel.content.forwardChatModal.inputComment.type('any_comment');
CRITICAL…channel/omnichannel-transfer-to-another-agents.spec.ts90 await agentA.poHomeOmnichannel.content.forwardChatModal.btnForward.click();
CRITICAL…tests/e2e/omnichannel/omnichannel-contact-info.spec.ts51 await agent.poHomeChannel.contacts.contactInfo.btnEdit.click();
9 more matches not shown…
Fake / Example Data329 hits · 338 pts
SeverityFileLineSnippet
LOWee/packages/pdf-worker/src/worker.fixtures.ts493 msg: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam in massa ullamcorper diam semper lobortis vita
LOWee/packages/pdf-worker/src/worker.fixtures.ts493 msg: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam in massa ullamcorper diam semper lobortis vita
LOWee/packages/pdf-worker/src/worker.fixtures.ts539 msg: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam in massa ullamcorper diam semper lobortis vita
LOWee/packages/pdf-worker/src/worker.fixtures.ts539 msg: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam in massa ullamcorper diam semper lobortis vita
LOWee/packages/pdf-worker/src/worker.fixtures.ts561 msg: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit Donec id leo quam Cras mauris lacus, fringilla in ferme
LOWee/packages/pdf-worker/src/worker.fixtures.ts561 msg: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit Donec id leo quam Cras mauris lacus, fringilla in ferme
LOWee/packages/pdf-worker/src/worker.fixtures.ts570 msg: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
LOWee/packages/pdf-worker/src/worker.fixtures.ts570 msg: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
LOWee/packages/pdf-worker/src/worker.fixtures.ts603 msg: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam in massa ullamcorper diam semper lobortis vita
LOWee/packages/pdf-worker/src/worker.fixtures.ts603 msg: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam in massa ullamcorper diam semper lobortis vita
LOWee/packages/pdf-worker/src/worker.fixtures.ts605Maecenas pretium, sem non eleifend sodales, sapien ligula sollicitudin mauris, vel imperdiet risus mi id neque. Duis tin
LOWee/packages/pdf-worker/src/worker.fixtures.ts605Maecenas pretium, sem non eleifend sodales, sapien ligula sollicitudin mauris, vel imperdiet risus mi id neque. Duis tin
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts10 visitor: { name: 'John Doe', username: 'john.doe' },
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts21 u: { _id: 'john.doe', name: 'John Doe', username: 'john.doe' },
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts26 u: { _id: 'john.doe', name: 'John Doe', username: 'john.doe' },
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts32 u: { _id: 'john.doe', name: 'John Doe', username: 'john.doe' },
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts40 visitor: { name: 'John Doe', username: 'john.doe' },
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts48 { ts: new Date('2022-11-21T16:00:00.000Z'), msg: 'Hello', u: { _id: 'john.doe', name: 'John Doe', username: 'john.doe'
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts49 { ts: new Date('2022-11-22T16:00:00.000Z'), msg: 'How are you', u: { _id: 'john.doe', name: 'John Doe', username: 'joh
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts54 visitor: { name: 'John Doe', username: 'john.doe' },
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts62 { ts: new Date('2022-11-21T16:00:00.000Z'), msg: 'Hello', u: { _id: 'john.doe', name: 'John Doe', username: 'john.doe'
LOW…rc/templates/ChatTranscript/ChatTranscript.fixtures.ts63 { ts: new Date('2022-11-21T16:00:00.000Z'), msg: 'How are you', u: { _id: 'john.doe', name: 'John Doe', username: 'joh
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts214 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts214 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts217 '<p>hey <a href="https://matrix.to/#/@user:localDomain.com">User Real Name</a>, here its <a href="https://matrix.t
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts217 '<p>hey <a href="https://matrix.to/#/@user:localDomain.com">User Real Name</a>, here its <a href="https://matrix.t
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts245 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts245 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts248 '<p><a href="https://matrix.to/#/@user:externalDomain.com">@user:externalDomain.com</a>, hello <a href="https://ma
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts248 '<p><a href="https://matrix.to/#/@user:externalDomain.com">@user:externalDomain.com</a>, hello <a href="https://ma
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts289 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts289 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts294 '<p>hey <a href="https://matrix.to/#/@user:localDomain.com">User Real Name</a>, here its <a href="https://matrix.t
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts294 '<p>hey <a href="https://matrix.to/#/@user:localDomain.com">User Real Name</a>, here its <a href="https://matrix.t
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts318 **Paragraph text**: **Bold** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facili
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts318 **Paragraph text**: **Bold** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facili
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts322 _Italict Text_: _Italict_ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facilisis
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts322 _Italict Text_: _Italict_ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facilisis
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts361 '<p>hey <a href="https://matrix.to/#/@user:localDomain.com">User Real Name</a>, here its <a href="https://matrix.t
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts361 '<p>hey <a href="https://matrix.to/#/@user:localDomain.com">User Real Name</a>, here its <a href="https://matrix.t
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts368 **Paragraph text**: **Bold** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facili
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts368 **Paragraph text**: **Bold** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facili
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts372 _Italict Text_: _Italict_ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facilisis
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts372 _Italict Text_: _Italict_ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facilisis
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts416 **Paragraph text**: **Bold** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facili
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts416 **Paragraph text**: **Bold** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facili
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts420 _Italict Text_: _Italict_ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facilisis
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts420 _Italict Text_: _Italict_ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facilisis
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts462 '<p>hey <a href="https://matrix.to/#/@user:localDomain.com">User Real Name</a>, here its <a href="https://matrix.t
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts462 '<p>hey <a href="https://matrix.to/#/@user:localDomain.com">User Real Name</a>, here its <a href="https://matrix.t
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts469 **Paragraph text**: **Bold** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facili
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts469 **Paragraph text**: **Bold** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facili
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts473 _Italict Text_: _Italict_ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facilisis
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts473 _Italict Text_: _Italict_ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales, enim et facilisis
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts668 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts668 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts670 const formattedMessage = `${quotedMessage}<p><a href="https://matrix.to/#/@user:externalDomain.com">@user:externalDom
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts670 const formattedMessage = `${quotedMessage}<p><a href="https://matrix.to/#/@user:externalDomain.com">@user:externalDom
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts746 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
LOW…/federation-matrix/src/helpers/message.parsers.spec.ts746 > Quote test: **Bold** _Italic_ Lorem ipsum dolor sit amet
269 more matches not shown…
Hyper-Verbose Identifiers155 hits · 156 pts
SeverityFileLineSnippet
LOWee/packages/license/src/deprecated.ts30export function getUnmodifiedLicenseAndModules(this: LicenseManager) {
LOW…ages/omni-core-ee/src/isDepartmentCreationAvailable.ts4export function isDepartmentCreationAvailablePatch(): void {
LOW…rc/outbound-communication/validators/canSendMessage.ts8export async function validateAgentAssignPermissions(userId: string, agentId: string): Promise<void> {
LOWee/packages/omni-core-ee/src/units/getUnitsFromUser.ts11async function getDepartmentsFromUserRoles(user: string): Promise<string[]> {
LOWee/packages/abac/src/helper.ts93export function validateAndNormalizeAttributes(attributes: Record<string, string[]>): IAbacAttributeDefinition[] {
LOWee/packages/abac/src/helper.ts93export function validateAndNormalizeAttributes(attributes: Record<string, string[]>): IAbacAttributeDefinition[] {
LOWee/packages/abac/src/helper.ts153export async function ensureAttributeDefinitionsExist(normalized: IAbacAttributeDefinition[]): Promise<void> {
LOWee/packages/abac/src/helper.ts179export function buildNonCompliantConditions(newAttributes: IAbacAttributeDefinition[]) {
LOWee/packages/abac/src/helper.ts203export function buildRoomNonCompliantConditionsFromSubject(subjectAttributes: IAbacAttributeDefinition[]) {
LOW…-calls/src/server/signals/getSignalsForExistingCall.ts9export async function getSignalsForExistingCall(call: IMediaCall, uid: IUser['_id'], contractId: string): Promise<Server
LOWee/packages/federation-matrix/src/setup.ts35export function configureFederationMatrixSettings(settings: {
LOW…atrix/src/api/middlewares/isFederationDomainAllowed.ts25function parseMatrixAuthorizationHeader(header: string): Record<string, string> {
LOWee/packages/federation-matrix/src/events/member.ts76async function getOrCreateFederatedUser(userId: string): Promise<IUser> {
LOWee/packages/federation-matrix/src/events/member.ts101async function getOrCreateFederatedRoom({
LOWee/packages/federation-matrix/src/events/member.ts281function downloadAndSetAvatarDebounced(userId: string, user: IUser, newAvatarUrl: string | null): void {
LOW…ration-matrix/src/helpers/validateFederatedUsername.ts6export function validateFederatedUsername(mxid: string): mxid is UserID {
LOW…tion-matrix/src/helpers/createOrUpdateFederatedUser.ts11export async function createOrUpdateFederatedUser(options: { username: string; name?: string; origin: string }): Promise
LOWscripts/auto-close-duplicates.ts41function extractDuplicateIssueNumber(commentBody: string): number | null {
LOWpackages/tools/src/convertPathsIntoSubObjects.ts1export function convertPathsIntoSubObjects(object: Record<string, any>): Record<string, any> {
LOWpackages/tools/src/convertSubObjectsIntoPaths.ts3export function convertSubObjectsIntoPaths(object: Record<string, any>, parentPath?: string): Record<string, any> {
LOW…rc/MessageFooterCallout/MessageFooterCalloutAction.tsx8 function MessageFooterCalloutAction(props, ref) {
LOW…c/MessageFooterCallout/MessageFooterCalloutDivider.tsx5const MessageFooterCalloutDivider = forwardRef<HTMLButtonElement>(function MessageFooterCalloutDivider(props, ref): Reac
LOW…c/MessageFooterCallout/MessageFooterCalloutContent.tsx8 function MessageFooterCalloutContent(props, ref) {
LOWpackages/core-typings/src/IMessage/IMessage.ts249export function isEncryptedMessageContent(value: unknown): value is EncryptedMessageContent {
LOW…n/src/components/LoginSwitchLanguageFooter.stories.tsx14 createElement(function ExampleTranslationDecorator() {
LOW…/src/definition/uikit/UIKitIncomingInteractionTypes.ts59export function isMessageBoxIncomingInteraction(
LOW…c/definition/uikit/UIKitInteractionPayloadFormatter.ts38function isContextualBarInteraction(type: IUIKitInteraction['type']): type is IUIKitContextualBarInteraction['type'] {
LOW…c/definition/uikit/UIKitInteractionPayloadFormatter.ts46export function formatContextualBarInteraction(
LOWpackages/random/src/createAleaGenerator.ts21export function createAleaGeneratorWithGeneratedSeed() {
LOW…nts/MultiSelectCustom/MultiSelectCustomListWrapper.tsx7const MultiSelectCustomListWrapper = forwardRef<Element, MultiSelectCustomListWrapperProps>(function MultiSelectCustomLi
LOW…nents/Contextualbar/ContextualbarScrollableContent.tsx8 function ContextualbarScrollableContent({ children, ...props }, ref) {
LOW…components/Contextualbar/ContextualbarEmptyContent.tsx6 function ContextualbarEmptyContent(props, ref) {
LOW…/apps/src/server/runtime/deno/AppsEngineDenoRuntime.ts101function generateEphemeralDenoConfig(targetPath: string, denoConfigPath: string, appsEnginePath: string): void {
LOWpackages/apps/deno-runtime/error-handlers.ts3export function unhandledRejectionListener(event: PromiseRejectionEvent) {
LOWpackages/apps/deno-runtime/error-handlers.ts20export function unhandledExceptionListener(event: ErrorEvent) {
LOW…kages/apps/deno-runtime/lib/sanitizeDeprecatedUsage.ts3function hasPotentialDeprecatedUsage(source: string) {
LOWpackages/apps/deno-runtime/lib/ast/mod.ts51export function fixBrokenSynchronousAPICalls(appSource: string): string {
LOWpackages/apps/deno-runtime/lib/ast/operations.ts103export function buildFixModifiedFunctionsOperation(functionIdentifiers: Set<string>): FullAncestorWalkerCallback<WalkerS
LOW…elease-action/src/fixWorkspaceVersionsBeforePublish.ts20export async function fixWorkspaceVersionsBeforePublish() {
LOW…tistics/server/lib/getContactVerificationStatistics.ts6export async function getContactVerificationStatistics(): Promise<IStats['contactVerification']> {
LOW…/app/meteor-accounts-saml/server/methods/samlLogout.ts12function getSamlServiceProviderOptions(provider: string): IServiceProviderOptions {
LOW…app/meteor-accounts-saml/server/lib/getSAMLEnvelope.ts25async function performBindingSpecificDecoding(binding: SAMLBinding, buffer: Buffer<ArrayBuffer>): Promise<Buffer<ArrayBu
LOW…saml/server/lib/signature/validateRedirectSignature.ts7export function validateRedirectSignature(envelope: SAMLRedirectEnvelope, certificate: string): boolean {
LOW…ccounts-saml/server/lib/generators/AuthorizeRequest.ts13function resolveCustomAuthnContext(serviceProviderOptions: IServiceProviderOptions): string | undefined;
LOW…ccounts-saml/server/lib/generators/AuthorizeRequest.ts14function resolveCustomAuthnContext(serviceProviderOptions: IServiceProviderOptions, defaultValue: string): string;
LOW…ccounts-saml/server/lib/generators/AuthorizeRequest.ts15function resolveCustomAuthnContext(serviceProviderOptions: IServiceProviderOptions, defaultValue?: string): string | und
LOWapps/meteor/app/crowd/server/crowd.ts19function fallbackDefaultAccountSystem(bind: typeof Accounts, username: string | Record<string, any>, password: string) {
LOWapps/meteor/app/push/server/fcm.ts111function getFCMMessagesFromPushData(userTokens: string[], notification: PendingPushNotification): { message: FCMMessage
LOW…eteor/app/emoji-custom/server/lib/uploadEmojiCustom.ts32export async function uploadEmojiCustomWithBuffer(
LOWapps/meteor/app/livechat/server/business-hour/Helper.ts56export async function makeAgentsUnavailableBasedOnBusinessHour(agentIds?: string[]) {
LOWapps/meteor/app/livechat/server/business-hour/Helper.ts82export async function makeOnlineAgentsAvailable(agentIds?: string[]) {
LOWapps/meteor/app/livechat/server/lib/custom-fields.ts22export async function updateContactsCustomFields(
LOWapps/meteor/app/livechat/server/lib/custom-fields.ts99export async function setMultipleVisitorCustomFields(
LOWapps/meteor/app/livechat/server/lib/utils.ts56export async function allowAgentChangeServiceStatus(statusLivechat: ILivechatAgentStatus, agentId: string) {
LOWapps/meteor/app/livechat/server/lib/hooks.ts50export async function afterDepartmentUnarchived(department: AtLeast<ILivechatDepartment, '_id' | 'businessHourId'>) {
LOWapps/meteor/app/livechat/server/lib/guests.ts87export async function removeContactsByVisitorId({ _id }: { _id: string }) {
LOW…echat/server/lib/contacts/getContactChannelsGrouped.ts4export async function getContactChannelsGrouped(contactId: string): Promise<ILivechatContactChannel[]> {
LOW…/server/lib/contacts/migrateVisitorIfMissingContact.ts8export async function migrateVisitorIfMissingContact(
LOW…t/server/lib/contacts/getContactManagerIdByUsername.ts5export async function getContactManagerIdByUsername(
LOW…echat/server/lib/contacts/migrateVisitorToContactId.ts11export async function migrateVisitorToContactId({
95 more matches not shown…
Over-Commented Block48 hits · 48 pts
SeverityFileLineSnippet
LOWpackages/message-parser/tests/unorderedList.test.ts61 // [paragraph([])],
LOWpackages/release-changelog/tsconfig.json1{
LOWpackages/release-changelog/tsconfig.json21 // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory func
LOWpackages/release-changelog/tsconfig.json41 // "customConditions": [], /* Conditions to set in addition to the resolver-specific defau
LOWpackages/release-changelog/tsconfig.json61 // "importHelpers": true, /* Allow importing helper functions from tslib once per project
LOWpackages/release-changelog/tsconfig.json81 // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlate
LOWpackages/livechat/src/lib/connection.ts41 // timer = setTimeout(async () => {
LOWpackages/livechat/src/lib/uiKit.js61 if ([UIKitInteractionType.ERRORS].includes(type)) {
LOWpackages/livechat/src/lib/uiKit.js81 }
LOWpackages/core-services/src/types/IBroker.ts1import type { IServiceClass } from './ServiceClass';
LOWpackages/random/src/RandomGenerator.ts1// We use cryptographically strong PRNGs (crypto.getRandomBytes() on the server,
LOWpackages/ddp-client/src/Connection.ts1import { Emitter } from '@rocket.chat/emitter';
LOWpackages/ddp-client/src/Connection.ts161 this.ws = ws;
LOWpackages/ddp-client/src/Connection.ts181 // }
LOWpackages/release-action/tsconfig.json1{
LOWpackages/release-action/tsconfig.json21 // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory func
LOWpackages/release-action/tsconfig.json41 // "customConditions": [], /* Conditions to set in addition to the resolver-specific defau
LOWpackages/release-action/tsconfig.json61 // "importHelpers": true, /* Allow importing helper functions from tslib once per project
LOWpackages/release-action/tsconfig.json81 // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlate
LOWpackages/cas-validate/src/validate.ts21 ticket?: string;
LOWpackages/cas-validate/src/validate.ts61function parseRubyCasAttributes(elemSuccess: Cheerio<any>, cheerio: CheerioAPI): Record<string, string[]> {
LOWpackages/cas-validate/src/validate.ts121 // <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
LOW.github/workflows/codeql-analysis.yml41 # ℹ️ Command-line programs to run using the OS shell.
LOW.github/agents/bug-resolution-agent.md81### Example
LOW.github/agents/refactor-agent.md81// Problem: <Detailed description of what is wrong>
LOWapps/meteor/.codeclimate.yml1# This is a sample .codeclimate.yml configured for Engine analysis on Code
LOWapps/meteor/app/ui/client/lib/codeMirror/codeMirror.ts1import 'codemirror/addon/fold/brace-fold.js';
LOWapps/meteor/app/ui/client/lib/codeMirror/codeMirror.ts121
LOWapps/meteor/app/ui/client/lib/codeMirror/codeMirror.ts141// import 'codemirror/theme/night.css';
LOWapps/meteor/app/utils/client/lib/SDKClient.ts161
LOWapps/meteor/app/utils/client/lib/SDKClient.ts361// socket).
LOWapps/meteor/app/lib/server/lib/processDirectEmail.ts81 // if (roomInfo.t === 'c') {
LOW…teor/ee/app/livechat-enterprise/server/api/lib/tags.ts21
LOWapps/meteor/tests/unit/app/markdown/client.tests.js461// describe('Marked', function() {
LOWapps/meteor/server/startup/serverRunning.ts101 // if (!(await Users.bannerExistsById(id))) {
LOWapps/meteor/packages/autoupdate/autoupdate_client.js1// Subscribe to the `meteor_autoupdate_clientVersions` collection,
LOWapps/meteor/packages/autoupdate/autoupdate_server.js1// Publish the current client versions for each client architecture
LOWapps/meteor/packages/autoupdate/autoupdate_server.js21// reload only after major changes, use a custom AUTOUPDATE_VERSION and
LOWapps/meteor/client/meteor/overrides/ddpOverREST.ts61 // Note on login routing: `login + resume` is bypassed in shouldBypass
LOWapps/meteor/client/meteor/overrides/stubMeteorStream.ts181 session: 'sdk-bridged',
LOWapps/meteor/client/meteor/overrides/stubMeteorStream.ts201 // _streamHandlers.onReset → _handleOutstandingMethodsOnReset (resends
LOWapps/meteor/client/meteor/overrides/stubMeteorStream.ts221 } catch (err) {
LOWapps/meteor/client/providers/AuthorizationProvider.tsx41 // Permissions and Roles change infrequently (admin-driven or login-time only);
LOWapps/meteor/client/lib/sdk/ddpSdk.ts221if (typeof window !== 'undefined' && isSdkTransportEnabled()) {
LOWapps/meteor/client/lib/sdk/ddpSdk.ts241 // - the error is auth-shaped (`isAuthError`) AND
LOWapps/meteor/client/lib/sdk/ddpSdk.ts261 // Meteor's onReconnect path will retry through stubMeteorStream
LOWapps/meteor/client/lib/sdk/ddpSdk.ts281 if (uid) {
LOWapps/meteor/client/startup/startup.ts61 }
Verbosity Indicators23 hits · 44 pts
SeverityFileLineSnippet
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1820 // Step 1: Create a room on Synapse
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1823 // Step 2: Invite RC user from Synapse
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1826 // Step 3: RC user accepts the invite
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1846 // Step 4: Kick RC user from Synapse
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1859 // Step 5: Send a message from Synapse (while RC user is kicked)
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1864 // Step 6: Re-invite the same RC user from Synapse
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1867 // Step 7: Validate the invite was created successfully on the RC side
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1887 // Step 1: Create a room on Synapse
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1890 // Step 2: Invite RC user from Synapse
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1893 // Step 3: RC user accepts the invite
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1913 // Step 4: RC user leaves the room
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1930 // Step 5: Send a message from Synapse (while RC user has left)
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1935 // Step 6: Re-invite the same RC user from Synapse
LOW…ckages/federation-matrix/tests/end-to-end/room.spec.ts1938 // Step 7: Validate the invite was created successfully on the RC side
LOWee/packages/federation-matrix/src/events/member.ts314 // TODO if there is no avatar_url we may want to validate first if we should remove the user avatar because if may be
LOW…e/app/canned-responses/server/hooks/cannedResponses.ts8 // when the license is enabled, we need to check if the feature is enabled
LOWapps/meteor/tests/data/file.helper.ts28 // Step 1: Upload file to rooms.media/:rid
LOWapps/meteor/tests/data/file.helper.ts42 // Step 2: Confirm and send message with rooms.mediaConfirm/:rid/:fileId
LOWapps/meteor/packages/autoupdate/autoupdate_server.js59 // Step 1: load the current client program on the server
LOWapps/meteor/packages/autoupdate/autoupdate_server.js71 // Step 2: update __meteor_runtime_config__.autoupdate.versions.
LOWapps/meteor/packages/autoupdate/autoupdate_server.js83 // Step 3: form the new client boilerplate which contains the updated
LOWapps/meteor/packages/autoupdate/autoupdate_server.js89 // Step 4: update the ClientVersions collection.
LOWapps/meteor/client/lib/2fa/process2faReturn.ts95 // if the promise is rejected, we need to check if it's a 2fa error
Decorative Section Separators7 hits · 21 pts
SeverityFileLineSnippet
MEDIUM…s/federation-matrix/docker-compose/hs1/homeserver.yaml56# --------------------------------------------------------------------
MEDIUM…s/federation-matrix/docker-compose/hs1/homeserver.yaml58# --------------------------------------------------------------------
MEDIUMpackages/message-parser/benchmarks/parser.bench.ts16// ── Options presets ────────────────────────────────────────────────────────
MEDIUMpackages/message-parser/benchmarks/parser.bench.ts27// ── Fixture type ───────────────────────────────────────────────────────────
MEDIUMpackages/message-parser/benchmarks/parser.bench.ts42// ── Categories ─────────────────────────────────────────────────────────────
MEDIUMpackages/message-parser/benchmarks/parser.bench.ts182// ── Helpers ────────────────────────────────────────────────────────────────
MEDIUMpackages/message-parser/benchmarks/parser.bench.ts196// ── Runner ─────────────────────────────────────────────────────────────────
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOW…deration-matrix/tests/scripts/run-integration-tests.sh196# Check if docker-compose.test.yml exists
LOW.github/actions/docker-image-size-tracker/action.yml169 # Check if it's a manifest list (multi-arch)
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM.github/actions/docker-image-size-tracker/action.yml226 # Create a separate worktree for history branch
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOW…r/ee/server/services/.config/prometheus/prometheus.yml10# If you use a Docker-based setup make sure to use the DNS
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippet
LOW.cursor/files/test-cases.json1{"cases":[],"suites":[{"id":606,"title":"Rocket.Chat","description":null,"preconditions":null,"suites":[{"id":6,"title":