Custom rule severities.

ADDED severity token to custom rule syntax.  Each rule can now define
its own severity.

Fixes https://gitlab.com/kicad/code/kicad/issues/6148
This commit is contained in:
Jeff Young
2021-12-24 15:42:22 +00:00
parent fcb013e5d7
commit 5f37c2b247
51 changed files with 4624 additions and 590 deletions
@@ -517,7 +517,7 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits,
for( const std::shared_ptr<DRC_ITEM>& item : violations )
{
SEVERITY severity = bds.GetSeverity( item->GetErrorCode() );
SEVERITY severity = item->GetParent()->GetSeverity();
fprintf( fp, "%s", TO_UTF8( item->ShowReport( aUnits, severity, itemMap ) ) );
}