mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
Add reference to rustc-dev-guide about lint message
This commit is contained in:
parent
3337f7956c
commit
9f827abeb0
1 changed files with 6 additions and 0 deletions
|
@ -295,8 +295,14 @@ impl EarlyLintPass for FooFunctions {
|
||||||
|
|
||||||
Running our UI test should now produce output that contains the lint message.
|
Running our UI test should now produce output that contains the lint message.
|
||||||
|
|
||||||
|
According to [the rustc-dev-guide], the text should be matter of fact and avoid
|
||||||
|
capitalization and periods, unless multiple sentences are needed.
|
||||||
|
When code or an identifier must appear in a message or label, it should be
|
||||||
|
surrounded with single acute accents \`.
|
||||||
|
|
||||||
[check_fn]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/trait.EarlyLintPass.html#method.check_fn
|
[check_fn]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/trait.EarlyLintPass.html#method.check_fn
|
||||||
[diagnostics]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/utils/diagnostics.rs
|
[diagnostics]: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/utils/diagnostics.rs
|
||||||
|
[the rustc-dev-guide]: https://rustc-dev-guide.rust-lang.org/diagnostics.html
|
||||||
|
|
||||||
## Adding the lint logic
|
## Adding the lint logic
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue