Skip to content

False positive inspection for "trailing whitespace" #131

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
FeBe95 opened this issue Aug 12, 2024 · 0 comments
Open

False positive inspection for "trailing whitespace" #131

FeBe95 opened this issue Aug 12, 2024 · 0 comments

Comments

@FeBe95
Copy link

FeBe95 commented Aug 12, 2024

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

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

No branches or pull requests

1 participant