diff --git a/docs/tools/civilint.md b/docs/tools/civilint.md index 6dd26ef89a2d0a483954025b1b20c722a231cb46..87323bd23ba2ba48cf73383498b7131a0c633298 100644 --- a/docs/tools/civilint.md +++ b/docs/tools/civilint.md @@ -5,10 +5,17 @@ Code-style tests ensure a consistent layout across all of the codebase, and they Note that civilint may be invoked a few different ways: ```bash -civilint # (no arguments) – Check style of any uncommitted changes. -civilint some/file.php # Check style of a specific file (or list of files). -git diff --name-only HEAD~1 | civilint - # Check your last commit -git diff --name-only master | civilint - # Check for changes in your branch (compared to master) +# (no arguments) – Check style of any uncommitted changes. +civilint + +# Check style of a specific file (or list of files). +civilint some/file.php + +# Check your last commit +git diff --name-only HEAD~1 | civilint - + +# Check for changes in your branch (compared to master) +git diff --name-only master | civilint - ``` See also: