File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,20 @@ function Check-Command
122
122
{
123
123
echo " Checking for explicit interface violations..."
124
124
Invoke-Expression " $utilityPath $modID --check-explicit-interfaces"
125
+ }
126
+ else
127
+ {
128
+ UtilityNotFound
129
+ }
125
130
131
+ if (Test-Path $styleCheckPath )
132
+ {
126
133
echo " Checking for code style violations in OpenRA.Mods.$modID ..."
127
- Invoke-Expression " $utilityPath $modID --check-code-style OpenRA.Mods.$modID "
134
+ Invoke-Expression " $styleCheckPath OpenRA.Mods.$modID "
128
135
}
129
136
else
130
137
{
131
- UtilityNotFound
138
+ echo " OpenRA.StyleCheck.exe could not be found. Build the project first using the `" all `" command. "
132
139
}
133
140
}
134
141
@@ -336,6 +343,7 @@ if ($command -eq "all" -or $command -eq "clean")
336
343
}
337
344
338
345
$utilityPath = $env: ENGINE_DIRECTORY + " /OpenRA.Utility.exe"
346
+ $styleCheckPath = $env: ENGINE_DIRECTORY + " /OpenRA.StyleCheck.exe"
339
347
340
348
$execute = $command
341
349
if ($command.Length -gt 1 )
You can’t perform that action at this time.
0 commit comments