diff --git a/Makefile b/Makefile index f38b784641..677bc0f335 100644 --- a/Makefile +++ b/Makefile @@ -227,6 +227,9 @@ check: utility mods @echo @echo "Checking for code style violations in OpenRA.Test..." @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Test + @echo + @echo "Checking for explicit interface violations..." + @mono --debug OpenRA.Utility.exe all --check-explicit-interfaces NUNIT_CONSOLE := $(shell test -f thirdparty/download/nunit3-console.exe && echo mono thirdparty/download/nunit3-console.exe || \ which nunit3-console 2>/dev/null || which nunit2-console 2>/dev/null || which nunit-console 2>/dev/null) diff --git a/make.ps1 b/make.ps1 index eccb8b91ee..1df06d5a34 100644 --- a/make.ps1 +++ b/make.ps1 @@ -174,6 +174,8 @@ elseif ($command -eq "check") ./OpenRA.Utility.exe cnc --check-code-style OpenRA.Utility echo "Checking for code style violations in OpenRA.Test..." ./OpenRA.Utility.exe cnc --check-code-style OpenRA.Test + echo "Checking for explicit interface violations..." + ./OpenRA.Utility.exe all --check-explicit-interfaces } else {