registry

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 ProviderForExtension added in v0.27.0

func ProviderForExtension(ext string) (moduleapi.Provider, bool)

ProviderForExtension returns the provider registered for the provided extension.

func Providers added in v0.27.0

func Providers() []moduleapi.Provider

Providers returns supported language providers in deterministic order.

func SupportedLanguageExtensions

func SupportedLanguageExtensions() []string

SupportedLanguageExtensions returns all supported language extensions in sorted order.

Types

type LanguageSupport

type LanguageSupport struct {
	Name       string
	Extensions []string
	Maturity   moduleapi.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.

Jump to

Keyboard shortcuts

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