Check for todo! macros in no_todo

This commit is contained in:
Florian Diebold 2019-12-25 18:33:56 +01:00
parent 21359c3ab5
commit 1a4a3eb69b

View file

@ -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\