using Microsoft.SqlServer.TransactSql.ScriptDom; using SQLLinter.Common; namespace SQLLinter.Infrastructure.Rules; public class NoLockRule : BaseRuleVisitor { public override string Text => "Запрещено использование NOLOCK."; public override void Visit(TableHint node) { if (node.HintKind == TableHintKind.NoLock) { AddViolation(node); } } }