Repository Analysis

jackc/pgx

PostgreSQL driver and toolkit for Go

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
13,851
Stars
Go
Language
76,769
Lines of Code
316
Files
41
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 1LOW 40

Pattern Findings

41 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block36 hits · 36 pts
SeverityFileLineSnippet
LOWbatch.go101
LOWvalues_test.go1001 if inBool != outBool {
LOWvalues_test.go1021// "cat",
LOWtx.go121// requirements. Methods will not be removed or changed, but new methods may be added.
LOWtest.sh1#!/usr/bin/env bash
LOWrows.go21// and [Rows.CommandTag].
LOWrows.go41 // when there was an error executing the query.
LOWrows.go61 // true.
LOWconn.go221 return connConfig, nil
LOWconn.go661 // to execute. It does not use named prepared statements. But it does use the unnamed prepared statement to get the
LOWconn.go681 QueryExecModeExec
LOWconn.go721
LOWpgproto3/doc.go1// Package pgproto3 is an encoder and decoder of the PostgreSQL wire protocol version 3.
LOWpgconn/config.go81 // the connection on any FATAL errors. If you override this handler you should call the previously set handler or ensur
LOWpgconn/config.go181 network = "tcp"
LOWpgconn/config.go201// interdependent (e.g. TLSConfig needs knowledge of the host to validate the server certificate). These fields should
LOWpgconn/config.go221// PGSERVICEFILE
LOWpgconn/config.go241//
LOWpgconn/auth_scram.go1// SCRAM-SHA-256 and SCRAM-SHA-256-PLUS authentication
LOWpgconn/pgconn.go661
LOWpgconn/pgconn.go1181// etc.
LOWpgconn/pgconn.go1241//
LOWpgconn/pgconn.go2181 pgConn.slowWriteTimer.Stop()
LOWpgconn/pgconn.go2461// The server flushes its output buffer automatically as a result of Sync being called,
LOWpgconn/benchmark_test.go221 if rowCount != 1 {
LOWpgconn/pgconn_test.go4881
LOWpgxpool/pool.go121 ConnConfig *pgx.ConnConfig
LOWpgxpool/pool.go141 //
LOWpgxpool/pool.go341
LOWpgxpool/pool.go761
LOWpgtype/text_test.go81}
LOWpgtype/tid.go21// TID is PostgreSQL's Tuple Identifier type.
LOWstdlib/sql.go1// Package stdlib is the compatibility layer from pgx to database/sql.
LOWstdlib/sql.go21// return err
LOWstdlib/sql.go41//
LOWtestsetup/pg_ssl_init.sh1#!/bin/bash
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM.devcontainer/post-create.bash10# Create a symlink to the shared .scratch directory for temporary files if it exists.
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOWrows_test.go922 SELECT 1 AS user_id, 'John Doe' AS name
LOWrows_test.go932 assert.ElementsMatch(t, slice, []UserAPIKey{{UserAPIKeyID: 101, UserID: 1, User: &User{UserID: 1, Name: "John Doe"}, A
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWtest.sh6# Usage:
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWinternal/sanitize/benchmark.sh14# Check if there are uncommitted changes