declutter/lib.rs
1//! declutter: review a diff with its comments and tests shown, hidden, or on their own.
2//!
3//! Each changed file is parsed with tree-sitter, its comments are located, and
4//! both versions are *projected* — comments removed, or everything but comments
5//! removed — before diffing. Diffing the projections, rather than hiding lines of
6//! a normal diff afterwards, is what makes comment-only hunks disappear and lets a
7//! line that changed code and a trailing comment show only the code change.
8//!
9//! Tests are a file-level layer: a changed file is test code by path convention or
10//! by importing a test framework, and is listed or left out as a whole.
11
12pub mod classify;
13pub mod diff;
14pub mod editor;
15pub mod git;
16pub mod highlight;
17pub mod lang;
18pub mod moves;
19pub mod palette;
20pub mod pr;
21pub mod project;
22pub mod render;
23pub mod review;
24pub mod store;
25pub mod target;
26pub mod test_files;
27pub mod tui;
28pub mod upload;