-
Notifications
You must be signed in to change notification settings - Fork 6
Preview/dot env #41
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
Preview/dot env #41
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
DATABASE_URL postgres://user:pass@localhost:5432/dbname | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing Most dotenv loaders treat a line without the -DATABASE_URL postgres://user:pass@localhost:5432/dbname +DATABASE_URL=postgres://user:pass@localhost:5432/dbname 📝 Committable suggestion
Suggested change
DATABASE_URLpostgres://user:pass@localhost:5432/dbname
DATABASE_URL=postgres://user:pass@localhost:5432/dbname
🤖 Prompt for AI Agents
|
||
API_KEY = someapikey | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Strip spaces around Leading/trailing spaces are considered part of the value in many parsers, resulting in -API_KEY = someapikey +API_KEY=someapikey 📝 Committable suggestion
Suggested change
API_KEY=someapikey
# .env (line 2)
-API_KEY = someapikey
+API_KEY=someapikey
🤖 Prompt for AI Agents
|
||
SECRET_KEY = this is a bad secret | ||
123TOKEN=abcdefg | ||
API-KEY=invalidformat | ||
Comment on lines
+4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid identifier names ( Variable names must start with a letter or underscore and contain only -123TOKEN=abcdefg -API-KEY=invalidformat +TOKEN_123=abcdefg +API_KEY_ALT=invalidformat 📝 Committable suggestion
Suggested change
123TOKEN=abcdefg
API-KEY=invalidformat
# Updated valid environment variable names
TOKEN_123=abcdefg
API_KEY_ALT=invalidformat
🤖 Prompt for AI Agents
|
||
PASSWORD="my"pass"word" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unescaped quotes break the Inner quotes terminate the string early. Either escape them or switch to single-quotes: -PASSWORD="my"pass"word" +PASSWORD="my\"pass\"word" # or +PASSWORD='my"pass"word'
🤖 Prompt for AI Agents
|
||
REDIS_URL=redis://localhost:6379 # trailing comment | ||
BROKEN_VAR= | ||
DUPLICATE_KEY=value1 | ||
DUPLICATE_KEY=value2 | ||
UNICODE_TEST=✓🚫💥 | ||
MULTILINE_VAR=This is a | ||
bad idea | ||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Multiline value not supported A bare newline terminates the previous line, producing an unintended -MULTILINE_VAR=This is a -bad idea +MULTILINE_VAR="This is a\nbad idea" 📝 Committable suggestion
Suggested change
MULTILINE_VAR=This is a
bad idea
-MULTILINE_VAR=This is a
-bad idea
+MULTILINE_VAR="This is a\nbad idea"
🤖 Prompt for AI Agents
|
||
HOST_URL=${UNDEFINED_HOST}/path | ||
FEATURE_ENABLED=yes | ||
DEBUG_MODE=on | ||
SPACED_VAR=value | ||
MISSING_EQUALS_SIGN somevalue | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The entire line becomes the key with an empty value, causing loader errors. -MISSING_EQUALS_SIGN somevalue +MISSING_EQUALS_SIGN=somevalue 📝 Committable suggestion
Suggested change
MISSING_EQUALS_SIGN somevalue
-MISSING_EQUALS_SIGN somevalue
+MISSING_EQUALS_SIGN=somevalue
🤖 Prompt for AI Agents
|
||
BAD_QUOTES='unfinished | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unterminated single-quoted string The opening quote never closes, causing the remainder of the file to be read as part of the value. -BAD_QUOTES='unfinished +BAD_QUOTES='unfinished but now finished' 📝 Committable suggestion
Suggested change
BAD_QUOTES='unfinished
# File: .env (around line 19)
-BAD_QUOTES='unfinished
+BAD_QUOTES='unfinished but now finished'
🤖 Prompt for AI Agents
|
||
INVALID_UTF8=\x80\x81\x82 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Invalid byte escapes render
-INVALID_UTF8=\x80\x81\x82 +INVALID_UTF8=4KKAMBCC 📝 Committable suggestion
Suggested change
INVALID_UTF8=\x80\x81\x82
INVALID_UTF8=4KKAMBCC
🤖 Prompt for AI Agents
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PORT=3000 | ||
PORT=8000 | ||
DB_URL postgres://localhost | ||
SECRET_KEY=12345 | ||
UNQUOTED VALUE |