Skip to content

style: apply repo-wide code formatting#18

Merged
tgiachi merged 1 commit into
developfrom
style/format-sweep
Jun 30, 2026
Merged

style: apply repo-wide code formatting#18
tgiachi merged 1 commit into
developfrom
style/format-sweep

Conversation

@tgiachi

@tgiachi tgiachi commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Summary

Repo-wide application of the configured formatter/ReSharper layout (attribute placement on their own line, member layout, whitespace) across 621 files. Whitespace/layout only — no production behaviour change.

Safety check

A format sweep can introduce semantic changes via "make get-only" cleanups. I gated this:

  • Build: 0 errors.
  • Full suite: 917 passed, 0 failures.
  • The sweep made one test-helper property get-only, which broke PropertyPathTests.Setter_Property_WritesValue (the property is assigned through an expression-tree setter the analyzer can't see). Restored its setter.
  • Verified no production property lost a setter (the JSON config DTOs only had their attributes split onto their own line; setters intact). No get-only conversions in src/.

Test plan

  • Solution builds (0 errors)
  • Full suite green (917 tests, 0 failures)

Apply the configured ReSharper/formatter layout across the solution (attribute
placement, member layout, whitespace). One semantic side-effect was corrected:
the cleanup turned a test helper property get-only, breaking
PropertyPathTests.Setter_Property_WritesValue (the property is written via an
expression-tree setter the analyzer can't see) — restored its setter. No
production property lost a setter (verified) and the full suite is green.

using var wrong = new EntryCipher(RandomNumberGenerator.GetBytes(32), 65536);
encrypted.Position = 0;
await Assert.ThrowsAsync<AuthenticationTagMismatchException>(() => wrong.DecryptAsync(encrypted, new MemoryStream())
await Assert.ThrowsAsync<AuthenticationTagMismatchException>(
() => wrong.DecryptAsync(encrypted, new MemoryStream())
new MemoryStream(Encoding.UTF8.GetBytes(secretArmored))
);
var ring = new PgpSecretKeyRingBundle(input).GetKeyRings().Cast<PgpSecretKeyRing>().First();
using var input = PgpUtilities.GetDecoderStream(new MemoryStream(Encoding.UTF8.GetBytes(secretArmored)));
{
[ObservableProperty]
private string _title = "SquidStd.Tui — Counter";
[ObservableProperty] private string _title = "SquidStd.Tui — Counter";
catch (OperationCanceledException)
{
}
catch (OperationCanceledException) { }
? logDirectory
: Path.Combine(Options.RootDirectory, logDirectory);
? logDirectory
: Path.Combine(Options.RootDirectory, logDirectory);
catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested)
{
}
catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested) { }
@tgiachi
tgiachi merged commit 26f1e12 into develop Jun 30, 2026
3 checks passed
@tgiachi
tgiachi deleted the style/format-sweep branch June 30, 2026 09:14
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.

2 participants