Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildExtMap ¶
BuildExtMap creates an extension-to-domain map by merging defaults with custom config. customExts maps domain names (as in config, e.g. "backend", "mobile") to extension lists. Custom extensions override defaults (e.g. moving .py from Backend to "Data"). If includeDefaults is false, only custom extensions are used (no built-in mappings).
func MatchRepoPattern ¶
MatchRepoPattern checks if a repo name matches a glob pattern
Types ¶
type Domain ¶
type Domain string
Domain represents a scoring domain (BE, FE, Infra, Firmware, or custom)
func DetectFromFiles ¶
DetectFromFiles determines the domain of a repo based on file extension distribution. If extMap is nil, uses the default extension mapping.
func NormalizeName ¶
NormalizeName maps well-known domain aliases to their canonical short form (e.g. "backend" → "BE", "frontend" → "FE") and Title-Cases custom names.
func SortDomains ¶
SortDomains returns domains in stable display order: built-in domains first (Backend, Frontend, Infra, Firmware), then custom alphabetically, then Unknown last.