run

Function run 

Source
pub fn run(args: ClippyArgs) -> Result<()>
Expand description

Runs cargo clippy across the feature matrix (or a single entry).

Three modes:

  • Normal: runs clippy and exits non-zero only if clippy itself errors.
  • Reviewdog (--github-report or --diff-branch): pipes JSON output through reviewdog. --diff-branch alone is sufficient for local use; --github-report alone uses the github-pr-review reporter in CI.
  • --save-json <path>: writes raw JSON lines to a file for later deduplication by cargo xtask ci clippy-report.

ยงErrors

Returns the first clippy error encountered, or a spawn/IO error.