Skip to content

False positive inspection for "trailing whitespace" #131

@FeBe95

Description

@FeBe95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions