analyzer

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepository

func CloneRepository(repoURL, destDir string) (string, error)

CloneRepository clones a Git repository to the specified destination and returns the commit SHA

func CloneRepositoryWithBranch

func CloneRepositoryWithBranch(repoURL, branch, destDir string) error

CloneRepositoryWithBranch clones a specific branch of a Git repository

func GetRepositoryInfo

func GetRepositoryInfo(repoPath string) (map[string]string, error)

GetRepositoryInfo extracts repository information

func IsGitHubURL

func IsGitHubURL(s string) bool

IsGitHubURL checks if a string is a GitHub URL

func IsGitRepository

func IsGitRepository(path string) bool

IsGitRepository checks if a directory is a Git repository

func IsZipFile

func IsZipFile(path string) bool

IsZipFile checks if a path is a zip file

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer handles repository analysis

func NewAnalyzer

func NewAnalyzer(workDir string, verbose bool) *Analyzer

NewAnalyzer creates a new Analyzer instance

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(repoURL string) (*types.Analysis, error)

Analyze performs full repository analysis

func (*Analyzer) AnalyzeFromZip

func (a *Analyzer) AnalyzeFromZip(zipPath string) (*types.Analysis, error)

AnalyzeFromZip analyzes a zip file containing application code

Jump to

Keyboard shortcuts

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