seaofvoices / darklua

A command line tool that transforms Lua code
https://darklua.com/
MIT License
78 stars 10 forks source link

Add default value for inject_global_value rule with environment variable #126

Open jeparlefrancais opened 1 year ago

jeparlefrancais commented 1 year ago

When using the inject_global_value rule with an environment variable that is not set, darklua emits a warning. To avoid that warning, there should be a property to set a default value. This property should only be usable when the environment variable is provided, otherwise it's a configuration error.