mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 23:24:29 +00:00
Check for todo!
macros in no_todo
This commit is contained in:
parent
21359c3ab5
commit
1a4a3eb69b
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ fn no_todo() {
|
|||
return;
|
||||
}
|
||||
let text = std::fs::read_to_string(e.path()).unwrap();
|
||||
if text.contains("TODO") || text.contains("TOOD") {
|
||||
if text.contains("TODO") || text.contains("TOOD") || text.contains("todo!") {
|
||||
panic!(
|
||||
"\nTODO markers should not be committed to the master branch,\n\
|
||||
use FIXME instead\n\
|
||||
|
|
Loading…
Reference in a new issue