Изменено формирование ошибок на темплейты
This commit is contained in:
@@ -55,14 +55,14 @@ public abstract class BaseRuleVisitor : TSqlFragmentVisitor, IRule
|
||||
_violations.Add(violation);
|
||||
}
|
||||
|
||||
protected void AddViolation(string RuleName, string Message, int Line, int Column)
|
||||
protected void AddViolation(string RuleName, string Template, int Line, int Column, params string[] param)
|
||||
{
|
||||
_violations.Add(new(RuleName, Message, Line, Column));
|
||||
_violations.Add(new(RuleName, Template, Line, Column, param));
|
||||
}
|
||||
|
||||
protected void AddViolation(TSqlFragment node, params string[] param)
|
||||
{
|
||||
AddViolation(Name, this.GetText(param), GetLineNumber(node), GetColumnNumber(node));
|
||||
_violations.Add(new(this.Name, this.Text, GetLineNumber(node), GetColumnNumber(node), param));
|
||||
}
|
||||
|
||||
protected string GetText(params string[] param)
|
||||
|
||||
Reference in New Issue
Block a user