You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title: Standardize boolean values and fix pattern for .env file
Describe the bug
The .env file contains some inconsistencies in how boolean values and specific strings are represented. For instance, the variable POST_IMMEDIATELY uses the string "NO", while a boolean value like TWITTER_SEARCH_ENABLE uses false. This inconsistency could lead to parsing issues and is prone to human error.
To Reproduce
Open the .env file. 2. Observe that POST_IMMEDIATELY=NO is used instead of the expected false.
Expected behavior
Boolean variables should consistently use true or false, and all string-based boolean values such as POST_IMMEDIATELY should use true/false instead of "YES"/"NO".
Additional context
This change will standardize boolean values, making the .env file easier to parse and reducing the risk of errors. The parseBooleanFromText function, declared as const parseBooleanFromText: (text: string) => boolean;, can be used outside the .env context to ensure boolean parsing is consistent across the codebase.
Guidelines for .env values
Boolean values: Always use true or false (not "YES" or "NO").
Example: TWITTER_SEARCH_ENABLE=true POST_IMMEDIATELY=false
Adhering to these guidelines will ensure consistency and make it easier for automated scripts to process the .env file while reduce human error.
The text was updated successfully, but these errors were encountered:
Title: Standardize boolean values and fix pattern for .env file
Describe the bug
The
.env
file contains some inconsistencies in how boolean values and specific strings are represented. For instance, the variablePOST_IMMEDIATELY
uses the string "NO", while a boolean value likeTWITTER_SEARCH_ENABLE
usesfalse
. This inconsistency could lead to parsing issues and is prone to human error.To Reproduce
.env
file. 2. Observe thatPOST_IMMEDIATELY=NO
is used instead of the expectedfalse
.Expected behavior
Boolean variables should consistently use
true
orfalse
, and all string-based boolean values such asPOST_IMMEDIATELY
should usetrue
/false
instead of"YES"
/"NO"
.Additional context
This change will standardize boolean values, making the
.env
file easier to parse and reducing the risk of errors. TheparseBooleanFromText
function, declared asconst parseBooleanFromText: (text: string) => boolean;
, can be used outside the.env
context to ensure boolean parsing is consistent across the codebase.Guidelines for .env values
true
orfalse
(not"YES"
or"NO"
).Example:
TWITTER_SEARCH_ENABLE=true POST_IMMEDIATELY=false
Adhering to these guidelines will ensure consistency and make it easier for automated scripts to process the
.env
file while reduce human error.The text was updated successfully, but these errors were encountered: