refactor: migrate OTel rules out of core analyzers#127
Conversation
|
@coderabbitai autofix |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found. |
📝 WalkthroughWalkthroughThe PR reworks the analyzer suite: the package diagnostics count is updated from 106→88 and code fixes from 42→36. Multiple analyzers and their tests were removed (including AL0061, AL0067, AL0070, AL0075, AL0076, AL0086, AL0093, AL0096 tests removed then analyzer added, AL0113, and several AL01xx rules), test files were deleted or added, and the internal GenAI semconv facts type was removed. Several code-fix providers and new/updated tests were added or modified. No public API signatures for remaining analyzers were changed in the diff. 🚥 Pre-merge checks | ✅ 9✅ Passed checks (9 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
@coderabbitai autofix |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53c754a578
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@coderabbitai autofix |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found. |
|
@coderabbitai autofix |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
…y.SemanticConventions.Analyzers
Pair to ANcpLua/ANcpLua.OpenTelemetry.SemanticConventions.Analyzers
PR migrate/import-otel-rules-from-AL. Rules listed below are deleted
from this pack and re-imported under the donation-track repo's
Imports/ subtree. NuGet consumers picking up the next minor of
ANcpLua.Analyzers should reference
ANcpLua.OpenTelemetry.SemanticConventions.Analyzers for equivalent
rule behaviour. ID renumbering AL00xx -> OTSC00xx happens in the
OTSC repo's follow-up PR; this commit only removes the source / test
/ codefix files from this pack.
Removed analyzers (40):
OpenTelemetry: AL0013, 0061, 0063, 0073, 0076, 0077, 0078, 0079, 0085,
0086, 0088, 0089, 0090, 0091, 0092, 0093, 0107, 0108,
0109, 0110, 0113, 0135
GenAI: AL0064, 0065, 0066, 0074, 0124, 0128, 0129, 0130, 0131
Metrics: AL0067, 0068, 0071, 0072, 0075
Configuration: AL0069, 0070, 0083, 0096
Removed codefixes (9): for AL0071, 0072, 0073, 0074, 0107, 0108, 0109,
0110, 0124.
Removed tests (31): one or two test files per rule (some rules had no
standalone test file in this repo).
Removed shared semconv helpers:
src/.../Semconv/OpenTelemetryDeprecatedSemconvCatalog.cs
src/.../Semconv/OpenTelemetryGenAiSemconvFacts.cs
(only consumed by the moved OTel rules; the Semconv directory is
left empty by this commit and will be pruned by Git automatically.)
Resources.resx entries for the removed AL00<id>AnalyzerTitle /
MessageFormat / Description keys remain in place for now (dead but
harmless). They get pruned in a follow-up alongside CodeFixResources.resx
parity cleanup. AnalyzerReleases tracking files are intentionally not
edited in this commit per maintainer no-md-writes rule; the removed
rules were all Unshipped, so their entries are simply deleted by the
next regeneration of the file.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
13864fc to
38a14bd
Compare
|
@coderabbitai autofix |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Summary
Removes 37 telemetry/observability/instrumentation analyzer rules from this pack. They are re-imported into the donation-track repo
ANcpLua.OpenTelemetry.SemanticConventions.Analyzersin PRmigrate/import-otel-rules-from-AL(paired with this one).Scope
src/ANcpLua.Analyzers/Analyzers/(AL0013, 0061, 0063, 0064, 0065, 0066, 0067, 0068, 0069, 0070, 0071, 0072, 0073, 0074, 0075, 0076, 0077, 0078, 0079, 0083, 0085, 0086, 0088, 0089, 0090, 0091, 0092, 0093, 0096, 0107, 0108, 0109, 0110, 0113, 0131, 0135).ANcpLua.Analyzersbecause they enforce Loom tool-governance metadata, not OTel semantic-convention validation.src/ANcpLua.Analyzers.CodeFixes/CodeFixes/(for AL0071, 0072, 0073, 0074, 0107, 0108, 0109, 0110, 0124).tests/ANcpLua.Analyzers.Tests/.src/ANcpLua.Analyzers/Semconv/OpenTelemetryDeprecatedSemconvCatalog.cs,src/ANcpLua.Analyzers/Semconv/OpenTelemetryGenAiSemconvFacts.cs).AnalyzerReleases.Unshipped.md, README, changelog, and package description are aligned with the retained core rule set.Consumer impact
This is a breaking change for anyone that has
<NoWarn>/ EditorConfig /.globalconfigoverrides on the removed rule IDs. The replacement path is to add aPackageReferencetoANcpLua.OpenTelemetry.SemanticConventions.Analyzersonce that package ships.Validation
dotnet clean ANcpLua.Analyzers.slnxdotnet test --solution ANcpLua.Analyzers.slnx(692 passed)Summary by CodeRabbit
New Features
Removed
Improvements
Tests
Documentation