Skip to content

🐛 Bug - CodeAuditor reports false 404 broken links #984

@Aibono1225

Description

@Aibono1225

Requested by: @Aibono1225 via YakShaver.ai 🦬
cc: @Aibono1225, @brookjeynes-ssw, @adamcogan, @PothieuG @zacharykeeping

Hi Team!

  🟥  Watch the video (1 min 19 sec)

  Url from screen share: https://ssw.com.au/rules/set-language-on-code-blocks
  Report link: https://codeauditor.com/build/2cd71c4f-146e-4b75-0a6b-ac1f6bf2c752?displayMode=2

Pain

When running the CodeAuditor check against the SSW.Rules project, the generated audit report flags certain links as 404 (broken). However, manual verification shows that some of these links are still valid and accessible. In at least one case, the report references broken anchor text, but the actual hyperlink works correctly when clicked. The source of these reported broken links is unclear, making it difficult for users to understand or remediate the issue. This results in false positives and reduces trust in the accuracy of the CodeAuditor link-checking results.

Acceptance Criteria

  1. CodeAuditor correctly distinguishes between truly broken (404) links and valid, accessible links.
  2. Anchor links that resolve successfully are not reported as broken in the audit report.
  3. The audit report clearly identifies the exact source (file and line/element) of any detected broken link.
  4. False positive 404 link findings are eliminated or significantly reduced.
  5. Updated behavior is verified by rerunning the CodeAuditor check on the SSW Rules project with consistent results.

Reproduce Steps

  1. Run the CodeAuditor analysis on the SSW.Rules project.
  2. Review the generated audit report for 404 or broken link findings.
  3. Locate a reported broken link based on anchor text in the report.
  4. Manually navigate to the referenced page and click the reported link.
  5. Observe that the link resolves successfully despite being flagged as broken.

Screenshot

Screenshot
Figure: Reported broken link flagged as 404 is actually working

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions