Skip to content

Squiz.CSS.DuplicateClassDefinitionSniff sees comments as part of the class name #2638

Closed
@rhorber

Description

@rhorber

This sniff threw false-positives in my code. After #985 was fixed, they disappeared. After the fix of #1657 they rose again.

The difference between my code and the same in #1657 is, that I have the comments before the class name:
/* any comment */ .foo { color: red; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions