Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupportedLanguageExtension ¶
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
ProviderForExtension returns the provider registered for the provided extension.
func Providers ¶ added in v0.27.0
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.