Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 84e4bc5

Browse files
committed
Remove trailing whitespaces
1 parent 95c369f commit 84e4bc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/adding_lints.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ we want to check. The output of Clippy is compared against a `.stderr` file.
5555
Note that you don't have to create this file yourself, we'll get to
5656
generating the `.stderr` files further down.
5757

58-
We start by opening the test file created at `tests/ui/foo_functions.rs`.
58+
We start by opening the test file created at `tests/ui/foo_functions.rs`.
5959

6060
Update the file with some examples to get started:
6161

@@ -102,7 +102,7 @@ Once we are satisfied with the output, we need to run
102102
`tests/ui/update-all-references.sh` to update the `.stderr` file for our lint.
103103
Please note that, we should run `TESTNAME=foo_functions cargo uitest`
104104
every time before running `tests/ui/update-all-references.sh`.
105-
Running `TESTNAME=foo_functions cargo uitest` should pass then. When we commit
105+
Running `TESTNAME=foo_functions cargo uitest` should pass then. When we commit
106106
our lint, we need to commit the generated `.stderr` files, too.
107107

108108
### Rustfix tests
@@ -133,7 +133,7 @@ With tests in place, let's have a look at implementing our lint now.
133133

134134
### Lint declaration
135135

136-
Let's start by opening the new file created in the `clippy_lints` crate
136+
Let's start by opening the new file created in the `clippy_lints` crate
137137
at `clippy_lints/src/foo_functions.rs`. That's the crate where all the
138138
lint code is. This file has already imported some initial things we will need:
139139

@@ -178,7 +178,7 @@ state the thing that is being checked for and read well when used with
178178
* The last part should be a text that explains what exactly is wrong with the
179179
code
180180

181-
The rest of this file contains an empty implementation for our lint pass,
181+
The rest of this file contains an empty implementation for our lint pass,
182182
which in this case is `EarlyLintPass` and should look like this:
183183

184184
```rust
@@ -194,7 +194,7 @@ impl EarlyLintPass for FooFunctions {}
194194
Don't worry about the `name` method here. As long as it includes the name of the
195195
lint pass it should be fine.
196196

197-
The new lint automation runs `update_lints`, which automates some things, but it
197+
The new lint automation runs `update_lints`, which automates some things, but it
198198
doesn't automate everything. We will have to register our lint pass manually in
199199
the `register_plugins` function in `clippy_lints/src/lib.rs`:
200200

0 commit comments

Comments
 (0)