diff --git a/PRESUBMIT.py b/PRESUBMIT.py index bcac924add30..d57b0976e1b2 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -359,6 +359,15 @@ def CheckNewSourceFileWithoutGnChangeOnUpload(input_api, output_api): treat_as_error=True, excluded_paths=[_THIRD_PARTY_EXCEPT_BLINK], ), + BanRule( + 'NOTREACHED_IN_MIGRATION', + ('Do not introduce new cases of of NOTREACHED_IN_MIGRATION. Please ', + 'refer to the guide for how to use CHECK/DCHECK/NOTREACHED ', + 'https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/checks.md.' + ), + treat_as_error=True, + excluded_paths=[], + ), )