cnc should run 'ralint cnc' after build, not 'ralint ra'. ralint no longer allows exceptions to escape.
This commit is contained in:
@@ -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>
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user