[Sugar-devel] sugar-web: css lint

Manuel Quiñones manuq at laptop.org
Wed Sep 4 10:18:07 EDT 2013


No luck in html lint.

There is the main validator: http://validator.nu/ .  It helped me to
find a bug in the index.html of sugar-web-template.  I have sent a PR
with the fix.

And there is html5-lint, a Mozilla instance of the main validator:

https://github.com/mozilla/html5-lint

But unfortunatly those don't work with a fragment of HTML, so we can't
use them for templates.

Then there is the W3C online validator, which has an option for HTML
fragments, but not for doctype html5, and throws errors in Mustache
templates:

http://validator.w3.org/#validate_by_input+with_options

2013/9/4 Manuel Quiñones <manuq at laptop.org>:
> I think this is enough for us, and works well with LESS:
>
> https://github.com/twitter/recess
>
> I looked at this one too:
>
> https://github.com/stubbornella/csslint
>
> Seems more complete and more configurable but it will not work with
> LESS files directly.  Although the LESS file can be compiled to CSS
> and then do the lint.  Or use something like:
>
> https://github.com/kevinsawicki/grunt-lesslint
>
> If we go for recess, I sent a PR that makes the lint succeed if run
> with this settings:
>
> recess sugar.less -noIDs false -noOverqualifying false
>
> PR: https://github.com/sugarlabs/sugar-web/pull/79
>
>
> --
> .. manuq ..



-- 
.. manuq ..


More information about the Sugar-devel mailing list