sourcedetect

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetectionResult

type DetectionResult struct {
	SchemaVersion  string           `json:"schema_version"`
	Mode           string           `json:"mode"`
	HasEmbeddedMCP bool             `json:"has_embedded_mcp"`
	Detection      DetectionSummary `json:"detection"`
	Findings       []model.Issue    `json:"findings,omitempty"`
}

func DetectEmbeddedMCP

func DetectEmbeddedMCP(root string, opts Options) (*DetectionResult, error)

type DetectionSummary

type DetectionSummary struct {
	Matches      []Match `json:"matches,omitempty"`
	FilesScanned int     `json:"files_scanned"`
	Elapsed      string  `json:"elapsed"`
}

type Evidence

type Evidence struct {
	Kind    string `json:"kind"`
	Line    int    `json:"line"`
	Snippet string `json:"snippet"`
}

type Match

type Match struct {
	Language string     `json:"language"`
	File     string     `json:"file"`
	Evidence []Evidence `json:"evidence"`
}

type Options

type Options struct {
	MaxFiles              int
	MaxFileSizeBytes      int64
	MaxMatchesPerLanguage int
}

type SDKSignature

type SDKSignature struct {
	Language        string
	FileExtensions  []string
	ImportPatterns  []*regexp.Regexp
	InitPatterns    []*regexp.Regexp
	ToolDefPatterns []*regexp.Regexp
}

Jump to

Keyboard shortcuts

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