Skip to content

linter-rules/local-refs-exists says to fix links mentioned, but no links mentioned #4378

@gkellogg

Description

@gkellogg

Is your feature request related to a problem? Please describe.
I'm trying to find broken local references that the linter mentions but nothing reports on those references specifically missing.

Describe the solution you'd like
In local-refs-exist.js run(), it would be useful if a warning was shown for each offendingElement.

Additional context

Running locally:

 respec -s "http://localhost:8000/rdf-xml/spec/index.html?specStatus=WD" -o /dev/null --verbose -t 20 -e -w
[INFO] [Timeout: 20000ms] Processing resource: http://localhost:8000/rdf-xml/spec/index.html?specStatus=WD ...
[INFO] [Timeout: 19999ms] Launching browser
[INFO] [Timeout: 19272ms] Navigating to http://localhost:8000/rdf-xml/spec/index.html?specStatus=WD
[INFO] [Timeout: 18233ms] Navigation complete.
[INFO] [Timeout: 18167ms] Using ReSpec v32.7.0
[INFO] [Timeout: 18166ms] Processing ReSpec document...
[ERROR] undefined
[INFO] [Timeout: 16555ms] Processed document.
[WARNING] Broken local reference found in document.
   Count: 94
  Plugin: core/linter-rules/local-refs-exist
    Hint: Please fix the links mentioned.
[WARNING] W3C Recommendation track documents require a separate “Privacy Considerations” section.
  Plugin: w3c/linter-rules/required-sections
    Hint: Add a <section> with a “Privacy Considerations” header. See the [Horizontal review guidelines](https://www.w3.org/Guide/documentreview/#how_to_get_horizontal_review).
        If the document is not intended for the W3C Recommendation track, set [noRecTrack](https://respec.org/docs/#noRecTrack) to true
        or turn off the [required-sections](https://respec.org/docs/#required-sections) linter rule.
[WARNING] W3C Recommendation track documents require a separate “Security Considerations” section.
  Plugin: w3c/linter-rules/required-sections
    Hint: Add a <section> with a “Security Considerations” header. See the [Horizontal review guidelines](https://www.w3.org/Guide/documentreview/#how_to_get_horizontal_review).
        If the document is not intended for the W3C Recommendation track, set [noRecTrack](https://respec.org/docs/#noRecTrack) to true
        or turn off the [required-sections](https://respec.org/docs/#required-sections) linter rule.
[INFO] [Timeout: 15548ms] Done.
[FATAL] Error: Errors found during processing.
    at run (/opt/homebrew/lib/node_modules/respec/tools/respec2html.js:247:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Describe any alternatives you've considered
I can get some results from https://validator.w3.org/checklink, but if ReSpec doesn't exit properly, it may fail. Couldn't find a reasonable and up-to-date local alternative.

Oddly, checklink reports no problems.

Can you or your organization fund the work or help with development?
Sadly, no.

There are three options to get your feature implemented. You can:

  1. contribute to the project yourself via a pull request. We will guide you!
  2. fund a contributor to prioritize your feature (usually US$500+ depending on complexity).
  3. wait for someone to get to it (usually a few months).
    Funding pays for the feature development, testing, documentation, server costs, etc. We have an open collective where development costs are tracked and shared. Please see our Open Collective.

I could do a PR, if this was generally thought worthwhile. Maybe I'm missing something.

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