Добавьте файлы проекта.
This commit is contained in:
15
SQLLinter/Infrastructure/Rules/DisallowCursorRule.cs
Normal file
15
SQLLinter/Infrastructure/Rules/DisallowCursorRule.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.SqlServer.TransactSql.ScriptDom;
|
||||
using SQLLinter.Common;
|
||||
|
||||
namespace SQLLinter.Infrastructure.Rules;
|
||||
|
||||
public class DisallowCursorRule : BaseRuleVisitor, IRule
|
||||
{
|
||||
|
||||
public override string Text => "Обнаружено использование оператора CURSOR";
|
||||
|
||||
public override void Visit(CursorStatement node)
|
||||
{
|
||||
AddViolation(node);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user