All markdown files skipped when I make unrelated changes to skip pattern
See original GitHub issueI’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:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@chalin did you find how to do this?