precommit

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package precommit runs single-buffer rule analysis on every Kotlin file currently staged for a git commit, routing the work through a running krit daemon when one is available. It is the user-facing entry point for the daemon roadmap's pre-commit-hook goal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Run is the `krit precommit` subcommand entry point. It enumerates staged .kt/.kts files, runs per-file rules against each (preferring a running daemon over in-process analysis), and prints findings in the requested format. Exit code 0 means no findings; non-zero signals at least one finding so the hook can block the commit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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