Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Check succeeds if no configuration file is present #24

Closed
marcindulak opened this issue Feb 17, 2024 · 0 comments · Fixed by #33
Closed

Check succeeds if no configuration file is present #24

marcindulak opened this issue Feb 17, 2024 · 0 comments · Fixed by #33

Comments

@marcindulak
Copy link
Contributor

The example below uses docker #23

  1. build the image of the latest linkspector from source
    git clone https://github.com/UmbrellaDocs/linkspector
    cd linkspector
    docker build --build-arg LINKSPECTOR_PACKAGE= -t umbrelladocs/linkspector .
    
  2. run linkspector check on an empty directory
    mkdir empty
    echo '[linkspector](https://github.com/UmbrellaDocs/linkspector-missing)' > empty/test.md
    docker run --rm -it -v $PWD/empty:/app --name linkspector umbrelladocs/linkspector bash -c 'linkspector check'
    

Output

⠋ Configuration file not found. Using default configuration.
ENOENT: no such file or directory, open '.gitignore'
✨ Success: All hyperlinks in the specified files are valid.

A failure would rather be expected

⠋ Configuration file not found. Using default configuration.
🚫 test.md, https://github.com/UmbrellaDocs/linkspector-missing, 404, 1, null
❌ Error: Some links in the specified files are not valid.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant