Add support for removing obsolete config options from the file #107
Labels
No labels
bug
chat
commands
components
config/data
dependencies
duplicate
enhancement
error handling
help wanted
invalid
needs testing
plugin updater
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ChromaGaming/ChromaCore#107
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Setting a config option's value to null could be used to remove that value, however, the value will be set to the default the next time the plugin is enabled. Removing nullability even for setting the value helps with unexpected behaviors.
The only use I can think of right now for removing a config option is to remove obsolete ones. Since the config is automatically generated, there's no use in removing one that matches the default or something.
Here's another idea: Maybe all unused paths should be removed from the config. But then we'd need to know each option that is used by the plugin.