Documentation
¶
Overview ¶
Package detect walks a project tree and returns the source files worth graphing. It skips dependency/build/cache directories, generated lock files, and anything that looks like it holds secrets (mirrors the Python original's detect.py skip lists and sensitive-file heuristics).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedExtensions = map[string]bool{ ".go": true, ".js": true, ".jsx": true, ".mjs": true, ".cjs": true, ".ts": true, ".tsx": true, ".tf": true, ".tfvars": true, ".hcl": true, ".py": true, ".rs": true, ".c": true, ".h": true, ".cpp": true, ".cc": true, ".cxx": true, ".hpp": true, ".hh": true, ".hxx": true, ".java": true, ".cs": true, ".rb": true, ".php": true, ".phtml": true, ".sh": true, ".bash": true, ".scala": true, ".sc": true, ".jl": true, ".v": true, ".sv": true, ".svh": true, ".vh": true, ".kt": true, ".kts": true, ".lua": true, ".zig": true, }
SupportedExtensions are the file suffixes this port can extract.
Functions ¶
func CollectFiles ¶
CollectFiles returns the supported source files under root, relative to root, in sorted order for deterministic output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.