MMehta794409 (Community Member) asked a question.

In VSCode IDE, for Greenlight extension, how to ignore for specific file extension

In VScode IDE for Javascript files, we want to ignore all snapshot files (*.snap) extension. How and where do we specify those settings, so that Folder scan ignores those files while performing scan using Greenlight extension for VSCode.


  • Hello @MMehta794409 (Community Member)​ ,

     

    Thank you for reaching out to the Community.

     

    Is it giving you an error with those files in the folder? Those files are not something we support so it wouldn't even be in scope for scan but I'm not sure if you are getting some type of error for it.

     

    Here is the Support Matric link. https://community.veracode.com/s/article/Support-Matrix

     

    Best regards,

    Steven

    Veracode Support Engineer

     

     

    Expand Post
    • MMehta794409 (Community Member)

      Hi Steven,

       

      Thanks for quick response.

       

      Yes, we are getting error, when we try to scan folder containing .snap file.

       

      "error - Veracode Greenlight does not support SNAP files."

       

      What I am asking, is - if there are any config file, where we can specify this type of files to ignore and scan the remaining files.

       

      Mitesh

      Expand Post
      • prafullkotecha (Community Member)

        @Steven D., Veracode Support (Veracode)​ - Any update on Mitesh's question? We also need this functionality in our project. We don't want to go to each file in our project, then right click and select "Scan with Greenlight". Instead we would like to just click on one "src" or even project root folder and trigger the scan.

        It's also very annoying to see "Veracode scan failed" messages when we have "Auto scanning" enabled, but we work on an unsupported file and it is saved.

        Expand Post
  • Hello @prafullkotecha (Community Member)​ ,

     

    Thank you for reaching out to the Community.

     

    Unfortunately, any invalid file (such as *.snap files) will cause the scan to stop with an error message that states it's an unsupported file. Also, while the extension will scan subfolders (so you can scan src and all files in all subdirectories will be uploaded), any invalid files will stop the scan. 

     

    With this issue, I would recommend opening a support ticket. You can open a support ticket within the Community. Simply click on your profile on the top right side of the screen and select "Contact Support". Or click on the link below.

     

    Contact-Support

     

    Kind regards,

    Steven

    Veracode Support Engineer

     

    Expand Post

Topics (2)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.