zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.
http://zmoazeni.github.io/csscss/
MIT License
2.92k stars 151 forks source link

added reporting exact selector matches with a test #95

Open aunueget opened 8 years ago

aunueget commented 8 years ago

@zmoazeni @icijavon @carsonmcdonald @prsimp @laserlemon @viveksachdeva resolve #94 resolve #93 This could use some code review. First time with ruby, thanks to @icijavon. Tried to match the style you had in the files. I'm easy about changes so feel free to kill this in Code Review and I'll fix it up.

I could use some help finding out how to identify selectors that are nested(ex. @media) to have a accurate report. Is any variable set to identify what nested area a selector is in?

Test instructions 1)gem install bundle 2)pull branch 3)Install dependencies: bundle install 4) Run tests: bundle exec rake test 5) to test your own css file run: bundle exec csscss my_css_file

aunueget commented 8 years ago

I'll be squashing this once we are happy with it if we reach that point.

aunueget commented 8 years ago

@zmoazeni Havent heard anything from you. You got any thoughts on this?

zmoazeni commented 8 years ago

@aunueget Things have been pretty busy on my side. I'll try and carve out some time in the near future.

aunueget commented 8 years ago

Did this ever make it in?