detect

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 4 Imported by: 0

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,
}

SupportedExtensions are the file suffixes this port can extract. Python and Rust are deliberately out of scope for now.

Functions

func CollectFiles

func CollectFiles(root string) ([]string, error)

CollectFiles returns the supported source files under root, relative to root, in sorted order for deterministic output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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