From d7bd06d021026546c6e9ed90847d8faeff9188b7 Mon Sep 17 00:00:00 2001 From: Victor Bittorf Date: Thu, 2 Mar 2023 20:21:38 -0800 Subject: [PATCH] Add Warnings to Checker It is very unfortunate to run the checker from master and think you're doing the right thing. We should make sure to avoid such things. --- compliance/check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compliance/check.py b/compliance/check.py index d77cc8c8..276d72c3 100755 --- a/compliance/check.py +++ b/compliance/check.py @@ -693,6 +693,8 @@ def check(path: str) -> int: result &= check_result warnings |= check_warnings + print('WARNING: You are using the master branch. This is not a legal submission.') + print('WARNING: Make sure to use the appropriate release branch for your submission.') print( f"\n{'All' if result else 'ERROR: Not all'} checks passed" f"{'. Warnings encountered, check for audit!' if warnings else ''}"