Documentation
¶
Index ¶
Constants ¶
const ( Version = 1 ModeStrict = "strict" FileName = ".koment/policy.yaml" SchemaURL = "https://raw.githubusercontent.com/janpuc/koment/main/schema/policy.schema.json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentsPolicy ¶
type AgentsPolicy struct {
Adapters []Adapter `yaml:"adapters"`
}
AgentsPolicy selects generated instruction adapters.
type CommentsPolicy ¶
type CommentsPolicy struct {
Mode string `yaml:"mode"`
Intrinsic []Intrinsic `yaml:"intrinsic"`
GeneratedPaths []string `yaml:"generated_paths,omitempty"`
VendoredPaths []string `yaml:"vendored_paths,omitempty"`
}
CommentsPolicy configures strict classification and repository exclusions.
type Intrinsic ¶
type Intrinsic string
Intrinsic names one class of source comment that may remain inline.
type Policy ¶
type Policy struct {
Version int `yaml:"version"`
Comments CommentsPolicy `yaml:"comments"`
Agents AgentsPolicy `yaml:"agents"`
}
Policy is the version-1 repository enforcement contract.
func Default ¶
func Default() Policy
Default returns the strict policy installed for a new repository.