Skip to content

chore: declare licence, publish symbols, and clear redundant code - #37

Merged
poxet merged 1 commit into
masterfrom
chore/console-cleanup
Jul 26, 2026
Merged

poxet merged 1 commit into
masterfrom
chore/console-cleanup

Conversation

@poxet

@poxet poxet commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

General cleanup of the Console repo.

Packaging

  • Declared the licence. The repo has an MIT LICENSE file but none of the three packages ever said so — every push logged License missing.
  • Added symbol support. Console was one of the few shipping repos with no IncludeSymbols at all, so consumers could never step into the source. Uses snupkg, not the legacy .symbols.nupkg — that name still ends in .nupkg, so the push loop would upload it as a regular package and nuget.org would reject it as a duplicate, which is how symbols failed silently across the rest of the toolkit.
  • Removed an unused System.Text.Json reference in the sample (NU1510).

CI

  • A failed push now fails the release. The loop ended in || true, so nothing a push did could fail the job. --skip-duplicate already makes re-pushing an existing version a success, so anything that still fails is real.

Code

  • Removed 20 overrides whose bodies only forwarded to base, plus the usings they were the last consumers of. The empty overrides are deliberately left — those suppress base behaviour and are not redundant.
  • Removed a redundant empty constructor.

.editorconfig

Test classes are named as sentences on purpose (With_command_line, When_writing_a_line) because the class name is the "given" half of the test description and reads directly in runner output. ReSharper's defaults wanted PascalCase types and _camelCase fields, which would destroy that, so InconsistentNaming is off under **/*.Tests/**.

ReSharper warnings 130 → 89. 44 tests pass, 2 skipped.

Packaging
- Declared PackageLicenseExpression MIT on all three packages. The repo
  has an MIT LICENSE file but none of the packages ever said so, and
  every push logged "License missing".
- Added IncludeSymbols/IncludeSource/SourceLink settings. Console was one
  of the few shipping repos with no symbol support at all, so consumers
  could never step into the source.
- SymbolPackageFormat is snupkg, not the legacy .symbols.nupkg. That name
  still ends in .nupkg, so the release push loop would upload it as a
  regular package and nuget.org would reject it as a duplicate - which is
  how symbols failed silently everywhere else in the toolkit.

CI
- A failed nuget push now fails the release. The loop ended in `|| true`,
  so no push could ever fail the job. --skip-duplicate already makes
  re-pushing an existing version a success, so anything that still fails
  is real. Also lists ./artifacts first, so the log shows the .snupkg
  next to its .nupkg.

Code
- Removed 20 overrides whose bodies only forwarded to base, and the
  usings they were the last consumers of. The empty overrides are left
  alone: those deliberately suppress base behaviour and are not
  redundant.
- Removed a redundant empty constructor and an unused System.Text.Json
  reference in the sample, which was raising NU1510.

.editorconfig
- Test classes are named as sentences on purpose (With_command_line,
  When_writing_a_line) because the class name is the "given" half of the
  test description and reads directly in runner output. ReSharper's
  default rules wanted PascalCase types and _camelCase fields, which
  would destroy that, so InconsistentNaming is off under **/*.Tests/**.
- Also records the PascalCase convention for static readonly fields.

ReSharper warnings 130 -> 89. 44 tests pass.
@poxet
poxet merged commit 92f3924 into master Jul 26, 2026
6 of 7 checks passed

This branch had an error being deployed

1 failed deployment
prerelease — 5d16938a Deployed Jul 26, 2026 by poxet via prerelease #33
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