periphery icon indicating copy to clipboard operation
periphery copied to clipboard

Add modules key to output of JSON formatter

Open manicmaniac opened this issue 3 years ago • 0 comments

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.

manicmaniac avatar Jul 30 '22 07:07 manicmaniac