nudge

command module
v2.0.0-...-ab616f3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 5 Imported by: 0

README

Nudge

Spot when implementations change, but docs don't.

Nudge suggests documentation that might need review based on changes to implementations. It does this by looking at your commit history, parsing the files with changes, and flagging unchanged comments on changed code. Nudge integrates nicely with CI pipelines and IDEs to make it easy to keep documentation up to date.

Usage

Run nudge in your repository to check unstaged changes. Alternatively, specify a revision range like --revisions=main..branch. Ignore file header-comments with --ignore-headers. To use Nudge with GitHub Actions, pass the --format=github option, which will annotate suggestions in the GitHub file viewer.

Nudge can work on any language that has a Tree-sitter grammar. Currently C, Go, and Rust are implemented.

Visual Studio Code Extension

When a supported file is saved, the extension checks all changes in your workspace and adds info squiggles under relevant documentation. Enable/disable linting with the 'Toggle Nudge' command.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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