analyze

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCodeLanguage

func GetCodeLanguage(filename string, content []byte) string

GetCodeLanguage detects code language based on file name and content It can be slow when the content is used for detection

func IsGenerated added in v1.16.0

func IsGenerated(path string) bool

IsGenerated returns whether or not path is a generated path.

func IsVendor added in v1.13.7

func IsVendor(treePath string) bool

IsVendor returns whether the path is a vendor path. It uses go-enry's IsVendor function but overrides its detection for certain special cases that shouldn't be marked as vendored in the diff view.

Types

This section is empty.

Jump to

Keyboard shortcuts

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