filiph / linkcheck

Fast link checker
https://pub.dartlang.org/packages/linkcheck
MIT License
403 stars 51 forks source link

Introduce flag to turn off reporting of missing anchors #56

Closed emielbeinema closed 4 years ago

emielbeinema commented 4 years ago

On some websites, fragment identifiers are used for dynamic content or otherwise handled by client-side code. On these sites, the absence of an anchor tag with the fragment id is not necessarily an error.

Currently, linkcheck always reports these cases as warnings. This PR introduces a --[no-]check-anchors flag to turn off reporting of missing anchors. By default it enables the reporting, but it offers users the option to turn these warnings off.

filiph commented 4 years ago

This looks great! Thank you!

emielbeinema commented 4 years ago

Thanks for merging!