adelf / idea-php-dotenv-plugin

environment parameters completion, based on .env file keys
MIT License
166 stars 13 forks source link

False positive inspection for "trailing whitespace" #131

Open FeBe95 opened 2 months ago

FeBe95 commented 2 months ago

Steps to Reproduce

  1. Create a file named .env
  2. Add FOO=bar # test to the file's contents
  3. Look at the inspections (e.g. in the "Problems" tab)

Expected Result

No problems are being reported, since this syntax is completely valid.

Actual Result

Squiggly line is added and "Line has trailing whitespace" is being reported.

Sources

Here are some references which should support my claim that:

this syntax is completely valid

Example Code

# This is a comment
SECRET_KEY=YOURSECRETKEYGOESHERE # comment
SECRET_HASH="something-with-a-#-hash"

Screenshot

grafik