Skip to content
New issue

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

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

Already on GitHub? Sign in 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant