fedora-static-analysis / firehose

Interchange format for results for static analysis tools
63 stars 18 forks source link

Fixed parse_scandir loop malfunction. #16

Closed LeoCavaille closed 11 years ago

LeoCavaille commented 11 years ago

Hi, Just noticed this thing when trying to run clanganalyzer.py against a directory produced by scan-build.

parse_scandir is only dispatching work to parse_plist by looping on the given directory.

The code must be a remainder of a previous Class implementation, because it was trying to iterate on an Analysis object (result of parse_plist) that is non-iterable.

Instead, yield the Analysis per plist report until they are processed.

davidmalcolm commented 11 years ago

Thanks!