Help us shape the future of Go! Take the 2026 Go Developer Survey

neutrality

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package neutrality implements the runtime-neutrality red-light scan shared by skillet tools. It flags wording or paths that bind a skill to a single agent runtime, which makes other runtimes refuse to install it. The pattern is byte-identical to the darwin source (skillsaw scan / exegesis lint) so the tools never disagree about what "runtime-bound" means.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hit

type Hit struct {
	File string `json:"file"`
	Line int    `json:"line"` // 1-indexed
	Text string `json:"text"` // the matching line, trimmed
}

Hit is one red-light match.

func Scan

func Scan(files []NamedFile) []Hit

Scan runs the red-light regex line-by-line over each file and returns every match. Hits follow the given file order, then line number. It is pure: values in, values out, no filesystem access. CRLF line endings are normalized so a match and its 1-indexed line number are independent of the source's newlines.

type NamedFile

type NamedFile struct {
	Name    string
	Content string
}

NamedFile pairs a display name with file contents for Scan.

Jump to

Keyboard shortcuts

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