gretard / sonar-ps-plugin

Powershell language plugin for SonarQube
GNU Lesser General Public License v3.0
36 stars 7 forks source link

Fix ScriptAnalyzer process hanging on too much output #10

Closed moerketh closed 5 years ago

moerketh commented 5 years ago

Please consider this change to the ScriptAnalyzerSensor. This change makes sure the process is read in a loop so that the process does not hang when there is more output then the buffer on the running environment can handle.

Changed the ScriptAnalyzerSensor to call the read operation of the BaseSensor before waiting for the process to finish.

This fixes bug #9

The TokenizerSensor might need a similar fix, but it's process is less verbose and not causing a issue on my repositories.