Skip to content

Fix typos, stale commands, and dead links in docs - #14

Closed
olitreadwell wants to merge 1 commit into
mainfrom
docs-fix-links-and-typos
Closed

olitreadwell wants to merge 1 commit into
mainfrom
docs-fix-links-and-typos

Conversation

@olitreadwell

Copy link
Copy Markdown
Owner

What changed

Docs cleanup pass: 17 meaning-preserving fixes in 6 files, with no behavior changes.

  • README_CN.md, README_KR.md: replace the removed swiftlint autocorrect command with swiftlint --fix, and fix the stale lint/autocorrect pairing in the --use-script-input-files section to lint/analyze, matching the English README.
  • README_CN.md, README_KR.md: re-point the runscript.png and select-swiftlint-plugin.png screenshots, and the Realm blog link, at verified Wayback snapshots. The raw assets were deleted from assets/, and realm.io/news now redirects to the dead academy.realm.io host.
  • .github/ISSUE_TEMPLATE/rule-request.md: the ../README.md#opt-in-rules link resolved to the nonexistent .github/README.md. Point it at the README anchor the same way CONTRIBUTING.md and bug-report.md already do.
  • CHANGELOG.md: swiftlint analayze -> swiftlint analyze.
  • StrictFilePrivateRule.swift, LetVarWhitespaceRule.swift: fix Outter -> Outer and @Wapper -> @Wrapper in the example snippets. These render on the published rule documentation page.

Why

Self-found link-rot and stale-command pass.

Every item was verified live before the fix: the raw screenshot URLs return 404 and each Wayback snapshot returns 200 with an image/png body; realm.io/news 301-redirects to academy.realm.io, which is NXDOMAIN; and swiftlint --fix plus lint/analyze are the commands the current README documents.

How to verify

git fetch https://github.com/olitreadwell/SwiftLint.git docs-fix-links-and-typos
git checkout FETCH_HEAD
swift test

The two rule-example edits are covered by StrictFilePrivateRuleGeneratedTests and LetVarWhitespaceRuleGeneratedTests.

markdownlint-cli2 with the repo's .markdownlint.yml reports 0 errors on the CI lint globs (CHANGELOG.md, CONTRIBUTING.md, README.md).


PROMOTION NOTE (remove this section before/when opening against upstream):

gh pr create --repo realm/SwiftLint --base main --head olitreadwell:docs-fix-links-and-typos

Compare: realm/SwiftLint@main...olitreadwell:SwiftLint:docs-fix-links-and-typos

@olitreadwell

Copy link
Copy Markdown
Owner Author

Superseded by #16. These were two same-kind documentation cleanup PRs in this fork, so they were consolidated into one branch: #16 now also carries the changes from this PR, keeping a single reviewable diff.

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