pathlint

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 3 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 pathlint finds the file paths a recovered capability text names outside its anchors. The map holds no paths (vision §4.1): a path belongs only in a `from <path>` anchor on an entry's meta line, so a path in a heading, body or Because line is a problem to send back to the session.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Message

func Message(path string) string

Message is what is sent back to the session for a path: the reason an entry naming it is a problem, and the reason it is dropped if it stays.

Types

type Hit

type Hit struct {
	Line int
	Path string
}

Hit is one file path named where none belongs: its 1-based line in the text and the path as written.

func Find

func Find(text string) []Hit

Find returns the paths one map file's text names outside its anchors, in order. It skips front matter, fenced blocks and each entry's meta line (the first non-blank line after a `### ` heading, which starts with a backtick); the title, overview, headings, bodies, Because and Rejected lines are read.

Jump to

Keyboard shortcuts

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