Repository Analysis

bytebase/bytebase

World's most advanced database DevSecOps solution for Developer, Security, DBA and Platform Engineering teams. The GitHub/GitLab for database DevSecOps.

1.0 Likely human-written View on GitHub
1.0
Adjusted Score
1.0
Raw Score
100%
Time Factor
2026-05-29
Last Push
14,080
Stars
Go
Language
1,071,135
Lines of Code
4164
Files
883
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 4HIGH 2MEDIUM 22LOW 855

Pattern Findings

883 matches across 12 categories. Click a row to expand file-level details.

Over-Commented Block489 hits · 486 pts
SeverityFileLineSnippet
LOWfrontend/pnpm-workspace.yaml1peerDependencyRules:
LOWfrontend/pnpm-workspace.yaml21 # glob@7 → inflight@1.0.6 transitive chain. inflight is unmaintained
LOWfrontend/src/types/sqlEditor/tab.ts41
LOWfrontend/src/types/proto-es/google/type/expr_pb.d.ts1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/type/expr_pb.js1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/api/client_pb.d.ts1// Copyright 2025 Google LLC
LOW…d/src/types/proto-es/google/api/field_behavior_pb.d.ts1// Copyright 2025 Google LLC
LOW…end/src/types/proto-es/google/api/field_behavior_pb.js1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/api/resource_pb.js1// Copyright 2025 Google LLC
LOW…ontend/src/types/proto-es/google/api/annotations_pb.js1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/api/resource_pb.d.ts1// Copyright 2025 Google LLC
LOW…tend/src/types/proto-es/google/api/annotations_pb.d.ts1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/api/http_pb.js1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/api/client_pb.js1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/api/http_pb.d.ts1// Copyright 2025 Google LLC
LOW…types/proto-es/google/api/expr/v1alpha1/syntax_pb.d.ts1// Copyright 2025 Google LLC
LOW…c/types/proto-es/google/api/expr/v1alpha1/syntax_pb.js1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/rpc/status_pb.d.ts1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/google/rpc/status_pb.js1// Copyright 2025 Google LLC
LOWfrontend/src/types/proto-es/buf/validate/validate_pb.js1// Copyright 2023-2025 Buf Technologies, Inc.
LOW…ntend/src/types/proto-es/buf/validate/validate_pb.d.ts1// Copyright 2023-2025 Buf Technologies, Inc.
LOWfrontend/src/plugins/ai/index.ts1// Plugin-wide barrel. Only re-exports framework-agnostic surfaces here
LOWfrontend/src/plugins/ai/react/index.ts1// React-only barrel for the AI plugin. The plugin's root `index.ts`
LOWfrontend/src/utils/string.ts1export const escapeMarkdown = (md: string): string => {
LOWfrontend/src/utils/sql-download/filename.ts41 // U+202A-202E: bidi embed/override
LOWfrontend/src/utils/sql-download/value.ts121 HEX[(n >> 8) & 0xf] +
LOWfrontend/src/views/sql-editor/Sheet/context.ts881 });
LOWfrontend/src/react/ReactPageMount.vue41});
LOWfrontend/src/react/explain-visualizer/main.tsx1import "bootstrap/dist/css/bootstrap.css";
LOWfrontend/src/react/components/ProjectSelect.tsx41 const [projects, setProjects] = useState<Project[]>([]);
LOW…omponents/sql-editor/ConnectionPane/ConnectionPane.tsx881 // overwrite the tree with a stale flag (e.g. user toggles the checkbox
LOW…omponents/sql-editor/ConnectionPane/ConnectionPane.tsx1121 // Match `data-row-interactive` first because tooltip / permission
LOWfrontend/src/react/components/ui/tree.tsx61 disableDrag = true,
LOWfrontend/src/react/components/ui/tree.tsx81 // a "Columns" node with hundreds of descendants that doubled the cost
LOW…/src/react/components/database/CreateDatabaseSheet.tsx161 ),
LOWfrontend/src/react/hooks/useColumnWidths.ts41 startWidth: number;
LOWfrontend/src/react/pages/settings/RequestRoleSheet.tsx301 showDatabases &&
LOW…pages/project/ProjectPlanDashboardPage.columns.test.ts1import { describe, expect, test } from "vitest";
LOWfrontend/src/store/workspaceSwitchChannel.ts1// Single BroadcastChannel instance shared by both the Vue and React workspace
LOWfrontend/src/store/modules/v1/policy.ts281// getEmptyRolloutPolicy returns a default rollout policy for UI display purposes.
LOWbackend/tests/webhook_helpers_test.go641 }
LOWbackend/tests/collision_helper_test.go41
LOWbackend/tests/collision_helper_test.go281// fast in that case.
LOWbackend/tests/collision_helper_test.go321// so task_run collision is NOT evidence of PCR collision — the two
LOWbackend/tests/tenant_test.go21// KEY CONCEPTS:
LOWbackend/tests/cross_project_delete_test.go61// TestCollisionDeleteInstanceNoCrossProjectCorruption verifies that deleting
LOWbackend/tests/cross_project_delete_test.go101 // Asymmetric counts here would indicate a cross-project bug in the
LOWbackend/plugin/webhook/teams/app.go1// This file implements Teams direct messaging using Microsoft Graph API and Bot Framework.
LOWbackend/plugin/idp/ldap/ldap.go21// IdentityProviderConfig is the configuration to be consumed by the LDAP
LOWbackend/plugin/advisor/sql_review.go21// How to add a SQL review rule:
LOWbackend/plugin/advisor/advisor.go61
LOW…gin/advisor/oracle/rule_statement_disallow_truncate.go21// truncate_table_partition : TRUNCATE (partition_extended_names | subpartition_extended_names) ... ;
LOW…statement_where_disallow_functions_and_calculations.go601 }
LOW…statement_where_disallow_functions_and_calculations.go681 default:
LOW…statement_where_disallow_functions_and_calculations.go1061// (e.g. `WITH orders AS (SELECT * FROM orders …)`) is NON-recursive and
LOW…statement_where_disallow_functions_and_calculations.go1261
LOW…statement_where_disallow_functions_and_calculations.go1281 //
LOW…n/advisor/oracle/test/statement_disallow_truncate.yaml1# SQL review rule: STATEMENT_DISALLOW_TRUNCATE (Oracle)
LOW…statement_where_disallow_functions_and_calculations.go61 // searchPath is the list of schemas to consult for unqualified table refs,
LOW…statement_where_disallow_functions_and_calculations.go521// handleWithClause walks the CTE bodies AND maintains the cteStack with
429 more matches not shown…
Verbosity Indicators162 hits · 278 pts
SeverityFileLineSnippet
LOW…/tests/e2e/masking-exemption/masking-exemption.spec.ts410 // Step 1: No exemption → data is masked
LOW…/tests/e2e/masking-exemption/masking-exemption.spec.ts416 // Step 2: Grant exemption via UI → data becomes unmasked
LOW…/tests/e2e/masking-exemption/masking-exemption.spec.ts427 // Step 3: Revoke exemption via UI → data becomes masked again
LOWfrontend/src/utils/util.ts178 // Step 1: Escape HTML entities to prevent XSS (converts <, >, &, ", ', ` to entities)
LOWfrontend/src/utils/util.ts182 // Step 2: Escape the search keyword and apply highlighting
LOWfrontend/src/utils/util.ts189 // Step 3: Sanitize with DOMPurify as defense-in-depth (allowlist-based)
LOWfrontend/src/utils/util.ts214 // Step 1: Escape HTML entities to prevent XSS
LOWfrontend/src/utils/util.ts220 // Step 2: Build safe regex pattern and apply highlighting
LOWfrontend/src/utils/util.ts231 // Step 3: Sanitize with DOMPurify as defense-in-depth (allowlist-based)
LOW…src/react/plugins/agent/logic/skills/databaseChange.ts18### Step 1: Create sheet(s) with SQL
LOW…src/react/plugins/agent/logic/skills/databaseChange.ts40### Step 2: Create a plan
LOW…src/react/plugins/agent/logic/skills/databaseChange.ts104### Step 3: Create an issue
LOW…src/react/plugins/agent/logic/skills/databaseChange.ts120### Step 4: Create a rollout
LOW…rc/react/plugins/agent/logic/skills/grantPermission.ts25### Step 1: List Available Roles
LOW…rc/react/plugins/agent/logic/skills/grantPermission.ts48### Step 2: Get Current IAM Policy
LOW…rc/react/plugins/agent/logic/skills/grantPermission.ts74### Step 3: Set IAM Policy
LOW…src/react/components/sql-editor/WorksheetPane.test.tsx434 // Step 1: enter multi-select and check a worksheet
LOW…src/react/components/sql-editor/WorksheetPane.test.tsx446 // Step 2: click the "move-worksheets" toolbar button to open the modal
LOW…src/react/components/sql-editor/WorksheetPane.test.tsx462 // Step 3: change the folder target via the mocked FolderForm's setter
LOW…react/components/database/CreateDatabaseSheet.test.tsx335 // Step 1: type a custom title.
LOW…react/components/database/CreateDatabaseSheet.test.tsx339 // Step 2: dbName preserved across manual title.
LOW…react/components/database/CreateDatabaseSheet.test.tsx344 // Step 3: clear title manually (invariant reset).
LOW…react/components/database/CreateDatabaseSheet.test.tsx348 // Step 4: clear dbName.
LOW…react/components/database/CreateDatabaseSheet.test.tsx352 // Step 5: retype dbName and verify each keystroke tracks.
LOW…tend/src/react/pages/project/ProjectSyncSchemaPage.tsx352 // Step 2: at least one target database with diff
LOW…eact/pages/project/plan-detail/utils/rolloutPreview.ts54 // Step 1: Extract all database targets from specs and expand database groups
LOW…eact/pages/project/plan-detail/utils/rolloutPreview.ts58 // Step 2: Fetch databases that are not cached
LOW…eact/pages/project/plan-detail/utils/rolloutPreview.ts61 // Step 3: Generate tasks from specs
LOW…eact/pages/project/plan-detail/utils/rolloutPreview.ts64 // Step 4: Get environment order from store
LOW…eact/pages/project/plan-detail/utils/rolloutPreview.ts67 // Step 5: Group tasks by environment and create stages
LOW…eact/pages/project/plan-detail/utils/rolloutPreview.ts70 // Step 6: Build and return the rollout
LOW…ct/pages/project/export-center/DataExportPrepSheet.tsx108 // Step 1: target selection
LOW…ct/pages/project/export-center/DataExportPrepSheet.tsx119 // Step 2: form fields
LOWbackend/runner/approval/runner.go172 // Step 1: Determine approval source from issue type
LOWbackend/runner/approval/runner.go182 // Step 2: Build CEL variables for evaluation
LOWbackend/runner/approval/runner.go192 // Step 3: Inject risk level into CEL variables for CHANGE_DATABASE issues
LOWbackend/runner/approval/runner.go200 // Step 4: Find matching approval template
LOWbackend/tests/gitops_test.go199 // Step 1: Create a release containing migration files.
LOWbackend/tests/gitops_test.go222 // Step 2: Create a plan with the release field set.
LOWbackend/tests/gitops_test.go253 // Step 3: Create a rollout from the plan.
LOWbackend/tests/gitops_test.go521 // Step 1: Create a release containing 3 simple migration files.
LOWbackend/tests/gitops_test.go557 // Step 2: Create a plan targeting both test and prod databases.
LOWbackend/tests/gitops_test.go590 // Step 3: Create a rollout from the plan.
LOWbackend/tests/gitops_test.go750 // Step 1: Create a release with version 1.0.0 file.
LOWbackend/tests/gitops_test.go772 // Step 2: Apply the release to a database.
LOWbackend/tests/gitops_test.go816 // Step 3: Create a release with version 1.0.0 file but with different content.
LOWbackend/tests/gitops_test.go834 // Step 4: Call CheckRelease with the modified release against the same target.
LOWbackend/tests/gitops_test.go845 // Step 5: Expect that CheckRelease returns a warning about the changed file.
LOWbackend/tests/tenant_test.go159 // Step 1: Get baseline's current schema.
LOWbackend/tests/tenant_test.go165 // Step 2: Create new tenant database.
LOWbackend/tests/tenant_test.go170 // Step 3: Initialize new tenant with baseline schema.
LOWbackend/tests/tenant_test.go220 // Step 4: Find pending rollouts for baseline.
LOWbackend/tests/tenant_test.go247 // Step 5: Add new tenant to pending rollouts (idempotent CreateRollout).
LOWbackend/tests/pg_sdl_rollout_test.go83 // Step 1: Create initial schema with basic objects
LOWbackend/tests/pg_sdl_rollout_test.go115 // Step 2: Update schema - add column and new table
LOWbackend/tests/pg_sdl_rollout_test.go157 // Step 3: Remove objects - drop comments table and posts index
LOW…d/plugin/advisor/tidb/advisor_statement_dml_dry_run.go97 // Step 1: Run TiDB's native BATCH DRY RUN to validate the batch splitting.
LOW…d/plugin/advisor/tidb/advisor_statement_dml_dry_run.go117 // Step 2: Run EXPLAIN on the inner DML to validate the DML execution plan.
LOW…d/plugin/parser/tsql/query_span_extractor_omni_test.go278 // Step 1: DECLARE populates TempTables.
LOW…d/plugin/parser/tsql/query_span_extractor_omni_test.go287 // Step 2: SELECT from @t resolves via TempTables.
102 more matches not shown…
Hyper-Verbose Identifiers148 hits · 150 pts
SeverityFileLineSnippet
LOW…ontend/src/plugins/ai/react/ChatView/Markdown/utils.ts144function footnoteDefinitionToReact(
LOWfrontend/src/utils/util.ts177export function getHighlightHTMLByKeyWords(s: string, k: string) {
LOWfrontend/src/utils/v1/position.ts4export function batchConvertPositionToMonacoPosition(
LOWfrontend/src/utils/v1/position.ts61export function convertPositionLineToMonacoLine(line: number) {
LOWfrontend/src/utils/sql-download/value.ts346export function xlsxStringFromStructpbValue(
LOWfrontend/src/react/mountProjectSidebar.ts65export async function updateProjectSidebarLocale(
LOWfrontend/src/react/app/SessionExpiredSurfaceGate.tsx7export function SessionExpiredSurfaceGate() {
LOW…ntend/src/react/plugins/agent/components/AgentChat.tsx78 function getToolCallDuplicateIndex(
LOW…rc/react/plugins/agent/components/resize-capability.ts3export function supportsWindowBorderResize(
LOW…eact/plugins/agent/components/ui/AgentDropdownMenu.tsx73export function AgentDropdownMenuSeparator({
LOWfrontend/src/react/plugins/agent/dom/domTree.ts292function isNaiveControlTextElement(el: Element): boolean {
LOWfrontend/src/react/plugins/agent/dom/domTree.ts334function shouldRecurseIntoInteractive(el: Element): boolean {
LOWfrontend/src/react/plugins/agent/dom/domTree.ts380function getTableColumnHeaderLabel(el: Element): string | undefined {
LOWfrontend/src/react/plugins/agent/dom/domTree.ts546function shouldIndexInteractiveNode(
LOWfrontend/src/react/plugins/agent/dom/domTree.ts700function collectSemanticTextSegments(node: Node, segments: string[]): void {
LOWfrontend/src/react/plugins/agent/dom/domTree.ts757function collectNonInteractiveTextSegments(
LOWfrontend/src/react/plugins/agent/dom/domTree.ts780function extractNonInteractiveText(node: Node): string | undefined {
LOWfrontend/src/react/plugins/agent/dom/domTree.ts812function walkTableActionableDescendants(
LOWfrontend/src/react/plugins/agent/dom/domTree.ts1209function dedupeEquivalentAncestorLines(lines: DomLine[]): DomLine[] {
LOWfrontend/src/react/plugins/agent/dom/index.ts27export async function lazyExtractDomRefSuggestions(): Promise<
LOWfrontend/src/react/stores/app/workspace.ts102function appFeaturesFromDatabaseChangeMode(mode: DatabaseChangeMode) {
LOWfrontend/src/react/stores/app/utils.ts197export function projectResourceNameFromId(projectId: string | undefined) {
LOWfrontend/src/react/stores/app/database.ts29function instanceResourceNameFromDatabase(databaseName: string): string {
LOWfrontend/src/react/components/IssueTable.tsx320export function useIssueSearchScopeOptions(
LOWfrontend/src/react/components/IssueTable.tsx962export function BatchIssueStatusActionDrawer({
LOW…tend/src/react/components/ComponentPermissionGuard.tsx122export function useComponentPermissionState({
LOWfrontend/src/react/components/BannersWrapper.tsx232function BannerUpgradeSubscription() {
LOW…d/src/react/components/useCommonSearchScopeOptions.tsx26export function useCommonSearchScopeOptions(
LOW…d/src/react/components/CreateWorkloadIdentitySheet.tsx104export function CreateWorkloadIdentitySheet(
LOW…end/src/react/components/RoutePermissionGuardShell.tsx18export function RoutePermissionGuardShell({
LOW…t/components/sql-editor/QueryContextSettingPopover.tsx43export function QueryContextSettingPopover({ disabled = false }: Props) {
LOW…act/components/sql-editor/AccessGrantRequestDrawer.tsx104function AccessGrantRequestDrawerInner({
LOW…omponents/sql-editor/ConnectionPane/ConnectionPane.tsx131function ConnectionPaneWithHoverState(props: Props) {
LOW…omponents/sql-editor/ConnectionPane/ConnectionPane.tsx1268function readShowMissingFromStorage(email: string): boolean {
LOW…omponents/sql-editor/ConnectionPane/ConnectionPane.tsx1278function writeShowMissingToStorage(email: string, value: boolean) {
LOW…src/react/components/sql-editor/ConnectionPane/tree.ts86export function useSQLEditorTreeByEnvironment(
LOW…/components/sql-editor/ResultView/SingleResultView.tsx814function getExplainTokenFromResult(
LOWfrontend/src/react/components/ui/combobox-position.ts3function shouldIgnorePortalDropdownScroll(
LOWfrontend/src/react/components/ui/combobox-position.ts30function isPortalDropdownStyleEqual(
LOWfrontend/src/react/components/ui/dropdown-menu.tsx64function DropdownMenuSubmenuContent({
LOWfrontend/src/react/components/ui/dropdown-menu.tsx123function DropdownMenuSubmenuTrigger({
LOW…react/components/database/CreateDatabaseSheet.test.tsx234async function renderSheetWithoutFixedProject(): Promise<void> {
LOW…act/components/database/DatabaseBatchOperationsBar.tsx51export function DatabaseBatchOperationsBar({
LOW…src/react/components/MarkdownEditor/MarkdownEditor.tsx264function applyMarkdownListContinuation(
LOW…nd/src/react/components/auth/userPasswordValidation.ts14export function computePasswordValidation(
LOW…ntend/src/react/components/instance/DataSourceForm.tsx1932function OracleSIDServiceNameInput({
LOWfrontend/src/react/components/instance/InfoPanel.tsx181function getSnippetContentTranslation(
LOW…/react/components/instance/CreateDataSourceExample.tsx321function EngineSpecificDescription({
LOW…c/react/components/instance/SshConnectionForm.test.tsx32function ControlledSshConnectionForm() {
LOW…c/react/components/SchemaEditorLite/useScrollStatus.ts58export function useConsumePendingScrollToTable(
LOW…c/react/components/SchemaEditorLite/useScrollStatus.ts88export function useConsumePendingScrollToColumn(
LOW…react/components/SchemaEditorLite/SchemaEditorLite.tsx202function mergeTableMetadataToTarget({
LOW…maEditorLite/Panels/TableColumnEditor/DataTypeCell.tsx39export function DataTypeSuggestionsDatalist({
LOW…/SchemaEditorLite/Modals/EditColumnForeignKeySheet.tsx39export function EditColumnForeignKeySheet({
LOWfrontend/src/react/pages/settings/MembersPage.tsx882function computeExpirationTimestamp(days?: number): number | undefined {
LOWfrontend/src/react/pages/settings/IDPDetailPage.tsx75function TestConnectionResultDialog({
LOW…eact/pages/settings/MemberBindingEnvironmentBanner.tsx6export function MemberBindingEnvironmentBanner({
LOW…ntend/src/react/pages/settings/ServiceAccountsPage.tsx396function CreateServiceAccountSheet(props: CreateServiceAccountSheetProps) {
LOWfrontend/src/react/pages/settings/GroupsPage.tsx79function normalizeMemberIdentifier(member: string): string {
LOW…rc/react/pages/settings/MemberDatabaseResourceName.tsx11export function MemberDatabaseResourceName({
88 more matches not shown…
Fake / Example Data51 hits · 58 pts
SeverityFileLineSnippet
LOW…src/react/components/auth/EmailCodeSigninForm.test.tsx109 setInputValue(emailInput!, "user@example.com");
LOW…src/react/components/auth/EmailCodeSigninForm.test.tsx121 "user@example.com",
LOW…src/react/components/auth/EmailCodeSigninForm.test.tsx136 email: "user@example.com",
LOWfrontend/src/react/pages/settings/GroupsPage.tsx78// Accepts: "users/foo@bar.com", "foo@bar.com" → "users/foo@bar.com"
LOW…ontend/src/react/pages/auth/OAuth2ConsentPage.test.tsx18 value: { name: "workspaces/ws-1", title: "Acme Corp" } as
LOW…ontend/src/react/pages/auth/OAuth2ConsentPage.test.tsx161 title: "Acme Corp",
LOW…ontend/src/react/pages/auth/OAuth2ConsentPage.test.tsx266 expect(container.textContent).toContain("Acme Corp");
LOW…ontend/src/react/pages/auth/OAuth2ConsentPage.test.tsx275 { name: "workspaces/ws-1", title: "Acme Corp" },
LOW…ontend/src/react/pages/auth/OAuth2ConsentPage.test.tsx296 expect(container.textContent).toContain("Acme Corp");
LOW…ontend/src/react/pages/auth/OAuth2ConsentPage.test.tsx303 { name: "workspaces/ws-1", title: "Acme Corp" },
LOW…ontend/src/react/pages/auth/OAuth2ConsentPage.test.tsx362 { name: "workspaces/ws-1", title: "Acme Corp" },
LOW…ntend/src/react/pages/auth/PasswordForgotPage.test.tsx156 setInputValue(input!, "foo@bar.com");
LOW…ntend/src/react/pages/auth/PasswordForgotPage.test.tsx169 setInputValue(input, "foo@bar.com");
LOW…ntend/src/react/pages/auth/PasswordForgotPage.test.tsx176 email: "foo@bar.com",
LOW…ntend/src/react/pages/auth/PasswordForgotPage.test.tsx181 query: { email: "foo@bar.com" },
LOW…ntend/src/react/pages/auth/PasswordForgotPage.test.tsx193 setInputValue(input, "foo@bar.com");
LOWbackend/plugin/idp/oauth2/oauth2_test.go125 testName = "John Doe"
LOWbackend/plugin/idp/oauth2/oauth2_test.go176 testName = "John Doe"
LOWbackend/plugin/idp/oidc/oidc_test.go191 testName = "John Doe"
LOWbackend/plugin/idp/oidc/oidc_test.go245 testName = "John Doe"
LOWbackend/plugin/idp/oidc/oidc_test.go320 testName = "John Doe"
LOWbackend/plugin/mailer/smtp_test.go18 To: []string{"user@example.com"},
LOWbackend/plugin/mailer/smtp_test.go93 To: []string{"user@example.com"},
LOWbackend/api/v1/catalog_masking_test.go270 input: `{"name": "John", "address": {"street": "123 Main St", "city": "NYC"}}`,
LOWbackend/api/v1/catalog_masking_test.go327 input: `{"name": "John", "address": {"street": "123 Main St", "city": "NYC"}}`,
LOWbackend/api/v1/catalog_masking_test.go387 "street": "123 Main St"
LOWbackend/api/v1/catalog_masking_test.go482 input: `{"street": "123 Main St", "city": "NYC"}`,
LOWbackend/api/v1/catalog_masking_elasticsearch_test.go228 "phone": "555-1234",
LOWbackend/api/v1/test-data/mongodb_masking.yaml39 input: '{"friends":{"name":"Bob","phone":"555-1234"}}'
LOWbackend/api/v1/test-data/elasticsearch_masking.yaml47 input: '{"total":{"value":1},"hits":[{"_index":"test","_id":"1","_source":{"name":"Alice","email":"alice@example.com
LOWbackend/api/v1/test-data/elasticsearch_masking.yaml59 input: '{"total":{"value":1},"hits":[{"_id":"1","_source":{"name":"Alice","email":"alice@example.com"},"fields":{"em
LOWbackend/api/v1/test-data/elasticsearch_masking.yaml71 input: '{"total":{"value":1},"hits":[{"_id":"1","_source":{"name":"Alice","email":"alice@example.com"},"fields":{"em
LOWbackend/api/v1/test-data/elasticsearch_masking.yaml84 input: '{"name":"Alice","email":"alice@example.com","contact":{"phone":"555-1234","city":"NYC"}}'
LOWbackend/api/v1/test-data/elasticsearch_masking.yaml98 input: '{"phone":"555-1234","city":"NYC"}'
LOWbackend/api/v1/test-data/elasticsearch_masking.yaml112 input: '[{"hits":{"total":{"value":1},"hits":[{"_id":"1","_source":{"name":"Alice","email":"alice@example.com"}}]}},
LOWbackend/api/v1/test-data/elasticsearch_masking.yaml126 input: '{"total":{"value":1},"hits":[{"_id":"1","_source":{"name":"Alice","email":"alice@example.com"},"inner_hits":
LOWbackend/api/oauth2/token_test.go43 got, err := resolveBoundWorkspace(ctx, r, false, "ws-issued", "", "user@example.com")
LOWbackend/api/oauth2/token_test.go51 got, err := resolveBoundWorkspace(ctx, r, false, "", "", "user@example.com")
LOWbackend/api/oauth2/token_test.go58 got, err := resolveBoundWorkspace(ctx, r, false, "", "ws-client", "user@example.com")
LOWbackend/api/oauth2/token_test.go65 _, err := resolveBoundWorkspace(ctx, r, false, "", "", "user@example.com")
LOWbackend/api/oauth2/token_test.go73 got, err := resolveBoundWorkspace(ctx, r, true, "ws-issued", "", "user@example.com")
LOWbackend/api/oauth2/token_test.go79 require.Equal(t, "user@example.com", r.lastFind.Email)
LOWbackend/api/oauth2/token_test.go84 _, err := resolveBoundWorkspace(ctx, r, true, "ws-issued", "", "user@example.com")
LOWbackend/api/oauth2/token_test.go92 _, err := resolveBoundWorkspace(ctx, r, true, "ws-issued", "", "user@example.com")
LOWbackend/api/oauth2/token_test.go100 _, err := resolveBoundWorkspace(ctx, r, true, "", "", "user@example.com")
LOWbackend/api/directory-sync/scim.go80// Okta sends: {"value": "101", "display": "user@example.com"}
LOWdocs/plans/saas/04.runners-and-auth.md46 "sub": "user@example.com",
LOW…cs/plans/2026-04-21-auth-setup-react-migration/plan.md99 3. `"enables submit button for a valid email"` — fire `change` on input with `"foo@bar.com"`, assert button no long
LOW…cs/plans/2026-04-21-auth-setup-react-migration/plan.md100 4. `"submit calls requestPasswordReset then navigates to password-reset"` — prime mock to resolve; fire click; awai
LOW…erpowers/plans/2026-04-12-email-service-integration.md690 To: []string{"user@example.com"},
LOW…erpowers/plans/2026-04-12-email-service-integration.md767 To: []string{"user@example.com"},
Decorative Section Separators16 hits · 48 pts
SeverityFileLineSnippet
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts42// ─── levelText ───────────────────────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts59// ─── approvalSourceText ───────────────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts82// ─── APPROVAL_SOURCES ─────────────────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts93// ─── Factor lists ─────────────────────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts115// ─── ApprovalSourceFactorMap ──────────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts157// ─── getApprovalFactorList ────────────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts169// ─── Option helpers ───────────────────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts224// ─── getApprovalOptionConfigMap ───────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts270// ─── Templates ────────────────────────────────────────────────────────────────
MEDIUMfrontend/src/react/components/CustomApproval/utils.ts347// ─── emptyLocalApprovalRule ───────────────────────────────────────────────────
MEDIUMscripts/build_bytebase_docker.sh2# ===========================================================================
MEDIUMscripts/build_bytebase_docker.sh5# ===========================================================================
MEDIUMscripts/build_init.sh2# ===========================================================================
MEDIUMscripts/build_init.sh5# ===========================================================================
MEDIUMscripts/build_bytebase.sh2# ===========================================================================
MEDIUMscripts/build_bytebase.sh5# ===========================================================================
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippet
CRITICALbackend/api/mcp/openapi_index.go109 for pair := idx.doc.Model.Paths.PathItems.First(); pair != nil; pair = pair.Next() {
CRITICALbackend/api/mcp/openapi_index.go428 schemaProxy, ok := idx.doc.Model.Components.Schemas.Get(schemaName)
CRITICALbackend/api/mcp/openapi_index.go533 schemaProxy, ok := idx.doc.Model.Components.Schemas.Get(name)
CRITICALdocs/plans/2025-12-15-mcp-schema-lookup.md102 schemaProxy, ok := idx.doc.Model.Components.Schemas.Get(name)
AI Slop Vocabulary5 hits · 13 pts
SeverityFileLineSnippet
MEDIUMbackend/plugin/parser/redshift/resource_change.go148 // This is a simplified implementation - in production you'd want more robust parsing
MEDIUMbackend/plugin/schema/differ.go1187 // This is a simplified check - for a production system, you'd want more robust parsing
MEDIUM…/schema/mssql/generate_migration_testcontainer_test.go856'This is an extremely long comment designed to test the limits of extended property storage in SQL Server. It contains m
MEDIUM…/schema/mssql/generate_migration_testcontainer_test.go1917'This is an extremely long comment designed to test the limits of extended property storage in SQL Server. It contains m
MEDIUMbackend/plugin/db/spanner/spanner.go297// For a more robust parser-based approach that can handle complex queries, see the
Magic Placeholder Names1 hit · 8 pts
SeverityFileLineSnippet
HIGHfrontend/i18n.ts23// Replace 'YOUR_API_KEY' with your actual Google Cloud API key
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippet
LOWscripts/azure-marketplace/push-to-acr.sh23# Check if Docker image exists
LOWscripts/azure-marketplace/push-to-acr.sh34# Check if Azure CLI is installed
LOWscripts/azure-marketplace/package.sh54# Check if required files exist
LOW.github/workflows/build-push-release-image.yml63 # Check if current version is the latest
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippet
HIGHfrontend/src/utils/TinyTimer.ts50 print(tag: T) {
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMscripts/azure-marketplace/manifest.yaml16# Define the container images used by your application
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWbackend/plugin/parser/base/lexer.go74// Example usage: