dev: Improve comment check file name regex
Co-authored-by: Taeer Bar-Yam <Radvendii@users.noreply.github.com> (cherry picked from commit b401e52eba931374b782d83360411b197a8d59da)
This commit is contained in:
parent
6b438e5398
commit
65451efd4b
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@
|
||||||
# without nightly, and it might do too much.
|
# without nightly, and it might do too much.
|
||||||
pre-commit.settings.hooks.rust-doc-comments = {
|
pre-commit.settings.hooks.rust-doc-comments = {
|
||||||
enable = true;
|
enable = true;
|
||||||
files = ".*.rs$";
|
files = "\\.rs$";
|
||||||
entry = "${pkgs.writeScript "rust-doc-comments" ''
|
entry = "${pkgs.writeScript "rust-doc-comments" ''
|
||||||
#!${pkgs.runtimeShell}
|
#!${pkgs.runtimeShell}
|
||||||
set -uxo pipefail
|
set -uxo pipefail
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue