From f103bc4ec4a30f50d61f2a88af34b1faa4dfa46d Mon Sep 17 00:00:00 2001 From: FrigaT Date: Fri, 26 Dec 2025 23:07:13 +0300 Subject: [PATCH] fix IReportFormatter --- SQLLinter.CLI/Program.cs | 4 ++-- SQLLinter/Infrastructure/Reporters/IReportFormatter.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SQLLinter.CLI/Program.cs b/SQLLinter.CLI/Program.cs index 0e689ae..2737344 100644 --- a/SQLLinter.CLI/Program.cs +++ b/SQLLinter.CLI/Program.cs @@ -62,8 +62,8 @@ namespace SQLLinter.CLI //linter.Run(@"C:\Users\frost\Desktop\DISTR-2599\test.sql"); - var formatter = new HtmlReportFormatter_v1(); - var content = formatter.Format(rep.Violations, bpmn); + var formatter = new HtmlReportFormatter_v2(); + var content = formatter.Format(rep.Violations, null); File.WriteAllText(@"C:\Users\frost\Downloads\Telegram Desktop\test.html", content); } diff --git a/SQLLinter/Infrastructure/Reporters/IReportFormatter.cs b/SQLLinter/Infrastructure/Reporters/IReportFormatter.cs index 3b7e631..fe7969c 100644 --- a/SQLLinter/Infrastructure/Reporters/IReportFormatter.cs +++ b/SQLLinter/Infrastructure/Reporters/IReportFormatter.cs @@ -6,5 +6,5 @@ namespace SQLLinter.Infrastructure.Reporters; public interface IReportFormatter { string Format(List violations); - string Format(List violations, BpmnDiagram diagram); + string Format(List violations, BpmnDiagram? diagram); }