Skip to content

Fix dead reference links in rule docs - #16

Closed
olitreadwell wants to merge 1 commit into
mainfrom
fix-dead-reference-links
Closed

olitreadwell wants to merge 1 commit into
mainfrom
fix-dead-reference-links

Conversation

@olitreadwell

Copy link
Copy Markdown
Owner

What changed

  • Repointed the Swift compiler issue link in the NSNumberInitAsFunctionReferenceRule rationale from apple/swift/issues/51036 to swiftlang/swift/issues/51036.
  • Repointed the issue link above the OptionalEnumCaseMatchingRule example from apple/swift/issues/61817 to swiftlang/swift/issues/61817.
  • Replaced the dead https://ericasadun.com/2016/10/02/quick-style-survey/ reference in the AttributesRule rationale with a working Wayback snapshot of the same page.

Why

The Swift compiler repository moved from apple/swift to swiftlang/swift, so both apple/swift/issues/... URLs now return 404 while the new URLs resolve to the same issues. The personal-site link used to support the AttributesRule discussion no longer resolves at all, leaving that rationale without its reference. These are comment/rationale-only edits: no rule logic, configuration, or output changes.

How to verify

Check the links directly:

  • https://github.com/apple/swift/issues/51036 -> 404; https://github.com/swiftlang/swift/issues/51036 -> 200
  • https://github.com/apple/swift/issues/61817 -> 404; https://github.com/swiftlang/swift/issues/61817 -> 200
  • https://ericasadun.com/2016/10/02/quick-style-survey/ -> connection failure; the Wayback snapshot -> 200

Check out the branch and run the project's own checks:

git fetch https://github.com/olitreadwell/SwiftLint.git fix-dead-reference-links
git checkout FETCH_HEAD
swift test        # SPM test suite (macOS/Linux)
# or
make spm_test

The diff is limited to doc comments and rule rationale, so there is no behavior change and no CHANGELOG entry is required.


PROMOTION NOTE: Fork-staged only; not to be opened upstream until Oli promotes it manually, e.g.
gh pr create --repo realm/SwiftLint --base main --head olitreadwell:fix-dead-reference-links --title "Fix dead reference links in rule docs" --body-file <this body>

@olitreadwell

Copy link
Copy Markdown
Owner Author

Consolidating same-kind documentation/typo cleanups for this repo into #19. The still-relevant changes from this PR have been folded into that branch (any hunks already fixed upstream were dropped), so this PR is superseded. Closing to avoid duplicate same-kind PRs — the combined fix stays staged in #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