Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCG not analysing files with extension ".sql" #6

Open
akkinitsch opened this issue Jun 29, 2016 · 2 comments
Open

VCG not analysing files with extension ".sql" #6

akkinitsch opened this issue Jun 29, 2016 · 2 comments

Comments

@akkinitsch
Copy link

Hi everybody,

i'm trying to automate the analysis of SQL-script-files via command line (and later on Jenkins) and VCG is not picking these files up.
For test-reasons i duplicated one of my files and changed the extension from "sql" to "pls" and VCG analysed it correctly, the same file with extension "sql" was ignored,
although "sql" is mentioned as default extension for PL/SQL analysis in readme file.

I ran the following command:

 VisualCodeGrepper.exe --console --language PL/SQL --export C:\somepath\vcg_result_sql.xml --target C:\somecodepath

BTW: ".sql" is not listed as default file extension in the GUI of VCG either.

Thanks for your help

Best regards

Akki

@maddin200
Copy link

Proposed change:
Public PLSQLSuffixes As String = ".pls|.pkb|.pks|.sql"
AppSettings.vb

@abhi06991
Copy link

When I build the application using visual studio 2022 with the above proposed code change, and run it in console mode, I immediately get a prompt and this gets printed-

PS C:\Users\xxx\Downloads\VCG-master\VCG-master\VisualCodeGrepper\bin\Release>
[+] ==============================================
[+] ==            Visual Code Grepper           ==
[+] ==              CONSOLE MODE                ==
[+] ==============================================
[+]
[+] ##############################################
[+] Please let VCG finish before using the console
[+] ##############################################

[+] Running scans...
[+]
[+] Finished scanning...
[+] Closing VCG.
[+] ##############################################
[+]    Press <Enter> to get your prompt back
[+] ##############################################

P.S - In the GUI mode, the sql is detected after the code change, but the scan doesn't happen in the console mode.

Any help regarding this will be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants