Skip to content

fix: make culture-sensitive formatting explicit (CA1305) - #156

Merged
DeepDiver1975 merged 1 commit into
mainfrom
fix/analyzer-culture-invariant
Aug 30, 2026
Merged

fix: make culture-sensitive formatting explicit (CA1305)#156
DeepDiver1975 merged 1 commit into
mainfrom
fix/analyzer-culture-invariant

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Collaborator

Part of the analyzer-hardening effort (see #153 for rule scoping).

Changes: All 18 CA1305 findings — every locale-variant conversion now names its provider.

  • Deterministic data paths (InvariantCulture): IncidentRepository (Convert.ToInt32/int.Parse on SQLite+$ 'apartment_labels'/floor_descriptions JSON keys), Migrations.GetVersion, SnapshotMapper wire format (int dict keys both directions), IncidentHostController 4-digit PIN (D4)
  • Documents PDF (InvariantCulture): ForcesSection Stärke counters — keeps generated PDF bytes deterministic across host locales
  • App UI (InvariantCulture): file-timestamp stem in HomeViewModel.NewIncidentAsync, ScbaTruppRow.StartTimeDisplay HH:mm — numeric-only formats, no visible change
  • TasksViewModel: Convert.ToInt32(enum) ordering → plain (int) cast

Verification: full harness build (--no-incremental, AnalysisMode=All) shows CA1305 = 0, 0 errors, all other rule counts equal to main baseline; all 801 tests pass.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975
DeepDiver1975 force-pushed the fix/analyzer-culture-invariant branch from 77ec7d5 to 50e1f5b Compare August 30, 2026 20:12
@DeepDiver1975
DeepDiver1975 merged commit e012056 into main Aug 30, 2026
2 checks passed
@DeepDiver1975
DeepDiver1975 deleted the fix/analyzer-culture-invariant branch August 30, 2026 20:19
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