codecheck

command
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command codecheck checks that the core imports nothing above it, that the map's side never imports the engine's, and that every package stays within its size budget and has a doc comment stating its promise. It also checks that no package outside internal/state writes the engine's tables (a string literal holding SQL that inserts into, updates or deletes from one). It also checks that nothing outside the git adapter (internal/vcs/git) runs git: a non-test file calling exec.Command or exec.CommandContext with the literal program "git" is reported. It also checks that a non-test file on the map's side never makes a fresh context with context.Background or context.TODO: the command's context comes down. It also checks that no test file assigns a package variable of a non-test file, its own package's or another package's of the module through its import: a test passes its fake in instead of swapping one. It also checks that nothing imports, and nothing lives at, a package code-first init removed (removedPackages), test files included.

Jump to

Keyboard shortcuts

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