cnc should run 'ralint cnc' after build, not 'ralint ra'. ralint no longer allows exceptions to escape.

This commit is contained in:
Chris Forbes
2010-07-30 09:25:12 +12:00
parent 5d1ee145e1
commit 290a44440c
2 changed files with 30 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -87,6 +87,6 @@
<PostBuildEvent>mkdir "$(SolutionDir)mods/cnc/"
copy "$(TargetPath)" "$(SolutionDir)mods/cnc/"
cd "$(SolutionDir)"
ralint ra</PostBuildEvent>
ralint cnc</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@@ -32,6 +32,8 @@ namespace RALint
static Dictionary<string, int> ValidPrereqs;
static int Main(string[] args)
{
try
{
// bind some nonfatal error handling into FieldLoader, so we don't just *explode*.
Game.MissingTypeAction = s => EmitError("Missing Type: {0}".F(s));
@@ -57,6 +59,12 @@ namespace RALint
return 0;
}
catch (Exception e)
{
Console.WriteLine("Failed with exception: {0}".F(e));
return 1;
}
}
static void CheckTrait(ActorInfo actorInfo, ITraitInfo traitInfo)
{