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.

Scanner exclude: Negate specific paths?

See original GitHub issue

Having excluded **/node_modules (as per the defaults) I’d like to include an npm package that is to provide Sass variables that I’d like IntelliSense to be aware of. I’ve tried the following in user settings but it doesn’t seem to work:

  "scss.scannerExclude": [
    "**/.git",
    "**/node_modules",
    "**/bower_components",
    "!**/node_modules/package-to-include"
  ]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:7

github_iconTop GitHub Comments

1reaction
visualjerkcommented, Feb 18, 2020

Have node_modules excluded globally didn’t work for me either. However this did:

  "scss.scannerExclude": [
    "**/.git",
    "**/node_modules/!(package-to-include)",
    "**/bower_components"
  ],
0reactions
SharakPLcommented, Feb 19, 2020

@octref maybe it works on mac, but doesn’t seem to work on windows

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there an easy way to exclude paths from being scanned?
You can exclude paths from being scanned by configuring the path as an Excluded Path for the Target. This can be done from...
Read more >
Exclude everything from the sonar scan except one of its ...
Hi I want to exclude sonar scans everything except a sub directory in Js how can I achieve this. I tried the following...
Read more >
Narrowing the focus with analysis scope
This setting lets you exclude specific files or directories from duplication checking. The value is a comma-delimited list of path-matching patterns relative to ......
Read more >
Exclude dirs from SAST, Dependency Scanning analysis
Introduce new variables SAST_EXCLUDED_PATHS and DS_EXCLUDED_PATHS to set a list of excluded paths in SAST and Dependency Scanning, ...
Read more >
Excluding files from scanning - TechDocs - Broadcom Inc.
You can use the command-line scanner to exclude files in the following ways: Exclude the files that exceed a limit from being scanned....
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