diff --git a/README.md b/README.md index 659859280d9..b9d97dd3e17 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/util/update_lints.py b/util/update_lints.py old mode 100644 new mode 100755 index b8ae46cced8..6c08f575d05 --- a/util/update_lints.py +++ b/util/update_lints.py @@ -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)