Documentation
¶
Index ¶
Constants ¶
const ( MaturityUntested = moduleapi.MaturityUntested MaturityBasicTests = moduleapi.MaturityBasicTests MaturityActivelyTested = moduleapi.MaturityActivelyTested MaturityStable = moduleapi.MaturityStable )
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 SupportedLanguageExtensions ¶
func SupportedLanguageExtensions() []string
SupportedLanguageExtensions returns all supported language extensions in sorted order.
Types ¶
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 ¶
Module describes pluggable language support.
func ModuleForExtension ¶
ModuleForExtension returns the module registered for the provided extension.