Skip to content

docs(rules): complete 44/44 linter and 69/69 breaking change catalogs (EN + RU) - #18

Open
ZergsLaw wants to merge 1 commit into
mainfrom
docs/v1-rules-catalog
Open

ZergsLaw wants to merge 1 commit into
mainfrom
docs/v1-rules-catalog

Conversation

@ZergsLaw

Copy link
Copy Markdown
Contributor

Summary

Independent PR (3 of 4 — strictly touches content/docs/cli/linter/**, content/docs/cli/breaking-changes/**, and next.config.mjs; zero file overlap with the other 3 PRs).

  • Linter catalog (44/44 rules verified against easyp/internal/rules/builder.go, EN + RU):
    • Fix cli/linter/index.{mdx,ru.mdx} (--cfg → --config, add --frozen, remove false PACKAGE_NO_IMPORT_CYCLE unimplemented note, clearly distinguish 5 selectable groups vs 4 linters.default presets, document compile-error skip behavior).
    • Add 3 missing rule pages (6 files EN + RU): package-no-import-cycle, syntax-specified, field-not-required.
    • Fix invalid COMMENT → COMMENTS (14 files) and wrong MINIMAL/BASIC/DEFAULT category/preset tags across all 44 rules (88 files).
    • Rewrite 4 broken rule pages (8 files): package-same-java-multiple-files, package-version-suffix (.vN dot segment instead of _vX), directory-same-package, and package-same-directory (multi-file ModuleRule examples).
    • Apply buf-parity doc updates (<Service><Method> request/response naming, rpc-request-response-unique RU fix, v1 linters-settings.<RULE>.suffix, package-directory-match <moduleBase>.<dir>), fully translate comment-rpc.ru.mdx & package-same-ruby-package.ru.mdx, normalize RU headings, and add meta.ru.json (×2).
  • Breaking Changes catalog (69/69 rules verified against easyp/internal/config/breaking_profiles.go, EN + RU):
    • Delete 3 removed legacy rules (import-no-delete, oneof-field-no-delete, oneof-field-same-type) and add 6 permanent (308) redirects in next.config.mjs (EN + RU) → /docs/cli/breaking-changes & /ru/docs/cli/breaking-changes.
    • Fix all 12 kept rule pages (24 files): replace fictional WIRE+ with exact profiles (FILE, PACKAGE, WIRE_JSON, WIRE), replace (BREAKING_CHECK) with real rule IDs, and fix contradictory Good examples (field-no-delete, enum-value-no-delete, field-same-type, field-same-cardinality, oneof-no-delete).
    • Add all 57 missing breaking rule pages (114 EN + RU files) + complete 69-rule profile matrix on cli/breaking-changes/index.{mdx,ru.mdx} + --config/--frozen flags + meta.ru.json (×2).

Verification

  • Automated 1:1 parity script against easyp/internal/rules/builder.go (44/44) and easyp/internal/config/breaking_profiles.go (69/69), 0 WIRE+ / (BREAKING_CHECK) / - **COMMENT** / --cfg
  • npm run types:check, npm run test:release (20/20 pass), npm run build (1,034/1,034 static pages)
  • Verified 0 conflicts in a 4-way combined merge with the other 3 PRs.

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