stevenvachon / broken-link-checker

Find broken links, missing images, etc within your HTML.
MIT License
1.95k stars 302 forks source link

It seems 'exclude' does not work as expected #252

Open abailly-iohk opened 1 year ago

abailly-iohk commented 1 year ago

Describe the bug

I am trying to run the following command:

$ node_modules/.bin/blc "https://hydra.family/head-protocol/" -r --exclude google --exclude github --exclude 'nix' -v

but I still see broken links reported here:

├─BROKEN─ file:///nix/store/bacifcjs171a4z6qm5h24va3gld04p1j-ghc-8.10.7-doc/share/doc/ghc/html/libraries/base-4.14.3.0/GHC-Generics.html#t::-43-: (BLC_INVALID)
├─BROKEN─ file:///nix/store/bacifcjs171a4z6qm5h24va3gld04p1j-ghc-8.10.7-doc/share/doc/ghc/html/libraries/base-4.14.3.0/GHC-Generics.html#t:C1 (BLC_INVALID)
├─BROKEN─ file:///nix/store/bacifcjs171a4z6qm5h24va3gld04p1j-ghc-8.10.7-doc/share/doc/ghc/html/libraries/base-4.14.3.0/GHC-Generics.html#v:MetaCons (BLC_INVALID)
├─BROKEN─ file:///nix/store/bacifcjs171a4z6qm5h24va3gld04p1j-ghc-8.10.7-doc/share/doc/ghc/html/libraries/base-4.14.3.0/GHC-Generics.html#v:PrefixI (BLC_INVALID)
├─BROKEN─ file:///nix/store/bacifcjs171a4z6qm5h24va3gld04p1j-ghc-8.10.7-doc/share/doc/ghc/html/libraries/Cabal-3.2.1.0/Distribution-Compat-Prelude-Internal.html#v:True (BLC_INV

To Reproduce

Just run the above command, the web site is public.

Expected behavior

I would think the file://nix/... links would not be checked.

Environment:

$ uname -a
Linux haskell-dev-vm-1 5.15.0-1017-gcp #23-Ubuntu SMP Tue Aug 16 00:41:49 UTC 2022 x86_64 GNU/Linux
$ node --version
v16.13.2
$ node_modules/.bin/blc --version
0.7.8