Skip to content

improve config handling #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

improve config handling #110

wants to merge 4 commits into from

Conversation

sabban
Copy link
Contributor

@sabban sabban commented Apr 15, 2025

sabban added 4 commits April 15, 2025 12:03
+ Refactored ~split~ function to use ~local~ for variable declaration.
+ Enhanced ~has_value~ function by removing unused variable ~index~.
+ Moved ~valid_params~, ~valid_int_params~, ~valid_bouncing_on_type_values~, and ~valid_truefalse_values~ to a higher scope for better reusability.
+ Improved ~EXCLUDE_LOCATION~ handling
…default values

Added support for loading local configuration overrides in ~csmod.init~. Enhanced ~config.loadConfig~ to optionally load default values for missing parameters. Refactored and cleaned up redundant code in ~config.lua~.
Ensure that the main configuration file is loaded with strict validation and the local configuration file is loaded without strict validation.
Copy link
Contributor

@buixor buixor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc PR plz <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants