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.

Nested file scan help

See original GitHub issue

I am wonder if this is a feature or a bug.

I want to do spelling recursively in my project. But it doesn’t seem like cspell is looking through the files recursively throughout the nested folders.

In the end I had to set up something like this:

My npm script:

"spell": "cspell **/*.ts |  cspell src/**/*.ts | cspell src/app/**/*.ts | cspell src/app/**/**/*.ts | cspell src/app/**/**/**/*.ts | cspell src/app/**/**/**/**/*.ts | cspell src/app/**/**/**/**/**/*.ts"

When I run

npm run spell

I get:


> cspell **/*.ts |  cspell src/**/*.ts | cspell src/app/**/*.ts | cspell src/app/**/**/*.ts | cspell src/app/**/**/**/*.ts | cspell src/app/**/**/**/**/*.ts | cspell src/app/**/**/**/**/**/*.ts

CSpell: Files checked: 4, Issues found: 0 in 0 files
CSpell: Files checked: 9, Issues found: 0 in 0 files
CSpell: Files checked: 22, Issues found: 40 in 2 files
CSpell: Files checked: 62, Issues found: 1 in 1 files
CSpell: Files checked: 88, Issues found: 0 in 0 files
CSpell: Files checked: 165, Issues found: 1 in 1 files
/Users/me/repositories/repo/project/src/app/my-component/my.component.ts:7:43 - Unknown word (dont)

Is there a simpler and more reliable way to scan through all my files in my project?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mathewsmachadocommented, May 16, 2021

Hey, @dereklin, I don’t know if is too late to help you, but I had this same problem for a moment. After a time, I figured out how to solve it.

I created a “.cspell.json” file, and inside the config object I placed a “files” property with the value being “**/*”. It will scan all your files, and if you want to ignore some of them, you can specify it inside “ignorePaths” property.

This is how my file looked:

{
  "language": "en",
  "minWordLength": 2,
  "files": ["**/*"],
  "ignorePaths": [
    "*.lock",
    "*.json",
    "dist"
  ]
}
0reactions
github-actions[bot]commented, Aug 14, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

scanning files into nested structures - Stack Overflow
First of all, when scanf (and family) reads a string it reads a space delimited string, so if the string you want to...
Read more >
Setting limits on nested files - TechDocs - Broadcom Inc.
Maximum container scan depth. The nested depth in a container file (such as a .zip file or email message) exceeds the number specified....
Read more >
[KB228] Scanning nested archives with ESET Smart Security ...
Advanced archive scanning uncovers hidden malware, even in deeply nested compressed files. Easy-to-use settings allow you to control maximum depth and file ......
Read more >
Does Trend Micro Antivirus+ detect malware in nested archives?
I have to admit that I played only with EICAR test files, but I'. ... the malware in a nested zip file by...
Read more >
Nested folder recursion, (Not scanning a library) - Emby
IF I add each folder (#, A-Z) it happily scans everything under that ... -i file:"/media/Videos/Movies/A/The Aviator (1985)/The Aviator ...
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