Добавлена настройка генерации деталировки
This commit is contained in:
@@ -7,14 +7,16 @@ namespace SQLLinter.Infrastructure.Parser;
|
||||
public class SqlFileProcessor : ISqlFileProcessor
|
||||
{
|
||||
private readonly IRuleVisitor ruleVisitor;
|
||||
private readonly IConfig _config;
|
||||
|
||||
private readonly IRuleExceptionFinder ruleExceptionFinder;
|
||||
|
||||
public SqlFileProcessor(
|
||||
public SqlFileProcessor(IConfig config,
|
||||
IRuleVisitor ruleVisitor,
|
||||
IPluginHandler pluginHandler
|
||||
)
|
||||
{
|
||||
this._config = config;
|
||||
this.ruleVisitor = ruleVisitor;
|
||||
ruleExceptionFinder = new RuleExceptionFinder(pluginHandler.RuleWithNames);
|
||||
}
|
||||
@@ -93,7 +95,7 @@ public class SqlFileProcessor : ISqlFileProcessor
|
||||
|
||||
private void ProcessRules(Stream fileStream, IEnumerable<IRuleException> ignoredRules, string filePath)
|
||||
{
|
||||
ruleVisitor.VisitRules(filePath, ignoredRules, fileStream);
|
||||
ruleVisitor.VisitRules(filePath, ignoredRules, fileStream, this._config.GenerateDetails);
|
||||
}
|
||||
|
||||
private Stream GetFileContents(string filePath)
|
||||
|
||||
Reference in New Issue
Block a user