Skip to content

Misplaced highlights when tabs are used instead of spaces #54

@rusproject

Description

@rusproject

Hello!
I don't know if it is a SublimeLinter-phpcs or SublimeLinter or even PHP_Code_Sniffer problem, so If I opened the issue in a wrong place, please point me where I should do it.

The problem is:
When CodeSniffer highlight errors on lines that is indented with tabs, not spaces, even if the tabs are allowed by rules, we get misplaced highlights.

Here's what I mean:

image

Expected look (tabs are converted to spaces):

image

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