Uh oh!
There was an error while loading. Please reload this page.
chore: update ktsu.Sdk to 2.21.1 [patch] - #151
Conversation
Bumps ktsu.Sdk and its variants to 2.21.1 in global.json. File headers are migrated to the single line from COPYRIGHT.md, which is what the SDK writes into .editorconfig as file_header_template and IDE0073 enforces. Fixes GeneratorBase.WriteHeaderTo so generated sources carry the current header instead of regenerating the old one, and updates CLAUDE.md to match.
matt-edmondson
commented
Aug 14, 2026
Superseded by #157, which redid this migration against current This branch was 24 commits behind when #157 was authored (and is now 31 behind), and pinned Not discarding your CLAUDE.md correction though: Closing as superseded. |
- S2223 (3, HIGH): PropertyTemplate.AutoGet/AutoSet/AutoInit were mutable
public static fields. Made static readonly - they are compared by
reference in WriteTo to detect auto-property shorthand, so they must stay
single fixed instances and readonly enforces that without changing the
comparison.
- S1192 (4): extracted the repeated validation failure message in the
kebab/macro/snake/sentence case attributes to a FailureMessage constant.
- S6610 (6): StartsWith("-")/EndsWith("_") -> the char overloads in the
same three casing attributes. Verified across all TFMs; Polyfill supplies
the char overloads on netstandard2.0.
- S6580 (2): IsDateTime/IsTimeSpan now pass an explicit format provider.
Deliberately CultureInfo.CurrentCulture, not InvariantCulture: that is
what the provider-less overload already used, so which strings validate
is unchanged. Switching to invariant would be a behaviour change and is
the maintainers call.
- S3358 (3): extracted the nested ternary in AccessibilityLevelAgainst into
named thresholds, and replaced the chained Clamp01 ternaries in Color and
Hsl with Math.Clamp (identical NaN behaviour).
Also refreshed CLAUDE.md - it still documented the old three-line header.
Carried over from the superseded ktsu-dev#151, extended to note that
SourceGeneratorTests now asserts the emitted header.
Build clean on all TFMs, 1089/1089 tests pass.
Bumps ktsu.Sdk and its variants to 2.21.1 in global.json. File headers are migrated to the single line from COPYRIGHT.md, which is what the SDK writes into .editorconfig as file_header_template and IDE0073 enforces. Fixes GeneratorBase.WriteHeaderTo so generated sources carry the current header instead of regenerating the old one, and updates CLAUDE.md to match.
Generated with Claude Code