Fronobulax's Jar of Psychoses and Cleanliness

fronobulax

Developer
Staff member
Periodically I get annoyed with files in directories that are no longer used and settings in files that are no longer referenced. I suspect that I am not alone. Does anyone have tools and techniques to share that:

Identify GLOBAL settings that are no longer used?
Identify User settings that are no longer used?
Identify zLib variables that are no longer used?
Identify files in scripts, relay and data that are no longer used?

I seem to recall something that will look at the settings and compare them to KoLmafia's defaults. Any setting that does not have a KoLmafia default either generates a report requesting one or is a candidate for being unused.

Since function calls are used to set and query the first three, grep (or equivalent) across key directories would turn up things that are almost certainly no longer referenced.

A data file that is not managed by KoLmafia or referenced in a script is a candidate for deletion.

A script that doesn't show up on the MRU (if enabled) list or is not included in one that does, is a candidate for deletion.

And so on...

I can do all this manually with shell scripts and basic text processing but if anyone else is similarly obsessed it would save me some work and possibly inspire me to make tools that could be shared and not just a collection of instructions and hacks.

Thanks.

P.S. - I understand that a 100% solution is difficult so I'm interested in automated ways to come close.
 
Back
Top