nccgroup / VCG

VisualCodeGrepper - Code security scanning tool.
GNU General Public License v3.0
530 stars 117 forks source link

PR for a potential v2.3.0 version #18

Closed dommyzee closed 1 year ago

dommyzee commented 1 year ago

I've worked on improvements for a 2.3 release. This includes some stability, performance and usability side. A full list of known changes are provided below, as described in the README.md. It has been thoroughly tested in both Console and Windows App versions.

CLI changes

Windows Application changes

Development-relevant changes

Other project changes

Known issues

The CLI isn't locked from user input when using the --console mode.

In short, VCG runs natively as a Windows Application. By its nature, it releases control back to the console when started. VCG is therefore writing to a console session thats already ended.

From a development side, VS 2022 (and earlier) generates scaffold code for Windows Applications, though the Application.Designer.vb class. It gets re-generated on every build, so any direct modifications to it will be wiped out. If the project type is switched to a Console Application, it modifies this auto-generated file to the point it no longer builds at all. Consider also, that if this was possible, the console window will remain open for the duration of the GUI session as well.

Also explored was creating entirely new projects but reflecting a Console build type. Trials included: