question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All markdown files skipped when I make unrelated changes to skip pattern

See original GitHub issue

I’m running under macOS, with these versions:

$ nvm current
v16.13.0
$ npm --version
8.4.0
$ npm ls linkinator                                                                 
opentelemetry-specification@ /Users/chalin/git/lf/open-telemetry/opentelemetry-specification
└── linkinator@3.0.3

I’m using linkinator to check markdown files in a repo, something like this:

$ npx linkinator '**/*.md' --markdown --skip '^https|node_modules' --verbosity error
🏊‍♂️ crawling **/*.md
[0] http://localhost:9411/api/v2/spans%22
specification/sdk-environment-variables.md
  [0] http://localhost:9411/api/v2/spans%22
ERROR: Detected 1 broken links. Scanned 137 links in 6.076 seconds.

That works great.

Now, I’d like to skip all links starting with either http or https so I add ? to the skip regex:

$ npx linkinator '**/*.md' --markdown --skip '^https?|node_modules' --verbosity error
🏊‍♂️ crawling **/*.md
🤖 Successfully scanned 0 links in 0.186 seconds.

If I use verbosity info I see that it is now skipping all files. Why? Is there something I’m missing?

It’ll skip all files even when I try with these regexs:

  • http|https|node_modules
  • http|https
  • https?

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chalincommented, Oct 13, 2022

Hi @danieleds. This is value I ended up using for the skip parameter:

  • ^http://localhost:9411|/node_modules/|^https://github\\.com/some-org/some-project/(issues|pull)

I hope that this helps.

0reactions
danieledscommented, Oct 4, 2022

Specifically, I’m trying to skip all

* external links

* explicit links to `http://localhost`

@chalin did you find how to do this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Skipped files are shown as warnings · Issue #2391 - GitHub
Expected behavior. As markdown file was not processed, which was due to special characters in the folder name ('&').
Read more >
How to skip GitHub Actions job on push event? - Stack Overflow
I find this feature practical when I only edit README.md which is not code-related and the pre-flight build doesn't need to be triggered....
Read more >
lint-staged - npm
--diff : By default linters are filtered against all files staged in git, generated from git diff --staged . This option allows you...
Read more >
Upgrade Best Practices - Reverting Skipped Files - ServiceNow
We are currently reviewing skipped files in our lowest instance "Dev" and are wondering about the best practice way to handle "Reverting to...
Read more >
Define YAML resources for Azure Pipelines - Microsoft Learn
When a resource triggers a pipeline, the following variables get set: ... of [minimatch paths](tasks/file-matching-patterns.md) to download; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found