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 ¶
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.
Click to show internal directories.
Click to hide internal directories.