Mute, hide and spotlight
Three ways to tell Mantish how much attention a kind of change deserves.
Every change Mantish finds carries a type (added, deleted, modified, moved, extracted, renamed) and one or more tags (formatting, import, logic, breaking, …). Tags are what you filter on — see the change tag reference. This page covers the command-line flags; what muting, hiding and spotlighting look like in the apps is explained in Mute, hide and spotlight.
| You want | Use | Result |
|---|---|---|
| Keep it, but out of the way | --mute | De-emphasised, skipped by j/k, revealed with m |
| Get rid of it | --hide | Removed from the output entirely, and counted as omitted |
| Never miss it | --spotlight | Highlighted; wins over mute and hide |
mantish diff --hide formatting,whitespace,import
mantish diff --mute comment,doc-comment --spotlight breaking,newpackage
mantish diff --no-mute # mute nothing this run
mantish diff --show-muted # open with muted changes already revealed
Each flag takes a comma-separated list, and each has a --no-… twin (--no-mute, --no-hide, --no-spotlight) that clears the set for this run. A flag replaces your saved set; it never adds to it.
What still applies
- Rename policies and file-ignore rules stay in force under every override.
renameis owned by the rename policies you configure in settings, so it cannot be named in these flags. - Spotlight wins. A change that is both hidden and spotlit is shown.
- Some tags can never be muted or hidden, because they are what a review is for:
logic,refactoring,breaking,newpackage,version-bump. Naming one is an error. - A typo fails before anything opens, and the message lists the ids that flag accepts.
Whitespace
mantish diff --whitespace exact
mantish diff --whitespace trim
mantish diff --whitespace ignorewhitespaceandempty
| Mode | What it compares |
|---|---|
exact | Every byte, including indentation and blank lines |
trim | Ignores leading and trailing whitespace on a line |
ignorewhitespaceandempty | Also ignores blank-line changes |
There is a real difference between hiding and ignoring. --hide whitespace lets the engine classify the change and then leave it out with a count. A whitespace mode makes the difference invisible to the analysis, so nothing can count it — the output only reports that the mode was active. If you want an accounted-for review, prefer --whitespace exact plus --hide.
Letter case, punctuation and typos
mantish diff --ignore letter-case
mantish diff --ignore letter-case,punctuation,typos
mantish diff --ignore "" # ignore none this run
--ignore adds to the whitespace mode: a re-cased name, punctuation in a comment or a sentence, a typo corrected in text are read as no change, like ignored whitespace — nothing counts them. Punctuation and typos are only ever passed over in text, never in code; what counts as text is explained in Letter case, punctuation and typos.
Nothing here is saved
Every one of these flags applies to the current run only. Your stored mute, hide and spotlight sets — the ones the desktop, web and IDE clients share — are untouched. To make a set reusable without saving it into your global settings, put it in a profile.