Reviewers: mp+142572_code.launchpad.net, Message: Please take a look. Description: Use recess as CSS linter This is the first step to implementing a CSS linter (recess). Currently, most of the options are turned off in order to keep this slack task short, so our LESS file passes the linter. Further slack tasks may be created for options that we decide to turn on down the road (personal suggestions: noOverqualifying and zeroUnits, ambivalent about strictPropertyOrder). There is one work-around in place in lib/templates.js due to https://github.com/twitter/recess/issues/22 in that recess is called twice - once to lint and once to compile - in order to side-step an OOM error. This is still quite fast, and not used in production. https://code.launchpad.net/~makyo/juju-gui/recess/+merge/142572 (do not edit description out of merge proposal) Please review this at https://codereview.appspot.com/7067057/ Affected files: M Makefile A [revision details] M lib/templates.js M package.json A recess.json Index: Makefile === modified file 'Makefile' --- Makefile 2012-12-21 12:52:30 +0000 +++ Makefile 2013-01-09 18:36:08 +0000 @@ -38,7 +38,7 @@ node_modules/minimatch node_modules/mocha node_modules/node-markdown \ node_modules/node-minify node_modules/node-spritesheet \ node_modules/rimraf node_modules/should node_modules/yui \ - node_modules/yuidocjs + node_modules/yuidocjs node_modules/recess EXPECTED_NODE_TARGETS=$(shell echo "$(NODE_TARGETS)" | tr ' ' '\n' | sort \ | tr '\n' ' ') @@ -223,7 +223,10 @@ yuidoc-lint: $(JSFILES) bin/lint-yuidoc -lint: gjslint jshint yuidoc-lint +recess: node_modules/recess + recess lib/views/stylesheet.less --config recess.json | grep -q Perfect + +lint: gjslint jshint recess yuidoc-lint virtualenv/bin/gjslint virtualenv/bin/fixjsstyle: virtualenv virtualenv Index: [revision details] === added file '[revision details]' --- [revision details] 2012-01-01 00:00:00 +0000 +++ [revision details] 2012-01-01 00:00:00 +0000 @@ -0,0 +1,2 @@ +Old revision: