You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/src/development/defining_lints.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,21 @@ and registration of the lint in Clippy's codebase.
5
5
We can use the Clippy dev tools to handle this step since setting up the
6
6
lint involves some boilerplate code.
7
7
8
-
In our example, we're going to create a lint to detect functions named `foo` because it is a highly non-descriptive name for a function, so we want to trigger this and fix it early in the development process.
8
+
In our example, we're going to create a lint to detect functions named `foo` because it is a highly non-descriptive
9
+
name for a function, so we want to trigger this and fix it early in the development process.
9
10
10
11
## Lint name
11
12
12
-
A good lint name is important, it is usually given by the issue you're fixing (in the **Lint name** field). If you're unsure if the name you chose fits the lint, you can check the [lint naming guidelines][lint_naming]. Don't worry, if the lint name doesn't fit, a Clippy team member will alert you in the PR process.
13
+
A good lint name is important, it is usually given by the issue you're fixing (in the **Lint name** field). If you're
14
+
unsure if the name you chose fits the lint, you can check the [lint naming guidelines][lint_naming]. Don't worry, if
15
+
the lint name doesn't fit, a Clippy team member will alert you in the PR process.
13
16
14
17
If you're still unsure, you can ask on the [Zulip] or on the Github issue / PR.
15
18
16
19
---
17
20
18
-
We'll name our example lint that detects functions named "foo" `foo_functions`. Check the [lint naming guidelines][lint_naming] to see why this name makes sense.
21
+
We'll name our example lint that detects functions named "foo" `foo_functions`. Check the
22
+
[lint naming guidelines][lint_naming] to see why this name makes sense.
0 commit comments