Update README lint counter message
This commit is contained in:
@@ -180,8 +180,7 @@ transparently:
|
|||||||
|
|
||||||
## Lints
|
## Lints
|
||||||
|
|
||||||
There are 209 lints included in this crate:
|
[There are 209 lints included in this crate](https://rust-lang-nursery.github.io/rust-clippy/master/index.html)
|
||||||
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!
|
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
|
# update the lint counter in README.md
|
||||||
changed = replace_region(
|
changed = replace_region(
|
||||||
'README.md',
|
'README.md',
|
||||||
r'^There are \d+ lints included in this crate:', "",
|
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:\n' %
|
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))],
|
(len(lints) + len(restriction_lints))],
|
||||||
write_back=not check)
|
write_back=not check)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user