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.