mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-22 20:53:21 +00:00
Update README lint counter message
This commit is contained in:
parent
045139613a
commit
0f0075df09
2 changed files with 3 additions and 4 deletions
|
@ -180,8 +180,7 @@ transparently:
|
|||
|
||||
## Lints
|
||||
|
||||
There are 209 lints included in this crate:
|
||||
https://rust-lang-nursery.github.io/rust-clippy/master/index.html
|
||||
[There are 209 lints included in this crate](https://rust-lang-nursery.github.io/rust-clippy/master/index.html)
|
||||
|
||||
More to come, please [file an issue](https://github.com/rust-lang-nursery/rust-clippy/issues) if you have ideas!
|
||||
|
||||
|
|
4
util/update_lints.py
Normal file → Executable file
4
util/update_lints.py
Normal file → Executable file
|
@ -159,8 +159,8 @@ def main(print_only=False, check=False):
|
|||
# update the lint counter in README.md
|
||||
changed = replace_region(
|
||||
'README.md',
|
||||
r'^There are \d+ lints included in this crate:', "",
|
||||
lambda: ['There are %d lints included in this crate:\n' %
|
||||
r'^\[There are \d+ lints included in this crate\]\(https://rust-lang-nursery.github.io/rust-clippy/master/index.html\)$', "",
|
||||
lambda: ['[There are %d lints included in this crate](https://rust-lang-nursery.github.io/rust-clippy/master/index.html)\n' %
|
||||
(len(lints) + len(restriction_lints))],
|
||||
write_back=not check)
|
||||
|
||||
|
|
Loading…
Reference in a new issue