Skip to content

config: Warn if unexpected settings exist #1570

@dgw

Description

@dgw

When loading the config file, Sopel should warn the user if it finds a setting name that isn't defined in the StaticSection for that section. (Obviously, this logic will have to ignore the per-channel config sections added in #1235—or handle those, too, since they also have clearly defined properties.)

Such a warning should not prevent starting the bot or halt/block loading the module to whom the setting belongs; it should be purely informational.

This would very much help users avoid typos after manually editing their config files, and aid in debugging issues like the one @HumorBaby and I just spent literally hours on—which turned out to be the result of a misnamed setting in the .cfg file Sopel was using. (The fact that the incorrect name made more sense than the correct one is a bug for another repo.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions