Skip to content

Commit 028ebec

Browse files
ANcpLuaclaude
andcommitted
chore: bump Roslyn.Utilities.Sources to 1.48.0, fix AL0121 dogfood violation
- ANcpLuaRoslynUtilitiesSourcesVersion 1.47.0 → 1.48.0 - ANcpLuaAnalyzersVersion 1.21.1 → 1.22.0 (now published) - Replace NormalizeWhitespace() in AL0016 code fix with ToFullString().Trim() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 31d68b6 commit 028ebec

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ LAYER 3: qyl, TourPlanner, etc <- END USERS (auto-injected by SDK)
129129
| Package | Variable | Purpose |
130130
|---------|----------|---------|
131131
| Microsoft.CodeAnalysis.CSharp | `$(RoslynVersion)` 5.3.0 | Roslyn APIs |
132-
| ANcpLua.Roslyn.Utilities.Sources | `$(ANcpLuaRoslynUtilitiesSourcesVersion)` 1.47.0 | Compile-time source package |
133-
| ANcpLua.Roslyn.Utilities.Testing | `$(ANcpLuaRoslynUtilitiesTestingVersion)` 1.47.0 | Test infrastructure |
132+
| ANcpLua.Roslyn.Utilities.Sources | `$(ANcpLuaRoslynUtilitiesSourcesVersion)` 1.48.0 | Compile-time source package |
133+
| ANcpLua.Roslyn.Utilities.Testing | `$(ANcpLuaRoslynUtilitiesTestingVersion)` 1.48.0 | Test infrastructure |
134134
| xunit.v3.mtp-v2 | `$(XunitV3Version)` 3.2.2 | Test framework |
135135
| AwesomeAssertions | `$(AwesomeAssertionsVersion)` 9.4.0 | Assertions |

Version.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
ROSLYN.UTILITIES.SOURCES (Source-only package for generators)
4444
═══════════════════════════════════════════════════════════════════════ -->
4545
<PropertyGroup Label="Roslyn.Utilities.Sources">
46-
<ANcpLuaRoslynUtilitiesSourcesVersion>1.47.0</ANcpLuaRoslynUtilitiesSourcesVersion>
46+
<ANcpLuaRoslynUtilitiesSourcesVersion>1.48.0</ANcpLuaRoslynUtilitiesSourcesVersion>
4747
</PropertyGroup>
4848

4949
<!-- ═══════════════════════════════════════════════════════════════════════
@@ -119,7 +119,7 @@
119119
<!-- IMPORTANT: Must be the last PUBLISHED version on nuget.org.
120120
The publish workflow sets the new version via -p:Version at build/pack time.
121121
Bumping this ahead of publishing causes NU1102 (SDK injects this as a PackageReference). -->
122-
<ANcpLuaAnalyzersVersion>1.21.1</ANcpLuaAnalyzersVersion>
122+
<ANcpLuaAnalyzersVersion>1.22.0</ANcpLuaAnalyzersVersion>
123123
<SbomTargetsVersion>4.1.5</SbomTargetsVersion>
124124
<BannedApiAnalyzersVersion>4.14.0</BannedApiAnalyzersVersion>
125125
<JonSkeetAnalyzersVersion>1.0.0-beta.6</JonSkeetAnalyzersVersion>

src/ANcpLua.Analyzers.CodeFixes/CodeFixes/AL0016CombineDeclarationWithNullCheckCodeFixProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ private static async Task<Document> CombineAsync(
4747
CancellationToken ct) {
4848
var editor = await DocumentEditor.CreateAsync(document, ct);
4949

50-
var patternText = $"{initializer.WithoutTrivia().NormalizeWhitespace()} is not {{ }} {variableName}";
50+
var patternText = $"{initializer.WithoutTrivia().ToFullString().Trim()} is not {{ }} {variableName}";
5151
var condition = SyntaxFactory.ParseExpression(patternText);
5252

5353
if (initializer is AssignmentExpressionSyntax or ConditionalExpressionSyntax or LambdaExpressionSyntax) {
54-
patternText = $"({initializer.WithoutTrivia().NormalizeWhitespace()}) is not {{ }} {variableName}";
54+
patternText = $"({initializer.WithoutTrivia().ToFullString().Trim()}) is not {{ }} {variableName}";
5555
condition = SyntaxFactory.ParseExpression(patternText);
5656
}
5757

0 commit comments

Comments
 (0)