code-audit

command
v0.0.0-...-187ff8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

code-audit is a unified AST analysis tool for comprehensive code quality.

This tool consolidates three specialized analyzers:

  • seq: Detect 31-bit sequence arithmetic bugs (int32(uint32-uint32))
  • test: Analyze test struct fields and coverage
  • metrics: Verify Prometheus metrics alignment

Usage:

code-audit [mode] [options] [packages/files...]

Modes:

all       Run all analyses (default)
seq       Sequence arithmetic analysis only
test      Test structure analysis only
metrics   Prometheus metrics analysis only
coverage  Code coverage analysis

Examples:

code-audit                               # Run all analyses
code-audit seq ./congestion/live         # Sequence audit only
code-audit test -file loss_recovery_table_test.go classify
code-audit metrics                       # Metrics audit only

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL