---
name: "diff-quality"
section: "1"
platform: "linux"
package: "diff-cover"
version: "9.2.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/diff-quality"
---

# diff-quality(1)

find diff lines with quality violations

## NAME

diff-quality - find diff lines with quality violations

## DESCRIPTION

usage: diff-quality \[-h\] **--violations** TOOL \[--html-report FILENAME\]

- \[--json-report FILENAME\] \[--markdown-report FILENAME\]

  \[--external-css-file FILENAME\] \[--compare-branch BRANCH\] \[--options \[OPTIONS\]\] \[--fail-under SCORE\] \[--ignore-staged\] \[--ignore-unstaged\] \[--include-untracked\] \[--exclude EXCLUDE \[EXCLUDE ...\]\] \[--include INCLUDE \[INCLUDE ...\]\] \[--diff-range-notation RANGE\_NOTATION\] \[--version\] \[--ignore-whitespace\] \[-q\] \[-c CONFIG\_FILE\] \[--report-root-path ROOT\_PATH\] \[input\_reports ...\]

Automatically find diff lines with quality violations.

### positional arguments:

- input\_reports

  Which violations reports to use

### options:

- **-h**, **--help**

  show this help message and exit

- **--violations** TOOL

  Which code quality tool to use (checkstyle/checkstylex ml/cppcheck/eslint/findbugs/flake8/jshint/pmd/pycodest yle/pydocstyle/pyflakes/pylint/shellcheck)

- **--html-report** FILENAME

  Diff coverage HTML output

- **--json-report** FILENAME

  Diff coverage JSON output

- **--markdown-report** FILENAME

  Diff coverage Markdown output

- **--external-css-file** FILENAME

  Write CSS into an external file

- **--compare-branch** BRANCH

  Branch to compare

- **--options** \[OPTIONS\]

  Options to be passed to the violations tool

- **--fail-under** SCORE

  Returns an error code if coverage or quality score is below this value

- **--ignore-staged**

  Ignores staged changes

- **--ignore-unstaged**

  Ignores unstaged changes

- **--include-untracked**

  Include untracked files

- **--exclude** EXCLUDE \[EXCLUDE ...\]

  Exclude files, more patterns supported

- **--include** INCLUDE \[INCLUDE ...\]

  Files to include (glob pattern)

- **--diff-range-notation** RANGE\_NOTATION

  Git diff range notation to use when comparing branches, defaults to '...'

- **--version**

  show program's version number and exit

- **--ignore-whitespace**

  When getting a diff ignore any and all whitespace

- **-q**, **--quiet**

  Only print errors and failures

- **-c**, **--config-file** CONFIG\_FILE

  The configuration file to use

- **--report-root-path** ROOT\_PATH

  The root path used to generate a report
