Repository Analysis

mattermost/mattermost

Mattermost is an open source platform for secure collaboration across the entire software development lifecycle..

1.5 Likely human-written View on GitHub
1.5
Adjusted Score
1.5
Raw Score
100%
Time Factor
2026-05-30
Last Push
36,894
Stars
TypeScript
Language
2,252,308
Lines of Code
8247
Files
2198
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 12HIGH 13MEDIUM 369LOW 1804

Pattern Findings

2198 matches across 15 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1062 hits · 1109 pts
SeverityFileLineSnippet
LOWwebapp/platform/types/src/access_control.ts116export function hasOverlappingPermissionRules(rules?: AccessControlPolicyRule[]): boolean {
LOWwebapp/platform/types/src/access_control.ts159export function buildRulesWithPermissionRules(existingRules: AccessControlPolicyRule[], permissionRules: AccessControlPo
LOW…pp/platform/components/src/hooks/useFocusTrap.test.tsx39function NestedFocusTrapsComponent() {
LOWwebapp/platform/client/src/client4.ts5146export function parseAndMergeNestedHeaders(originalHeaders: any) {
LOWwebapp/channels/webpack.config.js324async function initializeModuleFederation() {
LOWwebapp/channels/src/entry.tsx79function appendOnDOMContentLoadedEvent(onDomContentReady: () => void) {
LOWwebapp/channels/src/plugins/registry.ts76function dispatchPluginComponentAction(name: keyof PluginsState['components'], pluginId: string, component: React.Compon
LOWwebapp/channels/src/plugins/index.ts237function addPluginRegisteredHandler(pluginId: string, listener: PluginRegisteredListener) {
LOWwebapp/channels/src/tests/helpers/line_break_helpers.ts83export function testComponentForLineBreak(generateInstance: (input: string) => JSX.Element, getValue: (container: HTMLEl
LOWwebapp/channels/src/utils/syntax_highlighting.tsx45export function getLanguageFromFileExtension(extension: string): string | null {
LOWwebapp/channels/src/utils/syntax_highlighting.tsx71function getLanguageFromNameOrAlias(name: string) {
LOWwebapp/channels/src/utils/post_utils.ts275function canAutomaticallyCloseBackticks(message: string) {
LOWwebapp/channels/src/utils/post_utils.ts359export function isErrorInvalidSlashCommand(error: ServerError | null): boolean {
LOWwebapp/channels/src/utils/post_utils.ts448export function makeGetMentionsFromMessage(): (state: GlobalState, post: Post) => Record<string, UserProfile> {
LOWwebapp/channels/src/utils/post_utils.ts660export function splitMessageBasedOnCaretPosition(caretPosition: number, message: string): {firstPiece: string; lastPiece
LOWwebapp/channels/src/utils/post_utils.ts666export function splitMessageBasedOnTextSelection(selectionStart: number, selectionEnd: number, message: string): {firstP
LOWwebapp/channels/src/utils/post_utils.ts672export function areConsecutivePostsBySameUser(post: Post, previousPost: Post): boolean {
LOWwebapp/channels/src/utils/post_utils.ts732export function matchUserMentionTriggersWithMessageMentions(userMentionKeys: UserMentionKey[],
LOWwebapp/channels/src/utils/post_utils.ts748export function makeGetUniqueReactionsToPost(): (state: GlobalState, postId: Post['id']) => Record<string, Reaction> | u
LOWwebapp/channels/src/utils/post_utils.ts773export function makeGetUniqueEmojiNameReactionsForPost(): (state: GlobalState, postId: Post['id']) => string[] | undefin
LOWwebapp/channels/src/utils/post_utils.ts798export function makeGetIsReactionAlreadyAddedToPost(): (state: GlobalState, postId: Post['id'], emojiName: string) => bo
LOWwebapp/channels/src/utils/post_utils.ts823export function getPotentialMentionsForName(mentionName: string): string[] {
LOWwebapp/channels/src/utils/post_utils.ts848export function getUserOrGroupFromMentionName(
LOWwebapp/channels/src/utils/post_utils.ts870export function mentionsMinusSpecialMentionsInText(message: string) {
LOWwebapp/channels/src/utils/post_utils.ts883export function makeGetUserOrGroupMentionCountFromMessage(): (state: GlobalState, message: Post['message']) => number {
LOWwebapp/channels/src/utils/post_utils.ts907export function hasRequestedPersistentNotifications(priority?: PostPriorityMetadata) {
LOWwebapp/channels/src/utils/burn_on_read_timer_utils.ts63export function getAriaAnnouncementInterval(remainingMs: number): number {
LOWwebapp/channels/src/utils/timezone.ts19export function getCurrentDateForTimezone(timezone: string) {
LOWwebapp/channels/src/utils/timezone.ts24export function getCurrentDateTimeForTimezone(timezone: string) {
LOWwebapp/channels/src/utils/timezone.ts29export function getCurrentMomentForTimezone(timezone?: string) {
LOWwebapp/channels/src/utils/file_utils.tsx38export function isMobileFileUploadsEnabled(config: Partial<ClientConfig>): boolean {
LOWwebapp/channels/src/utils/text_formatting.test.ts116 function runSuccessfulAtMentionTests(leadingText = '', trailingText = '') {
LOWwebapp/channels/src/utils/text_formatting.test.ts134 function runUnsuccessfulAtMentionTests(leadingText = '', trailingText = '') {
LOWwebapp/channels/src/utils/text_formatting.test.ts145 function runUnsuccessfulAtMentionTestsMatchingNonSpecialMentions(leadingText = '', trailingText = '') {
LOWwebapp/channels/src/utils/notifications.ts97export function isNotificationAPISupported() {
LOWwebapp/channels/src/utils/notifications.ts101export function getNotificationPermission(): NotificationPermission | null {
LOWwebapp/channels/src/utils/notifications.ts109export async function requestNotificationPermission(): Promise<NotificationPermission | null> {
LOWwebapp/channels/src/utils/dialog_conversion.ts513export function transformServerDialogToProps(serverDialog: ServerDialogResponse): TransformedDialogProps {
LOWwebapp/channels/src/utils/dialog_conversion.ts649export function convertServerDialogResponseToAppForm(
LOWwebapp/channels/src/utils/dialog_conversion.ts673export function convertAppFormValuesToDialogSubmission(
LOWwebapp/channels/src/utils/server_version.tsx13export function isServerVersionGreaterThanOrEqualTo(currentVersion: string, compareVersion: string): boolean {
LOWwebapp/channels/src/utils/channel_utils.tsx156export function getChannelRoutePathAndIdentifier(channel: Pick<Channel, 'type' | 'name'>, dmUsername?: string): {path: s
LOWwebapp/channels/src/utils/channel_utils.tsx190export function isMembershipPolicyEnforced(channel?: Pick<Channel, 'policy_enforced' | 'policy_actions'> | null): boolea
LOWwebapp/channels/src/utils/channel_utils.tsx207export function isChannelAccessControlled(channel?: Pick<Channel, 'policy_enforced'> | null): boolean {
LOWwebapp/channels/src/utils/policy_roles_adapter.ts109function mutateRolesBasedOnMapping(mappingKey: MappingKeyTypes, value: 'true' | 'false', roles: Record<string, Role>) {
LOWwebapp/channels/src/utils/team_utils.tsx7function compareTeamsByDisplayName(locale: string, a: Team, b: Team) {
LOWwebapp/channels/src/utils/admin_console_index.tsx92export function adminDefinitionsToUrlsAndTexts(adminDefinition: typeof AdminDefinition, intl: IntlShape) {
LOWwebapp/channels/src/utils/notification_sounds.tsx100export function getValueOfNotificationSoundsSelect(soundName?: string) {
LOWwebapp/channels/src/utils/notification_sounds.tsx159export function getValueOfIncomingCallSoundsSelect(soundName?: string) {
LOWwebapp/channels/src/utils/notification_sounds.tsx240export function convertDesktopSoundNotifyPropFromUserToDesktop(userNotifyDesktopSound?: UserNotifyProps['desktop_sound']
LOWwebapp/channels/src/utils/url.tsx40export function getSiteURLFromWindowObject(obj: WindowObject): string {
LOWwebapp/channels/src/utils/url.tsx67export function getBasePathFromWindowObject(obj: WindowObject): string {
LOWwebapp/channels/src/utils/url.tsx227export function mightTriggerExternalRequest(url: string, siteURL?: string): boolean {
LOWwebapp/channels/src/utils/cloud_utils.ts8export function buildInvoiceSummaryPropsFromLineItems(lineItems: InvoiceLineItem[]) {
LOWwebapp/channels/src/utils/limits.tsx39export function anyUsageDeltaExceededLimit(deltas: CloudUsage) {
LOWwebapp/channels/src/utils/message_html_to_component.tsx302export function convertPropsToReactStandard(propsToConvert: AllHTMLAttributes<HTMLElement>): Record<string, unknown> {
LOWwebapp/channels/src/utils/date_utils.ts94function resolveRelativeDateToMoment(dateStr: string, timezone?: string): Moment | null {
LOWwebapp/channels/src/utils/properties.ts20export function getUserPropertyFieldLabel(
LOWwebapp/channels/src/utils/text_formatting.tsx442 function replaceAtMentionWithToken(fullMatch: string, username: string) {
LOWwebapp/channels/src/utils/text_formatting.tsx515 function replaceChannelMentionWithToken(
1002 more matches not shown…
Self-Referential Comments288 hits · 898 pts
SeverityFileLineSnippet
MEDIUMserver/docker-compose.pgvector.yml2# This file is used when MM_USE_PGVECTOR=true is set
MEDIUM…channels/websocket/channel_created/new_sidebar_spec.js24 // # Create a new channel from another session
MEDIUM…channels/websocket/channel_created/old_sidebar_spec.js24 // # Create a new channel from another session
MEDIUM…ation/channels/subpath/subpath_channel_routing_spec.js48 // # Create a new channel
MEDIUM…ation/channels/subpath/subpath_channel_routing_spec.js82 // # Create a direct channel between two users
MEDIUM…integration/channels/subpath/subpath_dm_search_spec.js41 // # Create a user on other subpath server
MEDIUM…nel_settings/more_unreads_position_with_scroll_spec.ts22 // # Create a user and a team (done by apiInitSetup)
MEDIUM…ation/channels/channel_settings/channel_header_spec.ts38 // # Create a new public channel and then private channel
MEDIUM…ation/channels/channel_settings/channel_header_spec.ts61 // # Create a GM with admin, user1 and user 2
MEDIUM…nels/channel_settings/channel_name_validations_spec.ts104 // # Create a new test channel and navigate to it
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts188 // # Create a new channel
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts231 // # Create a new user
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts235 // # Create a custom user group
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts237 // # Create a new channel
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts275 // # Create a new user
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts277 // # Create a guest user
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts281 // # Create a custom user group
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts283 // # Create a new channel
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts325 // # Create a new user
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts329 // # Create a custom user group
MEDIUM…channels/channel_settings/add_users_to_channel_spec.ts331 // # Create a new channel
MEDIUM…ess/tests/integration/channels/autocomplete/helpers.ts11 // # Create a private channel as sysadmin
MEDIUM…ess/tests/integration/channels/autocomplete/helpers.ts16 // # Create a public channel as sysadmin
MEDIUM…ess/tests/integration/channels/autocomplete/helpers.ts193 // # Create a channel as sysadmin
MEDIUM…prise/system_console/reporting/site_statistics_spec.js110 // # Create a bot and get userID
MEDIUM…m_console/compliance/data_retention_policies_2_spec.js234 // # Create a new Team and Channel
MEDIUM…m_console/compliance/data_retention_policies_2_spec.js241 // # Create a new channel in newTeam
MEDIUM…m_console/compliance/data_retention_policies_2_spec.js284 // # Create a new channel
MEDIUM…m_console/compliance/data_retention_policies_3_spec.js240 // # Create a new Channel
MEDIUM…m_console/compliance/data_retention_policies_4_spec.js59 // # Create a new team
MEDIUM…compliance/download_bot_compliance_export_file_spec.js43 //# Create a test bot
MEDIUM…onsole/channel_moderation/higher_scoped_scheme_spec.ts175 // # Create a new team override scheme and remove manage public channel members
MEDIUM…onsole/channel_moderation/higher_scoped_scheme_spec.ts212 // # Create a new team override scheme and remove manage private channel members from it
MEDIUM…stem_console/channel_moderation/post_reactions_spec.ts189 // # Create a new team override scheme
MEDIUM…stem_console/channel_moderation/manage_members_spec.ts159 // # Create a new team override scheme and remove manage members option for members
MEDIUM…ntegration/channels/enterprise/ldap/ldap_guest_spec.ts188 // # Create a new team
MEDIUM…ation/channels/enterprise/ldap/ldap_group_sync_spec.ts76 // # Create a test channel
MEDIUM…nnels/enterprise/elasticsearch_autocomplete/helpers.ts45 // # Create a channel as sysadmin
MEDIUM…nnels/enterprise/elasticsearch_autocomplete/helpers.ts211 // # Create a private channel as sysadmin
MEDIUM…nnels/enterprise/elasticsearch_autocomplete/helpers.ts216 // # Create a public channel as sysadmin
MEDIUM…enterprise/elasticsearch_autocomplete/channels_spec.ts105 // # Create a private channel where the new user is not a member of
MEDIUM…enterprise/elasticsearch_autocomplete/channels_spec.ts117 // # Create a private channel where the new user is not a member of
MEDIUM…channels/enterprise/ldap_group/search_channels_spec.ts43 // # Create a channel.
MEDIUM…channels/enterprise/ldap_group/search_channels_spec.ts81 // # Create a new channel.
MEDIUM…channels/enterprise/ldap_group/search_channels_spec.ts104 // # Create a channel.
MEDIUM…enterprise/guest_accounts/guest_identification_spec.ts147 // # Create an account with Email and Password.
MEDIUM…/enterprise/guest_accounts/guest_experience_ui_spec.ts190 // # Create a new team
MEDIUM…ion/channels/enterprise/channel/channel_groups_spec.ts33 // # Create a new team and associate one group to the team
MEDIUM…gration/channels/enterprise/teams/search_teams_spec.js35 // # Create a new team.
MEDIUM…gration/channels/enterprise/teams/search_teams_spec.js69 // # Create a new team.
MEDIUM…gration/channels/enterprise/teams/search_teams_spec.js91 // # Create a team.
MEDIUM…els/enterprise/profile_popover/profile_popover_spec.ts99 // # Create a private channel
MEDIUM…/profile_popover/profile_popover_spec_user_a_b_spec.ts60 // # Create a new team
MEDIUM…rise/group_mentions/group_mentions_permissions_spec.ts129 // # Create a new channel so that regular user can be channel admin
MEDIUM…rise/group_mentions/group_mentions_permissions_spec.ts205 // # Create a new team and channel so that regular user can be team admin
MEDIUM…rise/group_mentions/group_mentions_permissions_spec.ts281 // # Create a new channel as a sysadmin
MEDIUM…/group_mentions/group_mentions_system_messages_spec.ts110 // # Create a new channel as a regular user
MEDIUM…/group_mentions/group_mentions_system_messages_spec.ts136 // # Create a new team and channel as a sysadmin
MEDIUM…/group_mentions/group_mentions_system_messages_spec.ts181 // # Create a new channel as a sysadmin
MEDIUM…/group_mentions/group_mentions_system_messages_spec.ts221 // # Create a new channel as a sysadmin
228 more matches not shown…
Over-Commented Block417 hits · 385 pts
SeverityFileLineSnippet
LOWwebapp/channels/src/root.tsx1// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
LOWwebapp/channels/src/utils/path.ts1// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
LOWwebapp/channels/src/utils/latinise.tsx381 Ẓ: 'Z', // LATIN CAPITAL LETTER Z WITH DOT BELOW
LOWwebapp/channels/src/utils/latinise.tsx581 // CANNOT FIND APPROXIMATION FOR 'LATIN SMALL LETTER ESH WITH CURL' (ʆ)
LOWwebapp/channels/src/utils/properties.ts21 field: Pick<UserPropertyField, 'name' | 'attrs'>,
LOW…ings_modal/channel_settings_permissions_policy_tab.tsx201
LOW…ings_modal/channel_settings_permissions_policy_tab.tsx241 // editor's "loading attributes…" gate; previously we
LOW…ings_modal/channel_settings_permissions_policy_tab.tsx261 //
LOW…ings_modal/channel_settings_permissions_policy_tab.tsx1081 isSystemAdmin={isSystemAdmin}
LOW…nels/src/components/admin_console/admin_definition.tsx161//
LOW…nels/src/components/admin_console/admin_definition.tsx181// Banner Widget (extends from Widget):
LOW…nels/src/components/admin_console/admin_definition.tsx201//
LOW…_policies/policy_details/permission_policy_details.tsx561
LOW…_policies/policy_details/permission_policy_details.tsx581 // the dual-lane simulation override
LOW…space-optimization/dashboard_checks/easy_management.ts81// if (config.GuestAccountsSettings?.RestrictCreationToDomains) {
LOW…space-optimization/dashboard_checks/easy_management.ts101// return {
LOW…s/admin_console/classification_markings/utils/index.ts1// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
LOW…s/admin_console/classification_markings/utils/index.ts21// 3. Channel field — linked-to-template; drives PER-CHANNEL banners.
LOW…rol/modals/simulate_access/decision_details_modal.scss1// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
LOW…rol/modals/simulate_access/decision_details_modal.scss241 border-radius: 4px;
LOW…cess_control/modals/simulate_access/decision_chip.scss1// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
LOW…trol/modals/simulate_access/simulate_access_modal.scss1// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
LOW…trol/modals/simulate_access/simulate_access_modal.scss61 flex: 1 1 auto;
LOW…trol/modals/simulate_access/simulate_access_modal.scss221
LOW…trol/modals/simulate_access/simulate_access_modal.scss261 overflow: hidden;
LOW…trol/modals/simulate_access/simulate_access_modal.scss381 &__table th:nth-child(2),
LOW…/modals/simulate_access/simulate_access_modal.test.tsx1081 // denier second (deny outcome). The editing draft's chip uses
LOW…/modals/simulate_access/simulate_access_modal.test.tsx1281
LOW…ntrol/modals/simulate_access/simulate_access_modal.tsx181 // after a faster second one).
LOW…ntrol/modals/simulate_access/simulate_access_modal.tsx401 } else {
LOW…trol/modals/simulate_access/decision_details_modal.tsx81 userAttributes,
LOW…trol/modals/simulate_access/decision_details_modal.tsx901 ) {
LOW…channels/src/components/inline_action_button/index.tsx41 // has no accessible name — WCAG 4.1.2).
LOW…ents/cloud_preview_modal/preview_modal_content_data.ts201 defaultMessage: 'Move faster and make fewer mistakes with checklist-based automations that power your team’s
LOW…ents/cloud_preview_modal/preview_modal_content_data.ts321 // {
LOW…rc/components/widgets/menu/menu_items/submenu_item.tsx21// Requires an object conforming to a submenu structure passed to registerPostDropdownSubMenuAction
LOW…bapp/channels/src/components/system_notice/notices.tsx1// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
LOW…ckages/mattermost-redux/src/reducers/entities/users.ts181 delete merged.remote_id;
LOW…es/mattermost-redux/src/selectors/entities/channels.ts721 // if channel is muted, we skip its count
LOWwebapp/channels/src/sass/base/_css_variables.scss121 // Z-Index Management
LOW…nts/skills/agent-browser/templates/capture-workflow.sh1#!/bin/bash
LOW…ents/skills/agent-browser/templates/form-automation.sh1#!/bin/bash
LOW…ents/skills/agent-browser/templates/form-automation.sh21agent-browser open "$FORM_URL"
LOW…kills/agent-browser/templates/authenticated-session.sh1#!/bin/bash
LOW…kills/agent-browser/templates/authenticated-session.sh81#
LOW…kills/agent-browser/templates/authenticated-session.sh101# # Save state for future runs
LOWserver/.sass-lint.yml1# sass-lint config generated by make-sass-lint-config v0.1.1
LOWserver/enterprise/message_export/shared/export_data.go21 UserType UserType // the type of the person that sent the post: "user" or "bot"
LOW…nterprise/elasticsearch/elasticsearch/elasticsearch.go241 }
LOWserver/platform/shared/filestore/azurestore.go141
LOWserver/platform/shared/filestore/azurestore.go421 }
LOWserver/platform/shared/filestore/azurestore.go461}
LOWserver/platform/shared/filestore/azurestore.go681// newAzureBlockID returns a fresh base64-encoded 16-byte random block ID,
LOWserver/platform/services/cache/lru_striped.go21//
LOWserver/tests/test-hashtags.md1# Hashtag Testing
LOWserver/public/plugin/hooks.go81)
LOWserver/public/plugin/hooks.go101
LOWserver/public/plugin/hooks.go121 //
LOWserver/public/plugin/hooks.go141
LOWserver/public/plugin/hooks.go161 MessageWillBePosted(c *Context, post *model.Post) (*model.Post, string)
357 more matches not shown…
Decorative Section Separators64 hits · 218 pts
SeverityFileLineSnippet
MEDIUMtools/sharedchannel-test/test_membership.go30 // ── Test: Add users and verify sync ─────────────────────
MEDIUMtools/sharedchannel-test/test_membership.go54 // ── Test: Remove one user and verify sync ───────────────
MEDIUMtools/sharedchannel-test/test_membership.go81 // ── Test: Re-add removed user ───────────────────────────
MEDIUMtools/sharedchannel-test/test_membership.go98 // ── Test: Bulk removal ──────────────────────────────────
MEDIUMtools/sharedchannel-test/test_reactions.go48 // ── Test: Add reaction and verify sync ──────────────────
MEDIUMtools/sharedchannel-test/test_reactions.go70 // ── Test: Remove reaction and verify sync ───────────────
MEDIUMtools/sharedchannel-test/test_posts.go39 // ── Test: Create post and verify sync ───────────────────
MEDIUMtools/sharedchannel-test/test_posts.go61 // ── Test: Edit post and verify sync ─────────────────────
MEDIUMtools/sharedchannel-test/test_posts.go80 // ── Test: Delete post and verify sync ───────────────────
MEDIUM…ings_modal/channel_settings_permissions_policy_tab.tsx339 // ── List filtering & pagination ───────────────────────────────────────
MEDIUM…ings_modal/channel_settings_permissions_policy_tab.tsx369 // ── Editor commit/cancel/draft helpers ────────────────────────────────
MEDIUM…ings_modal/channel_settings_permissions_policy_tab.tsx451 // ── Simulation: build the synthetic draft sent to /cel/simulate ──────
MEDIUM…ings_modal/channel_settings_permissions_policy_tab.tsx482 // ── Persist to backend ────────────────────────────────────────────────
MEDIUM…ings_modal/channel_settings_permissions_policy_tab.tsx583 // ── Render: editor view ───────────────────────────────────────────────
MEDIUM…ings_modal/channel_settings_permissions_policy_tab.tsx620 // ── Render: list view ────────────────────────────────────────────────
MEDIUM…ntrol/modals/simulate_access/simulate_access_modal.tsx184 // ── User fetch (search + pagination) ─────────────────────────────────
MEDIUM…kills/agent-browser/templates/authenticated-session.sh32# ================================================================
MEDIUM…kills/agent-browser/templates/authenticated-session.sh34# ================================================================
MEDIUM…kills/agent-browser/templates/authenticated-session.sh54# ================================================================
MEDIUM…kills/agent-browser/templates/authenticated-session.sh56# ================================================================
MEDIUM…kills/agent-browser/templates/authenticated-session.sh76# ================================================================
MEDIUM…kills/agent-browser/templates/authenticated-session.sh78# ================================================================
MEDIUMserver/public/plugin/client_rpc.go37// ┌─────────────────────────┐ ┌─────────────────────────┐
MEDIUMserver/public/plugin/client_rpc.go40// │ ┌───────────────────┐ │ hooks (calls) │ ┌───────────────────┐ │
MEDIUMserver/public/plugin/client_rpc.go41// │ │ hooksRPCClient │──┼───────────────────►│ │ hooksRPCServer │ │
MEDIUMserver/public/plugin/client_rpc.go42// │ └───────────────────┘ │ │ └───────────────────┘ │
MEDIUMserver/public/plugin/client_rpc.go44// │ ┌───────────────────┐ │ API (callbacks) │ ┌───────────────────┐ │
MEDIUMserver/public/plugin/client_rpc.go45// │ │ apiRPCServer │◄─┼────────────────────┼──│ apiRPCClient │ │
MEDIUMserver/public/plugin/client_rpc.go46// │ └───────────────────┘ │ │ └───────────────────┘ │
MEDIUMserver/public/plugin/client_rpc.go47// └─────────────────────────┘ └─────────────────────────┘
MEDIUMserver/channels/app/plugin_install.go15// ┌────────────────────────────┐
MEDIUMserver/channels/app/plugin_install.go16// │ ┌────────────────────────┐ │
MEDIUMserver/channels/app/plugin_install.go21// │ └────────────────────────┘ │
MEDIUMserver/channels/app/plugin_install.go24// │ ┌────────────────────────┐ │
MEDIUMserver/channels/app/plugin_install.go25// │ │plugins/ │ │ ┌────────────────────────┐
MEDIUMserver/channels/app/plugin_install.go29// │ │ │ │ └────────────────────────┘
MEDIUMserver/channels/app/plugin_install.go30// │ └────────────────────────┘ │
MEDIUMserver/channels/app/plugin_install.go31// │ ┌────────┤
MEDIUMserver/channels/app/plugin_install.go33// └───────────────────┴────────┘
MEDIUM…wright/specs/functional/system_console/abac/support.ts930 // ── Race-safe path: poll the exact job by ID ──────────────────────────
MEDIUM…wright/specs/functional/system_console/abac/support.ts963 // ── Legacy path: read the first row of the sync-jobs table ───────────
MEDIUM…ole/abac/file_access/file_permissions_download.spec.ts39// ─── Download Enforcement ────────────────────────────────────────────────────
MEDIUM…ole/abac/file_access/file_permissions_download.spec.ts115// ─── Attribute-Based Policy — Matching User ───────────────────────────────────
MEDIUM…ole/abac/file_access/file_permissions_download.spec.ts245// ─── Burn-on-Read and Permalink Edge Cases ────────────────────────────────────
MEDIUM…onsole/sections/system_attributes/system_properties.ts29 // ── Visibility ──────────────────────────────────────────────────────
MEDIUM…onsole/sections/system_attributes/system_properties.ts40 // ── Attribute row accessors ─────────────────────────────────────────
MEDIUM…onsole/sections/system_attributes/system_properties.ts99 // ── Attribute actions ───────────────────────────────────────────────
MEDIUM…onsole/sections/system_attributes/system_properties.ts158 // ── Save ────────────────────────────────────────────────────────────
MEDIUM…onsole/sections/system_attributes/system_properties.ts180 // ── Dot-menu ────────────────────────────────────────────────────────
MEDIUM…onsole/sections/system_attributes/system_properties.ts225 // ── Validation ──────────────────────────────────────────────────────
MEDIUM.github/workflows/e2e-tests-playwright.yml168 # ── Routing fork ─────────────────────────────────────────────────────
MEDIUM.github/workflows/e2e-tests-cypress.yml174 # ── Routing fork ─────────────────────────────────────────────────────
MEDIUM.github/workflows/server-test-template.yml140 # ── Test-level sharding ────────────────────────────────────────────
MEDIUM.github/workflows/server-test-template.yml149 # ─────────────────────────────────────────────────────────────────────
MEDIUM.github/scripts/check_config_changes_ci.py31# ── Environment ────────────────────────────────────────────────────────────────
MEDIUM.github/scripts/check_config_changes_ci.py58# ── Data types ─────────────────────────────────────────────────────────────────
MEDIUM.github/scripts/check_config_changes_ci.py82# ── Diff helpers ───────────────────────────────────────────────────────────────
MEDIUM.github/scripts/check_config_changes_ci.py151# ── Checker 1 — config.go ──────────────────────────────────────────────────────
MEDIUM.github/scripts/check_config_changes_ci.py217# ── Checker 2 — api4/ ─────────────────────────────────────────────────────────
MEDIUM.github/scripts/check_config_changes_ci.py309# ── Checker 3 — audit_events.go ───────────────────────────────────────────────
4 more matches not shown…
Redundant / Tautological Comments117 hits · 176 pts
SeverityFileLineSnippet
LOWserver/scripts/get_latest_release.sh36# Check if this is a release branch
LOW…ts/integration/channels/enterprise/oauth/oauth_spec.ts31 // # Set ServiceSettings to expected values
LOW…egration/channels/enterprise/ldap/ldap_setting_spec.ts50 // # Set back to what it was
LOW…rise/elasticsearch_autocomplete/system_console_spec.ts19 // # Check if server has license for Elasticsearch
LOW…enterprise/elasticsearch_autocomplete/channels_spec.ts33 // # Check if server has license for Elasticsearch
LOW…/channels/enterprise/ldap_group/group_mentions_spec.ts156 // # Set groupID to navigate to group page directly
LOW…enterprise/guest_accounts/guest_identification_spec.ts95 // # Check if user is allowed to enforce MFA for Guest accounts.
LOW…rise/group_mentions/group_mentions_permissions_spec.ts70 // # Set groupID to navigate to group page directly
LOW…/group_mentions/group_mentions_system_messages_spec.ts72 // # Set groupID to navigate to group page directly
LOW…enterprise/group_mentions/group_mentions_posts_spec.ts76 // # Set groupID1 to navigate to group page directly
LOW…enterprise/group_mentions/group_mentions_posts_spec.ts84 // # Set groupID1 to navigate to group page directly
LOW…on/channels/files_and_attachments/upload_files_spec.js396 // # Open file preview
LOW…_and_attachments/image_link_preview_new_window_spec.js42 // # Open file preview
LOW…nnels/files_and_attachments/file_preview_video_spec.js117 // # Open file preview
LOW…s/files_and_attachments/upload_files_not_cloud_spec.js68 // # Open file preview
LOW…s/files_and_attachments/upload_files_not_cloud_spec.js175 // # Open file preview
LOW…nnels/files_and_attachments/image_link_preview_spec.js222 // # Open file preview
LOW…els/files_and_attachments/file_preview_generic_spec.js111 // # Open file preview
LOW…nnels/files_and_attachments/file_preview_image_spec.js124 // # Open file preview
LOW…nnels/files_and_attachments/file_preview_audio_spec.js118 // # Open file preview
LOW…tegration/channels/system_console/demoted_user_spec.js26 // # Set user to be a sysadmin, so it can access the system console
LOW…ration/channels/system_console/user_management_spec.js221 // # Check if user's session is automatically logged out and the user is redirected to the login page
LOW…ests/integration/channels/toast/permalink_post_spec.js30 // # Check if ... button is visible in last post right side
LOW…els/message_forwarding/forward_message_from_dm_spec.js80 // # Check if ... button is visible in last post right side
LOW…els/message_forwarding/forward_message_from_dm_spec.js123 // # Check if ... button is visible in last post right side
LOW…orwarding/forward_message_from_private_channel_spec.js72 // # Check if ... button is visible in last post right side
LOW…orwarding/forward_message_from_private_channel_spec.js115 // # Check if ... button is visible in last post right side
LOW…els/message_forwarding/forward_message_from_gm_spec.js91 // # Check if ... button is visible in last post right side
LOW…els/message_forwarding/forward_message_from_gm_spec.js134 // # Check if ... button is visible in last post right side
LOW…forwarding/forward_message_from_public_channel_spec.js113 // # Check if ... button is visible in last post right side
LOW…forwarding/forward_message_from_public_channel_spec.js135 // # Check if ... button is visible in last post right side
LOW…forwarding/forward_message_from_public_channel_spec.js201 // # Check if ... button is visible in last post right side
LOW…forwarding/forward_message_from_public_channel_spec.js221 // # Check if ... button is visible in last post right side
LOW…forwarding/forward_message_from_public_channel_spec.js242 // # Check if ... button is visible in last post right side
LOW…sts/integration/channels/channel/leave_channel_spec.ts88 // # Set CRT to on
LOW…egration/channels/channel/restrict_dm_channels_spec.ts143 // # Check if the direct message channel is still in the sidebar
LOW…integration/channels/integrations/integrations_spec.js20 // # Set ServiceSettings to expected values
LOW…annels/integrations/incoming_webhook/copy_icon_spec.js14 // # Set ServiceSettings to expected values
LOW…/tests/integration/channels/search_filter/edit_spec.js56 // # Set clock to custom date and visit test channel like reloading a page to take effect
LOW…ion/channels/account_settings/account_settings_spec.ts33 // # Check if profile settings modal is open
LOW…/channels/collapsed_reply_threads/crt_settings_spec.ts34 // # Set CRT to off
LOW…/channels/collapsed_reply_threads/crt_settings_spec.ts40 // # Set CRT to on
LOW…s/accessibility/accessibility_account_settings_spec.js193 // # Check if language setting gets changed after user presses space
LOW…integration/channels/messaging/emoji_skin_tone_spec.js39 // # Set viewport to desktop and post gesture with skin tone
LOW…integration/channels/messaging/emoji_skin_tone_spec.js48 // # Set viewport to mobile
LOW…n/channels/messaging/message_edit_post_history_spec.ts148 // # Check if the edit history is visible
LOW…tion/channels/messaging/permalink_message_edit_spec.js50 // # Check if url include the permalink
LOW…tion/channels/messaging/permalink_message_edit_spec.js77 // # Check if url include the permalink
LOW…ntegration/channels/messaging/image_attachment_spec.js180 // # Open file preview
LOW…hannels/messaging/channel_read_after_permalink_spec.js53 // # Check if ... button is visible in last post right side
LOW…ration/channels/messaging/message_channel_draw_spec.js41 // # Open file upload options and select draw plugin
LOW…ration/channels/messaging/message_channel_draw_spec.js57 // # Open file upload options and select draw plugin
LOW…ration/channels/messaging/message_channel_draw_spec.js72 // # Open file upload options and select "Your Computer"
LOW…tegration/channels/messaging/message_permalink_spec.js50 // # Check if ... button is visible in last post right side
LOW…tegration/channels/messaging/message_permalink_spec.js99 // # Check if url include the permalink
LOW…ation/channels/move_thread/move_thread_from_gm_spec.js98 // # Check if ... button is visible in last post right side
LOW…ation/channels/move_thread/move_thread_from_gm_spec.js141 // # Check if ... button is visible in last post right side
LOW…ls/move_thread/move_thread_from_public_channel_spec.js114 // # Check if ... button is visible in last post right side
LOW…ls/move_thread/move_thread_from_public_channel_spec.js151 // # Check if ... button is visible in last post right side
LOW…ls/move_thread/move_thread_from_public_channel_spec.js168 // # Check if ... button is visible in last post right side
57 more matches not shown…
Fake / Example Data135 hits · 160 pts
SeverityFileLineSnippet
LOW…/channels/src/utils/message_html_to_component.test.tsx66 const input = 'lorem ipsum www.dolor.com sit amet';
LOW…/channels/src/utils/message_html_to_component.test.tsx74 const input = 'lorem ipsum www.dolor.com sit amet';
LOW…mponents/post_markdown/system_message_helpers.test.tsx85 workspace_name: 'Acme Corp',
LOW…mponents/post_markdown/system_message_helpers.test.tsx100 workspace_name: 'Acme Corp',
LOW…app/channels/src/components/markdown/markdown.test.tsx30 email: 'test@test.com',
LOW…_to_channel_modal/add_groups_to_channel_modal.test.tsx240 const option: any = {id: 'id', last_picture_update: '12345', email: 'test@test.com'};
LOW…nd_button/send_post_options/core_menu_options.test.tsx17const teammateDisplayName = 'John Doe';
LOW…/group_settings/group_details/group_users_row.test.tsx16 email='test@test.com'
LOW…/group_settings/group_details/group_users_row.test.tsx25 expect(screen.getByText('test@test.com')).toBeInTheDocument();
LOW…bar/default_announcement_bar/announcement_bar.test.tsx29 const wrapper = renderWithContext(<AnnouncementBar message={<span>{'Lorem Ipsum'}</span>}/>);
LOW…bar/default_announcement_bar/announcement_bar.test.tsx31 wrapper.getByText('Lorem Ipsum');
LOW…bar/default_announcement_bar/announcement_bar.test.tsx37 const wrapper = renderWithContext(<AnnouncementBar message={<span>{'Lorem Ipsum'}</span>}/>);
LOW…bar/default_announcement_bar/announcement_bar.test.tsx39 userEvent.hover(wrapper.getByText('Lorem Ipsum'));
LOWwebapp/channels/src/components/login/login.test.tsx501 await userEvent.type(emailInput, 'user@example.com');
LOWwebapp/channels/src/components/login/login.test.tsx538 await userEvent.type(emailInput, 'user@example.com');
LOWwebapp/channels/src/components/login/login.test.tsx547 expect(mockGetUserLoginType).toHaveBeenCalledWith('user@example.com');
LOWwebapp/channels/src/components/login/login.test.tsx576 await userEvent.type(emailInput, 'user@example.com');
LOWwebapp/channels/src/components/login/login.test.tsx611 await userEvent.type(emailInput, 'user@example.com');
LOWwebapp/channels/src/components/login/login.test.tsx655 await userEvent.type(emailInput, 'user@example.com');
LOWwebapp/channels/src/components/login/login.test.tsx667 expect(mockLogin).toHaveBeenCalledWith('user@example.com', 'password123', undefined);
LOWwebapp/channels/src/components/login/login.test.tsx719 await userEvent.type(emailInput, 'user@example.com');
LOWwebapp/channels/src/components/login/login.test.tsx755 await userEvent.type(emailInput, 'user@example.com');
LOW.agents/skills/agent-browser/SKILL.md23agent-browser fill @e1 "user@example.com"
LOW.agents/skills/agent-browser/SKILL.md39agent-browser fill @e1 "user@example.com" && agent-browser fill @e2 "password123" && agent-browser click @e3
LOW.agents/skills/agent-browser/SKILL.md110agent-browser fill @e1 "Jane Doe"
LOW…ents/skills/agent-browser/references/authentication.md31agent-browser fill @e1 "user@example.com"
LOW…ents/skills/agent-browser/references/authentication.md50agent-browser fill @e1 "user@example.com"
LOW…ents/skills/agent-browser/references/authentication.md107agent-browser fill @e1 "user@example.com"
LOW…gents/skills/agent-browser/references/snapshot-refs.md72agent-browser fill @e10 "user@example.com"
LOW…/skills/agent-browser/references/session-management.md29agent-browser --session auth fill @e1 "user@example.com"
LOW…ents/skills/agent-browser/templates/form-automation.sh32# agent-browser fill @e1 "John Doe" # Text input
LOW…ents/skills/agent-browser/templates/form-automation.sh33# agent-browser fill @e2 "user@example.com" # Email input
LOWserver/cmd/mmctl/commands/utils_test.go39 Base: map[string]any{"Person": "John Doe"},
LOWserver/cmd/mmctl/commands/utils_test.go46 Patch: map[string]any{"Person": "John Doe"},
LOWserver/cmd/mmctl/commands/utils_test.go47 Expected: map[string]any{"Person": "John Doe"},
LOWserver/cmd/mmctl/commands/channel_test.go24 userEmail = "user@example.com"
LOW…r/enterprise/message_export/shared/export_data_test.go193 UserEmail: new("test@test.com"),
LOW…r/enterprise/message_export/shared/export_data_test.go213 UserEmail: new("test@test.com"),
LOW…r/enterprise/message_export/shared/export_data_test.go223 {UserEmail: "test@test.com", UploadStartTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go227 {UserEmail: "test@test.com", UploadStopTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go244 UserEmail: new("test@test.com"),
LOW…r/enterprise/message_export/shared/export_data_test.go255 {UserEmail: "test@test.com", UploadStartTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go257 {UserEmail: "test@test.com", UploadStartTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go261 {UserEmail: "test@test.com", UploadStopTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go263 {UserEmail: "test@test.com", UploadStopTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go282 UserEmail: new("test@test.com"),
LOW…r/enterprise/message_export/shared/export_data_test.go292 {UserEmail: "test@test.com", UploadStartTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go296 {UserEmail: "test@test.com", UploadStopTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go322 UserEmail: new("test@test.com"),
LOW…r/enterprise/message_export/shared/export_data_test.go332 {UserEmail: "test@test.com", UploadStartTime: 1,
LOW…r/enterprise/message_export/shared/export_data_test.go336 {UserEmail: "test@test.com", UploadStopTime: 1,
LOWserver/enterprise/elasticsearch/common/common_test.go438 {Title: "Account Manager", Value: "John Doe"},
LOWserver/enterprise/elasticsearch/common/common_test.go471 assert.Contains(t, esPost.Attachments, "John Doe", "field value should be indexed")
LOWserver/public/model/license_test.go234 Email: "test@test.com",
LOWserver/public/model/license_test.go245 Email: "test@test.com",
LOWserver/public/model/user_test.go302 user.Email = "user@example.com"
LOWserver/public/model/user_test.go389 require.Equal(t, "user@example.com", user.Email)
LOWserver/public/model/user_test.go674 authData := "test@test.com"
LOWserver/public/model/link_metadata_test.go24const BigText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus maximus faucibus ex, vitae placerat ne
LOWserver/public/model/link_metadata_test.go24const BigText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus maximus faucibus ex, vitae placerat ne
75 more matches not shown…
Hallucination Indicators12 hits · 120 pts
SeverityFileLineSnippet
CRITICALserver/channels/app/plugin_api.go340 session, err := api.app.ch.srv.platform.GetSessionByID(api.ctx, sessionID)
CRITICALserver/channels/app/plugin_api.go345 if err := api.app.ch.srv.platform.ExtendSessionExpiry(session, expiresAt); err != nil {
CRITICALserver/channels/app/oauth_test.go278 th.App.ch.srv.platform.SetSessionExpireInHours(session, 24)
CRITICALserver/channels/app/plugin_api_test.go1411 th.App.ch.srv.platform.SetSqlStore(th.GetSqlStore()) // TODO: platform: check if necessary
CRITICALserver/channels/app/import_functions_test.go2094 _, _, err := th.App.ch.srv.teamService.JoinUserToTeam(th.Context, th.BasicTeam, user)
CRITICALserver/channels/app/searchengine.go57 return a.ch.srv.platform.SearchEngine.ActiveEngine()
CRITICALserver/channels/app/session_test.go325 cachedSession, errGet := th.App.ch.srv.platform.GetSession(th.Context, session.Token)
CRITICALserver/channels/app/plugin_requests_test.go94 th.App.ch.srv.Router.ServeHTTP(rr, req)
CRITICALserver/channels/app/plugin_requests_test.go115 th.App.ch.srv.RootRouter.ServeHTTP(rr, req)
CRITICALserver/channels/app/plugin_requests_test.go131 th.App.ch.srv.Router.ServeHTTP(rr, req)
CRITICALserver/channels/app/plugin_requests_test.go150 th.App.ch.srv.RootRouter.ServeHTTP(rr, req)
CRITICAL…ccount_settings/profile/profile_picture_change_spec.ts35 getProfilePictureId().then((idNew) => expect(idNew).to.exist.and.not.to.be.equal(this.idOld));
Verbosity Indicators64 hits · 116 pts
SeverityFileLineSnippet
LOW…l_settings_modal/channel_settings_access_rules_tab.tsx414 // Step 1: Build and save the policy object (without active field to avoid conflicts)
LOW…l_settings_modal/channel_settings_access_rules_tab.tsx432 // Step 2: Update the active status separately (like System Console does)
LOW…l_settings_modal/channel_settings_access_rules_tab.tsx441 // Step 3: Create a job to immediately sync channel membership when rules exist
LOW…m_channel_settings/channel/details/channel_details.tsx811 // Step 3: Create a job to immediately sync channel membership when rules exist
LOW…src/components/claim/components/ldap_to_email.test.tsx66 // Step 1: Submit the initial MFA form to trigger an error that shows the password form
LOW…src/components/claim/components/ldap_to_email.test.tsx76 // Step 2: Fill in the password form and submit
LOW…src/components/claim/components/ldap_to_email.test.tsx90 // Step 3: Submit the MFA form with the real token
LOW…ents/skills/agent-browser/templates/form-automation.sh20# Step 1: Navigate to form
LOW…ents/skills/agent-browser/templates/form-automation.sh24# Step 2: Snapshot to discover form elements
LOW…ents/skills/agent-browser/templates/form-automation.sh29# Step 3: Fill form fields (customize these refs based on snapshot output)
LOW…ents/skills/agent-browser/templates/form-automation.sh46# Step 4: Wait for submission
LOW…ents/skills/agent-browser/templates/form-automation.sh50# Step 5: Verify result
LOWserver/enterprise/message_export/shared/export_data.go198 // If the channel is not in channelsInThisBatch (i.e. if it didn't have a post), we need to check if it had
LOWserver/enterprise/elasticsearch/common/common_test.go420 // Step 1: Start with typed MessageAttachment (as a plugin/webhook would create)
LOWserver/enterprise/elasticsearch/common/common_test.go445 // Step 2: Simulate CreatePost JSON round-trip (post.go:305-315)
LOWserver/enterprise/elasticsearch/common/common_test.go457 // Step 3: Simulate ESPostFromPost (what the search layer calls)
LOWserver/enterprise/elasticsearch/common/common_test.go462 // Step 4: Verify all attachment fields are indexed
LOWserver/channels/app/server.go212 // Step 1: Platform.
LOWserver/channels/app/server.go229 // Step 2: Init Enterprise
LOWserver/channels/app/server.go283 // Step 4: Start platform
LOWserver/channels/app/server.go291 // Step 5: Initialize channels.
LOW…ared_channel_global_user_sync_self_referential_test.go1152 // Step 1: Create "Server A" user and sync to "Server B"
LOW…ared_channel_global_user_sync_self_referential_test.go1184 // Step 2: Simulate the synced user existing on Server B
LOW…ared_channel_global_user_sync_self_referential_test.go1197 // Step 3: Simulate connection reset by creating a new cluster A (from B's perspective)
LOW…ared_channel_global_user_sync_self_referential_test.go1213 // Step 4: Attempt B→A sync (should NOT sync the user back to A)
LOW…ared_channel_global_user_sync_self_referential_test.go1217 // Step 5: Verify the synced user was NOT sent back to A
LOWserver/channels/app/content_flagging.go537 // if user is not in common or team specific reviewers, we need to check if they are
LOWserver/channels/app/shared_channel_test.go232 // Step 1: Verify the channel is initially shared
LOWserver/channels/app/shared_channel_test.go236 // Step 2: Create a sync message that would be sent to the remote
LOWserver/channels/app/shared_channel_test.go246 // Step 3: Simulate receiving ErrChannelIsNotShared from the remote
LOWserver/channels/app/shared_channel_test.go250 // Step 4: Verify the channel is no longer shared locally
LOWserver/channels/app/shared_channel_test.go382 // Step 1: Verify the channel is initially shared with both remotes
LOWserver/channels/app/shared_channel_test.go386 // Step 2: Create a post in the channel to trigger sync activity
LOWserver/channels/app/shared_channel_test.go404 // Step 3: Create a sync message for remote 1
LOWserver/channels/app/shared_channel_test.go414 // Step 4: Simulate remote 1 returning ErrChannelIsNotShared
LOWserver/channels/app/platform/service.go150 // Step 0: Create the PlatformService.
LOWserver/channels/app/platform/service.go194 // Step 1: Start logging.
LOWserver/channels/app/platform/service.go227 // Step 2: Cache provider.
LOWserver/channels/app/platform/service.go253 // Step 3: Search Engine
LOWserver/channels/app/platform/service.go257 // Step 4: Init Enterprise
LOWserver/channels/app/platform/service.go261 // Step 5: Init Metrics
LOWserver/channels/app/platform/service.go268 // Step 6: Store.
LOWserver/channels/app/platform/service.go326 // Step 7: initialize status and session cache.
LOWserver/channels/app/platform/service.go356 // Step 8: Init License
LOWserver/channels/app/platform/service.go370 // Step 9: Initialize filestore
LOWserver/channels/app/platform/service.go394 // Step 10: Init Metrics Server depends on step 6 (store) and 8 (license)
LOWserver/channels/app/platform/service.go409 // Step 11: Init AsymmetricSigningKey depends on step 6 (store)
LOW…on/channels/messaging/message_reply_scrollable_spec.js52 cy.uiGetReplyTextBox().type('foo', {scrollBehavior: false}); // without scrollBehavior=false cypress automatical
LOW…l/system_console/abac/policies/create_policies.spec.ts149 // Step 5: User who satisfies policy but NOT in channel → should NOT be auto-added
LOW…l/system_console/abac/policies/create_policies.spec.ts153 // Step 6: User who satisfies policy and IS in channel → no change (stays in channel)
LOW…l/system_console/abac/policies/create_policies.spec.ts157 // Step 7: User who does NOT satisfy policy and IS in channel → auto-removed
LOW…l/system_console/abac/policies/create_policies.spec.ts351 // Step 5: User who satisfies policy but NOT in channel → should be AUTO-ADDED
LOW…l/system_console/abac/policies/create_policies.spec.ts355 // Step 6: User who satisfies policy and IS in channel → no change (stays in channel)
LOW…l/system_console/abac/policies/create_policies.spec.ts359 // Step 7: User who does NOT satisfy policy and IS in channel → auto-removed
LOW…/channel_classification/channel_classification.spec.ts340 // Step 1: enable classification, select a level, save
LOW…/channel_classification/channel_classification.spec.ts353 // Step 2: in the same open modal, disable classification, enable a manual banner,
LOW…nels/team_settings/team_settings_policy_editor.spec.ts742 // # Step 1: Team admin can see the policy (all channels in their team)
LOW…nels/team_settings/team_settings_policy_editor.spec.ts749 // # Step 2: System admin adds a channel from team B (cross-team)
LOW…nels/team_settings/team_settings_policy_editor.spec.ts759 // # Step 3: System admin removes team B channel (back to single-team)
LOW…actions/calculate-playwright-results/src/merge.test.ts415 // Step 1: Verify original has failure
4 more matches not shown…
Synthetic Comment Markers9 hits · 68 pts
SeverityFileLineSnippet
HIGHwebapp/channels/src/utils/post_utils.ts692// Checks if a post has valid AI-generated metadata
HIGHserver/channels/app/post.go604 // Populate AI-generated username from provided user ID
HIGHserver/channels/app/post.go612 // Only allow AI-generated username if the user is the post creator or a bot
HIGHserver/channels/app/post_test.go3332 // Try to set AI-generated user ID to a different user (not post creator, not bot)
HIGHserver/channels/app/post_test.go3355 // Set AI-generated user ID to a non-existent user
HIGH…tion/channels/multi_team_and_dm/max_gm_members_spec.js113 // # Add the first user from the top of the list, as many times as requested by 'userCountToAdd'
HIGH…tion/channels/multi_team_and_dm/max_gm_members_spec.js113 // # Add the first user from the top of the list, as many times as requested by 'userCountToAdd'
HIGH…n/channels/multi_team_and_dm/close_gm_via_menu_spec.js86 // # Add the first user from the top of the list, as many times as requested by 'userCountToAdd'
HIGH…n/channels/multi_team_and_dm/close_gm_via_menu_spec.js86 // # Add the first user from the top of the list, as many times as requested by 'userCountToAdd'
AI Slop Vocabulary11 hits · 32 pts
SeverityFileLineSnippet
MEDIUMwebapp/channels/src/root.tsx19// in a minimum of places, as it is preferred to leverage react-router, configured to use this
MEDIUM…n_console/license_settings/modals/ee_license_modal.tsx57 <p>{'The subscription-only features of the Mattermost Enterprise Edition software and associated
MEDIUMserver/public/plugin/plugintest/mock/mock.go6// to fully utilize the plugintest package.
MEDIUM…hared_channel_membership_sync_self_referential_test.go306 // Wait for batch messages to be received with more robust checking
MEDIUM…hared_channel_membership_sync_self_referential_test.go620 // Wait for first sync attempt with more robust checking
MEDIUM…hared_channel_membership_sync_self_referential_test.go638 // Wait for successful sync with more robust checking
MEDIUM…hared_channel_membership_sync_self_referential_test.go1668 // // This test verifies robust handling of conflicting membership states between multiple clusters.
MEDIUMserver/channels/app/password/hashers/hashers.go6// This package allows for seamless migrations of password hashing methods. To
MEDIUM…/channel_settings/channel_admin_self_inclusion.spec.ts184 // lowest Id, so populating multiple matches makes the assertion robust
MEDIUM.github/workflows/e2e-tests-ci-template.yml447 # Otherwise, utilize summary.json to calculate the failures
MEDIUM.github/workflows/e2e-fulltests-ci.yml134 ### For image tag generation: utilize 'inputs.ref', assume that it is a full commit SHA
Cross-Language Confusion (JS/TS)4 hits · 28 pts
SeverityFileLineSnippet
HIGHwebapp/channels/src/utils/license_utils.test.ts15 it('should return True if expiring in 5 days - non Cloud', () => {
HIGHwebapp/channels/src/utils/license_utils.test.ts28 it('should return True if expired 1 day ago - non Cloud', () => {
HIGHwebapp/channels/src/utils/license_utils.test.ts36 it('should return False if cloud expired 11 days ago', () => {
HIGHwebapp/channels/src/utils/license_utils.test.ts42 it('should return True if expired 1 day ago - non Cloud', () => {
Slop Phrases9 hits · 16 pts
SeverityFileLineSnippet
MEDIUM…hannels/src/components/emoji/emoji_list/emoji_list.tsx290 defaultMessage="Tip: If you add #, ##, or ### as the first character on a new line containin
LOW…e/system_roles/system_role/system_role_permissions.tsx229 defaultMessage="Don't forget to deauthorize all other system users from administering Custom
LOWwebapp/channels/src/i18n/en-AU.json2082 "admin.permissions.roles.system_custom_group_admin.deauthorize_reminder": "Don't forget to deauthorise all other syste
MEDIUMwebapp/channels/src/i18n/en-AU.json4337 "emoji_list.help2": "Tip: If you add #, ##, or ### as the first character on a new line containing emoji, you can use
LOWwebapp/channels/src/i18n/en.json2408 "admin.permissions.roles.system_custom_group_admin.deauthorize_reminder": "Don't forget to deauthorize all other syste
MEDIUMwebapp/channels/src/i18n/en.json4817 "emoji_list.help2": "Tip: If you add #, ##, or ### as the first character on a new line containing emoji, you can use
MEDIUMserver/cmd/mmctl/commands/user.go96 Example: ` # if you have system permissions, you can change other user's passwords
MEDIUMserver/cmd/mattermost/commands/db.go36 Example: ` # you can use the config flag to pass the DSN
MEDIUMserver/cmd/mattermost/commands/db.go39 # or you can use the MM_CONFIG environment variable
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippet
LOW…ages/mattermost-redux/src/reducers/requests/helpers.ts17export function handleRequest(
LOW…/integration/channels/messaging/copy_post_text_spec.js62 const postCodeBlock = '```javascript\nvar foo = "bar"\nfunction doSomething()\nreturn 7;\n}\n```';
LOW…/integration/channels/messaging/copy_post_text_spec.js63 const copiedCodeBlockText = 'var foo = "bar"\nfunction doSomething()\nreturn 7;\n}\n';
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWserver/public/utils/page.go16// Example usage:
LOWserver/channels/app/password/hashers/hashers_dev.go32// Example usage:
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOW.github/scripts/check_config_changes_ci.py393