diff --git a/SQLLinter.CLI/Program.cs b/SQLLinter.CLI/Program.cs index eef9297..a5d631c 100644 --- a/SQLLinter.CLI/Program.cs +++ b/SQLLinter.CLI/Program.cs @@ -7,7 +7,7 @@ namespace SQLLinter.CLI { static void Main(string[] args) { - var rep = new MarkdownFileReporter(); + var rep = new HTMLReporter(); var con = new Config() { CompatibilityLevel = 170, @@ -45,14 +45,14 @@ namespace SQLLinter.CLI var linter = new Linter(con, rep); - using (StreamReader reader = new StreamReader(@"C:\Users\frost\Desktop\DISTR-2599\test.sql")) + using (StreamReader reader = new StreamReader(@"C:\Users\frost\Downloads\Telegram Desktop\tdostdetail.sql")) { linter.Run("test.sql", reader.BaseStream); } //linter.Run(@"C:\Users\frost\Desktop\DISTR-2599\test.sql"); - rep.SaveReport(@"C:\Users\frost\Desktop\DISTR-2599\test.md"); + rep.SaveReport(@"C:\Users\frost\Downloads\Telegram Desktop\test.html"); } } } diff --git a/SQLLinter/Infrastructure/Rules/NestedSubqueryDepthRule.cs b/SQLLinter/Infrastructure/Rules/NestedSubqueryDepthRule.cs index 0ab22a5..a05f251 100644 --- a/SQLLinter/Infrastructure/Rules/NestedSubqueryDepthRule.cs +++ b/SQLLinter/Infrastructure/Rules/NestedSubqueryDepthRule.cs @@ -5,7 +5,7 @@ namespace SQLLinter.Infrastructure.Rules; public class NestedSubqueryDepthRule : BaseRuleVisitor { - public override string Text => "Слишком глубокие подзапросы (>" + _maxDepth + "} уровней): {0}"; + public override string Text => "Слишком глубокие подзапросы (>" + _maxDepth + " уровней): {0}"; private int _depth = 0; private const int _maxDepth = 3;