Versions in this module Expand all Collapse all v0 v0.3.0 Oct 10, 2026 Changes in this version type Model + ReferenceOnly bool v0.2.0 Oct 9, 2026 Changes in this version + const OldSpecVersion + const OldSpellingSeverity + const RuleDeprecated + const RulePublishComponentField + const RulePublishFields + const RulePublishQualifiedRecord + const RulePublishRecords + const RuleRemoved + const RuleReservedWord + func DiscoverModules(fsys FS, paths []string, assign []Assignment) ([]Source, []Finding, error) + func Rewrite(file string, src []byte) ([]byte, int, error) type Field + End int + Start int type Kind + const KindRecord type Model + Old []OldSpelling + func (m *Model) OldVocabulary() bool type Node + End int + Start int type OSFS + func (OSFS) EvalSymlinks(name string) (string, error) + type OldSpelling struct + End int + Line int + New string + Old string + Start int v0.1.2 Oct 4, 2026 v0.1.1 Oct 4, 2026 Changes in this version type Options + Unread []string v0.1.0 Oct 4, 2026 Changes in this version + const HCLSuffix + const JSONSuffix + const MaxDepth + const MaxEchoBytes + const MaxFindings + const MaxHeredocLines + const MaxInputBytes + const MaxMessageBytes + const MaxNameLength + const MaxNumberExponent + const MaxNumberLength + const MaxSyntaxFindings + const RuleAttribute + const RuleCollection + const RuleDuplicate + const RuleEncoding + const RuleEnumValues + const RuleIO + const RuleKey + const RuleLimit + const RuleLiteral + const RuleMemberKind + const RuleModule + const RuleNameCase + const RuleNameForm + const RulePublishComponent + const RulePublishEntities + const RulePublishModuleName + const RulePublishNameForm + const RulePublishProperties + const RulePublishQualified + const RuleReference + const RuleReserved + const RuleShape + const RuleSkipped + const RuleStaleTwin + const RuleSyntax + const RuleType + const RuleUnknown + const RuleVersion + const SpecVersion + var PrimitiveTypes = map[string]bool + var Profiles = []Profile + var ReservedNames = map[string]bool + func Diff(a, b *Node) string + func Discover(fsys FS, paths []string) ([]Source, []Finding, error) + func FileKind(mode fs.FileMode) string + func HasErrors(fs []Finding) bool + func IsModelFile(name string) bool + func Load(fsys FS, files []Source, assign []Assignment) ([]*Model, []Finding, error) + func Parse(file string, src []byte) (*Model, []Finding) + func ParseHCL(file string, src []byte) (*Model, []Finding) + func ParseJSON(file string, src []byte) (*Model, []Finding) + func ReadSource(fsys FS, name string) ([]byte, error) + func SortFindings(fs []Finding) + type Assignment struct + Module string + Path string + type Attr struct + Line int + Name string + Value *Node + type Concept struct + Attrs []Attr + Kind Kind + Line int + Members []Member + Name string + func (c *Concept) Attr(name string) (*Attr, bool) + type FS interface + Abs func(name string) (string, error) + Lstat func(name string) (fs.FileInfo, error) + Open func(name string) (fs.File, error) + ReadDir func(name string) ([]fs.DirEntry, error) + SameFile func(a, b fs.FileInfo) bool + Stat func(name string) (fs.FileInfo, error) + WriteFile func(name string, data []byte, perm fs.FileMode) error + type Field struct + Key string + Line int + Value *Node + type Finding struct + File string + Line int + Message string + Rule string + Severity Severity + func Check(models []*Model, opts Options) []Finding + func (f Finding) String() string + type Form string + const FormHCL + const FormJSON + type Kind string + const KindCollection + const KindComponent + const KindEntity + const KindEnum + const KindRecordset + type LintOptions struct + Modules []Assignment + Profile Profile + type Member struct + Attrs []Attr + Line int + Name string + func (m *Member) Attr(name string) (*Attr, bool) + type Model struct + Broken bool + Concepts []*Concept + File string + Form Form + Group string + Incomplete bool + Migrations *Node + Module *ModuleIdentity + ModuleLine int + Name string + Projections *Node + Root *Node + Twin bool + TwinOf *Model + Unmapped []Unmapped + func (m *Model) ExportDrift(committed []byte, id ModuleIdentity) string + func (m *Model) HasConcept(kind Kind, name string) bool + func (m *Model) JSON(id ModuleIdentity) (*Node, error) + type ModuleIdentity struct + ID string + Name string + Version string + type Node struct + Bool bool + Dups []Field + Fields []Field + Items []*Node + Line int + Str string + Type NodeType + func ParseNode(src []byte) (*Node, error) + func (n *Node) Encode() []byte + func (n *Node) Get(key string) (*Node, bool) + type NodeType int + const NodeArray + const NodeBool + const NodeNull + const NodeNumber + const NodeObject + const NodeString + type NotRegularError struct + File string + What string + func (e *NotRegularError) Error() string + type OSFS struct + func (OSFS) Lstat(name string) (fs.FileInfo, error) + func (OSFS) Open(name string) (fs.File, error) + func (OSFS) ReadDir(name string) ([]fs.DirEntry, error) + func (OSFS) SameFile(a, b fs.FileInfo) bool + func (OSFS) Stat(name string) (fs.FileInfo, error) + func (OSFS) WriteFile(name string, data []byte, perm fs.FileMode) error + func (o OSFS) Abs(name string) (string, error) + type Options struct + Profile Profile + type Profile string + const ProfileDefault + const ProfilePublish + func ParseProfile(s string) (Profile, error) + type Result struct + Files int + Findings []Finding + Models []*Model + Notes []string + Skipped []SkippedFile + func Lint(fsys FS, paths []string, opts LintOptions) (Result, error) + type Severity string + const SeverityError + const SeverityWarning + type SkippedFile struct + Affected []*Model + Finding Finding + Module string + type Source struct + Abs string + Path string + type TooLargeError struct + File string + Partial bool + Size int64 + func (e *TooLargeError) Error() string + type Unmapped struct + Line int + What string