detector

package
v0.0.0-...-21ea6c5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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