audit

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package audit provides workspace auditing operations such as detecting non-git directories in the projects directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NonRepoDir

type NonRepoDir struct {
	Path         string
	Name         string
	Size         int64     // Total size in bytes
	LastModified time.Time // Most recent modification time
	FileCount    int       // Number of files
	Summary      string    // Brief contents summary (e.g., "12 .go, 5 .yaml, 3 .md, 2 others")
}

NonRepoDir represents a directory that is not a git repository.

func FindNonRepoDirs

func FindNonRepoDirs(rootPath string, opts Options, workers int) ([]NonRepoDir, error)

FindNonRepoDirs finds directories under rootPath that are not git repositories. It reads immediate children (respecting .katazuke index files) and returns information about each directory that is not a git repo. Work is parallelized across the given number of workers.

type Options

type Options struct {
	ExcludePatterns []string
}

Options controls non-repo detection behavior.

Jump to

Keyboard shortcuts

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