Repository Analysis

dolthub/dolt

Dolt – Git for Data

4.0 Likely human-written View on GitHub
4.0
Adjusted Score
4.0
Raw Score
100%
Time Factor
2026-05-29
Last Push
22,916
Stars
Go
Language
449,926
Lines of Code
1789
Files
1754
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 2MEDIUM 9LOW 1742

Pattern Findings

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

Over-Commented Block1685 hits · 1685 pts
SeverityFileLineSnippet
LOWdocker/docker-entrypoint.sh1#!/bin/bash
LOWdocker/docker-entrypoint.sh61 _mysql_log Error "$@" >&2
LOWdocker/docker-entrypoint.sh321}
LOWgo/cmd/dolt/dolt.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/fileno_check.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/fileno_check_darwin.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/doc.go1// Copyright 2019-2022 Dolthub, Inc.
LOWgo/cmd/dolt/fileno_check_linux.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/system_checks.go1// Copyright 2020 Dolthub, Inc.
LOWgo/cmd/dolt/doltcmd/doltcmd.go1// Copyright 2025 Dolthub, Inc.
LOWgo/cmd/dolt/cli/credentials.go1// Copyright 2023 Dolthub, Inc.
LOWgo/cmd/dolt/cli/command.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/cli/arg_parser_helpers.go1// Copyright 2020 Dolthub, Inc.
LOWgo/cmd/dolt/cli/cli_context.go1// Copyright 2023 Dolthub, Inc.
LOWgo/cmd/dolt/cli/cli_context.go41
LOWgo/cmd/dolt/cli/command_test.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/cli/arg_parse_helpers_test.go1// Copyright 2020 Dolthub, Inc.
LOWgo/cmd/dolt/cli/documentation_helper.go1// Copyright 2020 Dolthub, Inc.
LOWgo/cmd/dolt/cli/query_helpers.go1// Copyright 2025 Dolthub, Inc.
LOWgo/cmd/dolt/cli/flags.go1// Copyright 2023 Dolthub, Inc.
LOWgo/cmd/dolt/cli/messages.go1// Copyright 2023 Dolthub, Inc.
LOWgo/cmd/dolt/cli/stdio_test.go1// Copyright 2022 Dolthub, Inc.
LOWgo/cmd/dolt/cli/doc.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/cli/doc.go21// app command subcommand [<options>]
LOWgo/cmd/dolt/cli/help_test.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/cli/help.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/cli/arg_helpers.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/cli/stdio.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/cli/prompt/resolver.go1// Copyright 2026 Dolthub, Inc.
LOWgo/cmd/dolt/errhand/derr.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/errhand/derr_test.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/errhand/doc.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/errhand/verr.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/errhand/panic_utils.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/doltversion/version.go1// Copyright 2024 Dolthub, Inc.
LOWgo/cmd/dolt/commands/log.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/gc.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/send_metrics.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/clone_test.go1// Copyright 2022 Dolthub, Inc.
LOWgo/cmd/dolt/commands/config.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/clean.go1// Copyright 2022 Dolthub, Inc.
LOWgo/cmd/dolt/commands/version.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/add.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/pull.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/backup.go1// Copyright 2021 Dolthub, Inc.
LOWgo/cmd/dolt/commands/merge.go1// Copyright 2024 Dolthub, Inc.
LOWgo/cmd/dolt/commands/reflog.go1// Copyright 2023 Dolthub, Inc.
LOWgo/cmd/dolt/commands/show.go1// Copyright 2023 Dolthub, Inc.
LOWgo/cmd/dolt/commands/fetch.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/rebase.go1// Copyright 2024 Dolthub, Inc.
LOWgo/cmd/dolt/commands/rm.go1// Copyright 2025 Dolthub, Inc.
LOWgo/cmd/dolt/commands/log_test.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/diff_output.go1// Copyright 2022 Dolthub, Inc.
LOWgo/cmd/dolt/commands/init_test.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/commands_test.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/sql_slash.go1// Copyright 2024 Dolthub, Inc.
LOWgo/cmd/dolt/commands/ls.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/stash.go1// Copyright 2023 Dolthub, Inc.
LOWgo/cmd/dolt/commands/branch.go1// Copyright 2019 Dolthub, Inc.
LOWgo/cmd/dolt/commands/assist.go1// Copyright 2022 Dolthub, Inc.
1625 more matches not shown…
Fake / Example Data37 hits · 50 pts
SeverityFileLineSnippet
LOWgo/cmd/dolt/cli/arg_parse_helpers_test.go67 {"John Doe <hi@hi.com>", "John Doe", "hi@hi.com", false},
LOWgo/cmd/dolt/cli/arg_parse_helpers_test.go68 {"John Doe <hi@hi.com", "John Doe", "hi@hi.com", false},
LOWgo/cmd/dolt/cli/arg_parse_helpers_test.go69 {"John Doe", "", "", true},
LOWgo/libraries/doltcore/sqle/remotesrv_hook_test.go85 meta, err := datas.NewCommitMeta("test", "test@test.com", "test commit")
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go1232 "VALUES ('pbkdf2_sha256$216000$KRpZeDPgwc5E$vl/2hwrmtnckaBT0A8pf63Ph+oYuCHYI7qozMTZihTo=',NULL,1,'admin','','','admi
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5117 Expected: []sql.Row{{true, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t a
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5159 {true, false, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 4"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5160 {false, true, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 3"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5166 {true, false, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 4"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5167 {false, true, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 3"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5174 {false, true, false, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 4"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5175 {false, false, true, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 3"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5181 {true, false, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 4"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5182 {false, true, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 3"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5188 {true, false, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 4"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5189 {false, true, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 3"},
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5210 Expected: []sql.Row{{true, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 3
LOWgo/libraries/doltcore/sqle/enginetest/dolt_queries.go5214 Expected: []sql.Row{{true, "John Doe", "johndoe@example.com", "John Doe", "johndoe@example.com", "inserting into t 3
LOW…es/doltcore/sqle/enginetest/dolt_queries_procedures.go827 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ',
LOW…es/doltcore/sqle/enginetest/dolt_queries_procedures.go827 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ',
LOW…es/doltcore/sqle/enginetest/dolt_queries_procedures.go834 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ',
LOW…es/doltcore/sqle/enginetest/dolt_queries_procedures.go834 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ',
LOW…es/doltcore/sqle/enginetest/dolt_queries_procedures.go841 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ',
LOW…es/doltcore/sqle/enginetest/dolt_queries_procedures.go841 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ',
LOWgo/store/nbs/block_store_test.go170 addrs.Insert(hash.Of([]byte("lorem ipsum")))
LOWgo/store/datas/commit_test.go95 meta, err := NewCommitMetaWithAuthor("test", "test@test.com", "test commit", time.UnixMilli(0))
LOWgo/store/prolly/tree/json_indexed_document_test.go490 filler[fmt.Sprintf("zzzz_%05d", i)] = "lorem ipsum dolor sit amet, consectetur adipiscing elit"
LOWgo/store/prolly/tree/json_indexed_document_test.go490 filler[fmt.Sprintf("zzzz_%05d", i)] = "lorem ipsum dolor sit amet, consectetur adipiscing elit"
LOWgo/store/prolly/tree/prolly_fields_test.go114 value: "lorem ipsum",
LOWgo/store/prolly/tree/prolly_fields_test.go119 value: "lorem ipsum",
LOWgo/store/prolly/tree/prolly_fields_test.go124 value: []byte("lorem ipsum"),
LOWgo/store/prolly/tree/prolly_fields_test.go174 value: []byte("lorem ipsum"),
LOWgo/store/prolly/tree/prolly_fields_test.go179 value: []byte("lorem ipsum"),
LOWgo/store/prolly/tree/prolly_fields_test.go189 value: "lorem ipsum",
LOW…tegration-tests/compatibility/test_files/big_table.sql2 (1, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'),
LOW…tegration-tests/compatibility/test_files/big_table.sql2 (1, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'),
LOW…tegration-tests/compatibility/test_files/big_table.sql61 (60,'Phasellus dignissim dolor sit amet nunc pellentesque, suscipit mattis massa faucibus.'),
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippet
HIGHgo/libraries/doltcore/doltdb/doltdb.go1145// non-nil in the case that the commit cannot be resolved, there aren't as many ancestors as requested, or the
HIGHgo/libraries/doltcore/sqle/dsess/session_db_provider.go45 // RequestedName returns the name of the database as requested by the user when the name was resolved to this
Verbosity Indicators8 hits · 14 pts
SeverityFileLineSnippet
LOWgo/libraries/doltcore/merge/merge_schema.go480 // In this case, only theirsChanged, so we need to check if moving from ours->theirs
LOWgo/libraries/doltcore/merge/merge_schema.go501 // In this case, only oursChanged, so we need to check if moving from theirs->ours
LOW…/libraries/doltcore/branch_control/expr_parser_node.go210 // Since we have more sort orders in the slice, we need to check if we also match the next one
LOW…/libraries/doltcore/branch_control/expr_parser_node.go222 // If we have no more sort orders in the slice, then we need to check if we match a child
LOW…ore/sqle/binlogreplication/binlog_row_serialization.go96 // Otherwise, for primary key tables, we need to check if the next column is stored in the key or value.
LOWgo/store/prolly/proximity_map.go244// Step 1: Create `levelMap`, a map from (indexLevel, keyBytes) -> values
LOWgo/store/prolly/proximity_map.go249// Step 2: Create `pathMaps`, a list of maps, each corresponding to a different level of the ProximityMap
LOWgo/store/prolly/proximity_map.go259// Step 3: Create an iter over each `pathMap` created in the previous step, and walk the shape of the final ProximityMap
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippet
MEDIUMgo/cmd/dolt/commands/diff.go1792// Note this is only for printing the diff. This is not robust for other purposes.
MEDIUM…libraries/doltcore/dtestutils/sql_server_driver/cmd.go441 // TODO: This could be more robust if we sniffed it on first connect.
MEDIUMgo/libraries/doltcore/sqle/database_provider.go427 // TODO: this needs to be robust in the face of the DB not having the default branch
MEDIUMgo/store/nbs/cmp_chunk_table_writer.go49 // precise number of bytes written. Definitely don't use this value for offsets or anything like that.
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALgo/libraries/doltcore/sqle/enginetest/dolt_harness.go344 d.engine.Analyzer.Catalog.MySQLDb.AddRootAccount()
Excessive Try-Catch Wrapping4 hits · 7 pts
SeverityFileLineSnippet
LOW…s/mysql-client-tests/python/python-replication-test.py105 except Exception:
MEDIUM…ts/mysql-client-tests/python/mariadb-connector-test.py75 print(f"Error connecting to MariaDB: {e}")
MEDIUM…tion-tests/mysql-client-tests/swift/Sources/main.swift50 print("Error: \(mysql.errorMessage())")
MEDIUM…tion-tests/mysql-client-tests/swift/Sources/main.swift124 print("Error: \(error)")
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMintegration-tests/bats/helper/data-generation.bash4# This file provides utilities for quickly generating substantial amounts of test data
MEDIUM…-tests/go-sql-server-driver/tests/sql-server-orig.yaml400 # Creating a collated database currently creates a new Dolt commit
Unused Imports5 hits · 5 pts
SeverityFileLineSnippet
LOWintegration-tests/bats/helper/pytest.py1
LOWintegration-tests/bats/helper/pytest.py3
LOWintegration-tests/bats/helper/pytest.py6
LOW…ion-tests/mysql-client-tests/python/sqlalchemy-test.py3
LOW…s/mysql-client-tests/python/python-replication-test.py6
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippet
LOWdocker/docker-entrypoint.sh12# Usage:
LOWdocker/docker-entrypoint.sh71# Usage:
LOWdocker/docker-entrypoint.sh209# Usage:
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippet
LOW…ion-tests/mysql-client-tests/python/sqlalchemy-test.py28
LOW…ts/mysql-client-tests/python/mariadb-connector-test.py24
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWintegration-tests/mysql-client-tests/node/helpers.js39export function getQueryWithEscapedParameters(q, parameters) {