Skip to content

refactor(Conventions): open final classes and private members - #2429

Merged
DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:refactor/tidy-rules
Nov 22, 2026
Merged

DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:refactor/tidy-rules

Conversation

@DerManoMann

Copy link
Copy Markdown
Collaborator

Overview

AGENTS.md asks for protected over private, but a number of members in src are still private, and seven classes are final. Both decide in advance that nobody will need to extend them, which leaves copying the class as the only way out for someone who does.

Opening them up is only workable if protected members are not treated as a frozen API, so that is written down too, together with the docblock shape the recent clean-ups follow.

No output changes.

Changes

  • final removed from Undefined, ComponentKey, JsonPointer, SourceLocation, SecurityRequirement, ServerVariableEnum and Schema\AdditionalProperties
  • private members in src made protected
  • AGENTS.md: no final, and protected signatures may change
  • docs/dev/writing-docs.md: a Docblocks section on summary, description and the single-line form

Drop `final` from the seven classes that had it, and make every `private`
member in `src` protected, except `Shortcuts::ITEMS_KEEP_PROPERTIES`.

Add the docblock shape to `docs/dev/writing-docs.md`, and the rules on
`final` and on protected signatures to `AGENTS.md`.
@DerManoMann
DerManoMann merged commit fd3b62e into zircote:master Nov 22, 2026
20 checks passed
@DerManoMann
DerManoMann deleted the refactor/tidy-rules branch November 22, 2026 23: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