Skip to content

chore: trim comments and tighten docs - #209

Merged
sinemacula-ben merged 12 commits into
masterfrom
chore/tidy-repo
Nov 17, 2026
Merged

sinemacula-ben merged 12 commits into
masterfrom
chore/tidy-repo

Conversation

@sinemacula-ben

@sinemacula-ben sinemacula-ben commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Trims comments, docblocks and docs across the repo. One commit per area. No code changes.

What changed

  • Docblocks keep every tag the ruleset requires, but the prose is cut to a one-line summary plus a short line of why where one is needed. Summaries that only restated the class name now say what the class does.
  • Rationale paragraphs in sniffs, rules, configs and workflows are cut to one line or removed.
  • Workflow section and job header banners are unchanged. The |---| banners in the fixer rules file are now single // <Category> lines. The class-notation rules had been sitting under the cast banner, so they now get their own label.
  • Test docblocks are one-line behaviour statements. The per-case narration in the RuleTester tables is cut back.
  • README and CONTRIBUTING are tighter. Fixed where they disagreed with the code:
    • The ESLint config path is .mjs, matching source.toml.
    • The type-checked layer adds seven rules, not two.
    • Added the missing ignoredParentClasses option.
    • The mutable-static rule exempts test classes.
    • comment-line-wrap does start a paragraph at a capitalised line, like the PHP sniff.
    • Smells run in comment mode; they are not advisory.
    • All six policy scripts are listed, and the --filter example no longer names a test that doesn't exist.
  • Removed one commented-out rule in type-checked.js.

Left alone

  • Sniff and rule messages, ESLint meta.messages/meta.docs.description, every config key and value.
  • Fixtures, consumer templates, CHANGELOG and lockfiles.
  • Test method names.
  • The // NOSONAR in .qlty/configs/.php-cs-fixer.dist.php. Swapping it could change radarlint findings, so it belongs in its own change.

Verification

Compared against master at 88ec5e6:

  • With comments and whitespace stripped, every changed PHP and JS file matches master.
  • These are byte-identical to master:
    • phpcs output over every .inc fixture
    • the phpcs sniff list
    • the resolved fixer rules and config
    • the resolved ESLint flat configs and rule meta
    • the npm pack file list
  • Parsed YAML, TOML and XML are unchanged.
  • PHPUnit: 262 tests, line coverage unchanged at 99.77%.
  • Vitest: 586 tests.
  • PHPStan and ESLint dogfood: clean.
  • qlty check --all --no-cache, qlty fmt --all and qlty smells --all: clean.
  • Infection (full run): same 2081 mutants, covered MSI 94% before and after.
  • Policy scripts: shared, knip, trivy, zizmor and terraform pass. Swift fails the same way locally on master (swiftlint exits with an unknown status under qlty).

@sinemacula-ben
sinemacula-ben merged commit 0fa7cf3 into master Nov 17, 2026
21 checks passed
@sinemacula-ben
sinemacula-ben deleted the chore/tidy-repo branch November 17, 2026 05:13
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