wjdp / htmltest

:white_check_mark: Test generated HTML for problems
MIT License
323 stars 54 forks source link

Add option: `IgnoreExternalBrokenLinks` #140

Closed abhishalya closed 4 years ago

abhishalya commented 4 years ago

Do let me know if it is useful, we particularly required this while checking links for julialang.org site which has a large number of links.

I'll add tests and docs soon, if this idea looks good enough.

Closes https://github.com/wjdp/htmltest/issues/139

cc @wjdp

codecov[bot] commented 4 years ago

Codecov Report

Merging #140 into master will increase coverage by 0.53%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #140      +/-   ##
==========================================
+ Coverage   82.74%   83.27%   +0.53%     
==========================================
  Files          20       20              
  Lines        1153     1160       +7     
==========================================
+ Hits          954      966      +12     
+ Misses        179      174       -5     
  Partials       20       20
Impacted Files Coverage Δ
htmltest/check-link.go 97.75% <100%> (+0.02%) :arrow_up:
htmltest/check-generic.go 82.5% <100%> (+1.41%) :arrow_up:
htmltest/options.go 90.41% <100%> (+0.13%) :arrow_up:
htmltest/util.go 55.55% <0%> (+13.88%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 57fe7e6...3ff9286. Read the comment docs.

wjdp commented 4 years ago

@abhishalya Saw your issue this morning. We've this exact problem on a site I help maintain, :+1: on the feature from me!

wjdp commented 4 years ago

I can see this is marked as WIP but thought I'd mention:

abhishalya commented 4 years ago

@wjdp I agree. How about IgnoreExternalBrokenLinks?

abhishalya commented 4 years ago

@wjdp I've added the tests, can you have a look again :)

abhishalya commented 4 years ago

@wjdp Any update on this one?

wjdp commented 4 years ago

Sorry about delay on this!

abhishalya commented 4 years ago

No problem, thanks for the merge :)