multiscanner icon indicating copy to clipboard operation
multiscanner copied to clipboard

Module name convention

Open clenk opened this issue 8 years ago • 2 comments

Some modules have a NAME value that starts with an uppercase character, and others start with lowercase. This makes the output of parse_reports a little odd, as uppercase comes before lowercase in the sorting of module names. (e.g. "Yara" comes before "libmagic") Could we make the NAMEs of the modules use consistent casing?

clenk avatar Oct 23 '17 14:10 clenk

I agree, I think it was to originally follow the capitalization of the projects. We could also look into sorting without the caps.

Drewsif avatar Oct 31 '17 20:10 Drewsif

json only lets you set sorting to be True or False. We could use OrderedDicts, or use the simplejson library, which lets you pass in an item_sort_key to control how they get sorted. For instance, lambda s: s.lower().

clenk avatar Oct 31 '17 20:10 clenk