From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- docs/code-quality/lint/linters/file-whitespace.rst | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/code-quality/lint/linters/file-whitespace.rst (limited to 'docs/code-quality/lint/linters/file-whitespace.rst') diff --git a/docs/code-quality/lint/linters/file-whitespace.rst b/docs/code-quality/lint/linters/file-whitespace.rst new file mode 100644 index 0000000000..fd134b32ef --- /dev/null +++ b/docs/code-quality/lint/linters/file-whitespace.rst @@ -0,0 +1,38 @@ +Trailing whitespaces +==================== + +This linter verifies if a file has: + +* unnecessary trailing whitespaces, +* Windows carriage return, +* empty lines at the end of file, +* if file ends with a newline or not + + +Run Locally +----------- + +This mozlint linter can be run using mach: + +.. parsed-literal:: + + $ mach lint --linter file-whitespace + + +Configuration +------------- + +This linter is enabled on most of the code base. + +This job is configured as `tier 2 `_. + +Autofix +------- + +This linter provides a ``--fix`` option. The python script is doing the change itself. + +Sources +------- + +* `Configuration (YAML) `_ +* `Source `_ -- cgit v1.2.3