detect

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 5 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,
	".json":     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,
	".md":       true,
	".mdx":      true,
	".markdown": true,
}

SupportedExtensions are the file suffixes this port can extract.

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