registry

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaturityUntested       = moduleapi.MaturityUntested
	MaturityBasicTests     = moduleapi.MaturityBasicTests
	MaturityActivelyTested = moduleapi.MaturityActivelyTested
	MaturityStable         = moduleapi.MaturityStable
)

Variables

This section is empty.

Functions

func IsSupportedLanguageExtension

func IsSupportedLanguageExtension(ext string) bool

IsSupportedLanguageExtension reports whether Clarity can analyze files with the extension.

func IsTestFile

func IsTestFile(filePath string, contentReader vcs.ContentReader) bool

IsTestFile reports whether a file path should be treated as a test file. Detection is delegated to language-specific implementations, optionally using file content.

func SupportedLanguageExtensions

func SupportedLanguageExtensions() []string

SupportedLanguageExtensions returns all supported language extensions in sorted order.

Types

type Context

type Context = moduleapi.Context

Context contains precomputed project data shared across language resolvers.

type Graph

type Graph = moduleapi.Graph

Graph is the minimal graph contract language resolvers need during finalization.

type LanguageSupport

type LanguageSupport struct {
	Name       string
	Extensions []string
	Maturity   MaturityLevel
}

LanguageSupport describes one supported programming language and the file extensions that map to it.

func SupportedLanguages

func SupportedLanguages() []LanguageSupport

SupportedLanguages returns a copy of all supported languages and their extensions.

type MaturityLevel

type MaturityLevel = moduleapi.MaturityLevel

MaturityLevel describes how complete a language's analysis support is.

func MaturityLevels

func MaturityLevels() []MaturityLevel

MaturityLevels returns the ordered set of known maturity levels.

type Module

type Module = moduleapi.Module

Module describes pluggable language support.

func ModuleForExtension

func ModuleForExtension(ext string) (Module, bool)

ModuleForExtension returns the module registered for the provided extension.

func Modules

func Modules() []Module

Modules returns supported language modules in deterministic order.

type Resolver

type Resolver = moduleapi.Resolver

Resolver resolves project imports for one language and can finalize graph-wide state.

Jump to

Keyboard shortcuts

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