Commit Graph
4 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 c8ccabee57 fix: harden parsing and edge cases found by new analyzers
Enables Meziantou.Analyzer and ReferenceTrimmer for every project (CI builds
with -warnaserror) and fixes what they and the new tests found:

- Checksum parsing bounds regex work: 1 s match timeout and over-long lines
  are reported as invalid instead of stalling.
- Release notes from the network are converted with timed-out generated
  regexes; blank lines before lists are no longer swallowed.
- --files-from only deletes the app's own temporary list, never an
  arbitrary file passed on the command line.
- Opening the data folder no longer accepts sibling folders that merely
  share a name prefix.
- Search highlighting uses the same culture-aware match length as the
  filter.
- British English is detected for Australia, New Zealand, Ireland and
  South Africa.
- Separate run/stop buttons per row so the tooltip and screen-reader name
  match the action; JSON/CSV export types are translated.
- Settings saves are serialised under a lock; ConfigureAwait in Core.
- Version 1.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:16:40 +07:00
poli0981andClaude Opus 5.5 c956930186 refactor(app): rebuild the UI layer on DI, the Core engine and Avalonia 12
- Composition root (AppHost) with Microsoft.Extensions.DependencyInjection;
  view models receive dialog, storage, clipboard and launcher services.
- Logging: daily rolling log file (invariant timestamps, user paths masked,
  14-day retention), in-memory sink for the Developer console, Avalonia
  warnings forwarded, synchronous crash reports.
- Settings: one SettingsService over SettingsStore (atomic debounced saves
  taken under a lock, corrupt-file recovery, 1.x font settings migration).
- Create/Verify run on BatchProcessor and HashEngine: dropping folders no
  longer crashes, imports run off the UI thread in batches, rows can be
  started/stopped individually, UI updates are pumped every 100 ms, and
  statuses are stored as enums and translated when displayed.
- Checksum files: export GNU/BSD/SFV/JSON/CSV manifests, ZIP archives with
  unique entry names plus a manifest, verify any manifest or sidecar file
  (UNC and device paths are rejected).
- OS integration: --create/--verify arguments, single instance with argument
  forwarding, optional Explorer context menu (per-user, removed on
  uninstall), macOS file activation, on-demand restart as administrator.
- Updates: stable channel only, optional daily background check,
  cancellable download, install now or on exit.
- Removed: Free Memory, Force Quit and its timeout, automatic elevation,
  developer update channel and disclaimer window, ViewLocator, unused
  converters.
- Fixed: search highlight duplicating the end of file names, single-letter
  shortcuts firing while typing, culture reverting after language changes,
  colour-blind and high-contrast palettes not reaching status colours.
- Headless --smoke-test mode for CI and the release upgrade gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:16:40 +07:00
poli0981andClaude Opus 5.5 1e19e6bcd1 style: apply dotnet format (using order, whitespace, final newlines)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:16:40 +07:00
poli0981andClaude Opus 5.5 052ed6819f refactor: move the app into src/ and extract HashTool.Core
- src/HashTool.App: the Avalonia app (namespace HashTool.App). The assembly
  keeps the name CheckHash because every 1.x release shipped CheckHash(.exe)
  as Velopack's mainExe.
- src/HashTool.Core: UI-independent hashing code (HashService, HashType,
  ProgressStream, ProcessingStrategyService, AppConstants).
- tests/HashTool.Core.Tests: xUnit v3 characterization tests for the hashing
  service, including the current little-endian CRC-32 output.
- Directory.Build.props (shared settings, NuGet audit), central package
  management, global.json (SDK 10.0.4xx, Microsoft.Testing.Platform runner),
  .editorconfig, HashTool.slnx replace CheckHash.csproj/CheckHash.sln.
- Only the icon and logo are embedded as Avalonia resources; screenshots move
  to docs/images and are no longer compiled into the binary.
- Drop the unused generated Resources.Designer.cs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:16:40 +07:00