wjdp / htmltest

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

Add IgnoreEmptyHref option #125

Closed martinbaillie closed 5 years ago

martinbaillie commented 5 years ago

Thanks for the useful project! I have started trying to use it with Hugo. However, my site uses Hugo templates and being unable to disable the empty href check makes it a non-starter.

Please review this simple PR for adding an option for that.

codecov[bot] commented 5 years ago

Codecov Report

Merging #125 into master will increase coverage by 0.02%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #125      +/-   ##
==========================================
+ Coverage   86.56%   86.58%   +0.02%     
==========================================
  Files          20       20              
  Lines        1064     1066       +2     
==========================================
+ Hits          921      923       +2     
  Misses        136      136              
  Partials        7        7
Impacted Files Coverage Δ
htmltest/options.go 90.27% <100%> (+0.13%) :arrow_up:
htmltest/check-link.go 97.58% <100%> (ø) :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 f8a0ead...083b3bb. Read the comment docs.