periphery
periphery copied to clipboard
Add modules key to output of JSON formatter
Problem
When Periphery finds a redundant public accessibility, it warns like Class '<name>' is declared public, but not used outside of <module>.
If Periphery receives --format json option, the output contains <name> but no information about <module> is found.
This is a bit inconvenient for those who want to parse Periphery's output by machine and reconstruct custom messages.
Solution
So I added new modules key to JSON.