Skip to content

Enable scoped analyzers for vector AST helpers - #4

Open
allancascante wants to merge 2 commits into
mainfrom
feature/HU-03
Open

allancascante wants to merge 2 commits into
mainfrom
feature/HU-03

Conversation

@allancascante

Copy link
Copy Markdown

Description

Enable Microsoft.CodeAnalysis.NetAnalyzers for the ScriptDOM project and scope analyzer warnings to the hand-written vector support files. This addresses HU-03 maintainability findings while avoiding analyzer warnings in unrelated source files.

The cleanup documents the public vector enum members, narrows helper singleton visibility, and removes an unused import. No parser behavior, AST declarations, or baselines were changed.

Validation:

  • dotnet build SqlScriptDom/Microsoft.SqlServer.TransactSql.ScriptDom.csproj --no-restore -f net8.0 -p:NoWarn=SYSLIB0051 — passed with 0 warnings and 0 errors. The suppression excludes existing SYSLIB0051 warnings outside this change’s scope.
  • dotnet test Test/SqlDom/UTSqlScriptDom.csproj --no-restore -f net8.0 --filter "FullyQualifiedName~TSql170SyntaxIn170ParserTest" — passed; 1 test passed, covering the existing TSql170 baselines.

Code Changes

  • Unit tests are added, if possible (no new tests were needed for this cleanup; the existing baseline test was run)
  • Existing tests are passing
  • New or updated code follows the guidelines here

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant