Documentation
¶
Overview ¶
Package detector — csharpparser.go parses C# project metadata.
Package detector walks repository trees and classifies project types.
Package detector — goparser.go parses Go metadata and finds runnables.
Package detector — parser.go parses package.json for Node/React classification.
Package detector — rules.go handles detection classification for C++ and C#.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectionResult ¶
type DetectionResult struct {
Project model.DetectedProject
GoMeta *model.GoProjectMetadata
Csharp *model.CsharpProjectMetadata
}
DetectionResult holds a detected project and optional metadata.
func DetectProjects ¶
func DetectProjects(repoPath string, repoID int64, repoName string) []DetectionResult
DetectProjects scans a repo directory for all supported project types.
Performance contract: the repo tree is walked exactly ONCE. The previous implementation did a full pre-walk to collect .sln directories followed by a second full walk for detection — doubling I/O on every repo. We now collect raw hits in a single pass and resolve .sln precedence in memory.