zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.

Home Page:http://zmoazeni.github.io/csscss/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Rulesets with exact same Selector

aunueget opened this issue · comments

@zmoazeni Thanks for the great tool
Is there anything that does this? If not I would be interested contributing this.

Example css file:

.pizza{
    font-size: 16px;
    color: #ff0000;
    display: none;
}

.pizza {
    overflow: auto;
    padding: 1em;
}

If i run csscss on the above file i would like to get something like:

2 rule sets with same selector ".pizza"  at Lines: 1 , 7

Sounds a bit like #93 - I'd welcome a PR!

I'm also curious about the line mapping too. That'd be pretty nice.