Closed DarthHater closed 4 years ago
@bhamail that is still a mystery to me (most of the Version2
stuff was copied and pasted in and I just rearranged rather than tackle if it's needed). Tests will be up next-ish so I can figure out what we need it for!
Hello!
This PR is to spruce up the output of an OSS Index audit (for Composer at the moment):
This adds some tables, and makes the output a bit cleaner to read. Also defaults to a "quiet" behavior, only showing vulnerable packages.
Also breaks out
Audit
type functionality into aapp/Audit
spot (PHP prefers you do folders based on features for structure), the start of an interface forAudit
so that we can implementjson
, etc... as time goes, and also to you know, make things easier to unit test.Also breaks out
OSSIndex
into it's own class, so we can implement caching, etc... in a tinier place.Also breaks out the parsing of the
Composer
lockfile, etc... into it's own class, and interface, so that theapp/Commands/Composer.php
file is now more or less just control flow