archcite

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 2 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

Package archcite extracts repo-path citations from code comments. It is the checker behind the gate test beside it: a comment that names a path under cmd/, internal/ or web/src/ must name a path that exists. Dead citations — the audit's GDK-1569 found four pointing at a file that no longer owned what the comment described — are otherwise invisible: no gate reads comments, and the reader trusts the pointer until it lies.

The check is path-existence only. A citation of an existing file whose symbol moved (this round's four: the file was there, the rule was not) still needs eyes; symbol resolution is deliberately not attempted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Citation

type Citation struct {
	Path string
	Line int    // 1-based line of Text within the file
	Text string // the comment line, for the failure message
}

Citation is one repo-path citation with the line it sat on.

func Citations

func Citations(text string, start int) []Citation

Citations extracts the citations from comment text, which may span lines. start is the 1-based line of text's first line.

Jump to

Keyboard shortcuts

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