roarengine/roarjs — Issue #20: jshint complains about commas on build
Author: mikeando
Created: 2012-03-08 02:28:07+00:00
State: open

JSHint complains like this:

JSHint static code analysis...]
src/roarengine.js: line 118, col 9, Comma warnings can be turned off with 'laxcomma'
src/roarengine.js: line 117, col 14, Bad line breaking before ','.
src/roarengine.js: line 118, col 39, Bad line breaking before ','.
src/roarengine.js: line 119, col 18, Bad line breaking before ','.
src/roarengine.js: line 120, col 22, Bad line breaking before ','.
src/roarengine.js: line 121, col 22, Bad line breaking before ','.
src/roarengine.js: line 122, col 18, Bad line breaking before ','.
src/roarengine.js: line 123, col 18, Bad line breaking before ','.

About code that looks like this:

RoarAPICore.History.log[id] = {
id:id
, started: new Date().getTime()
, ended: null
, totaltime: null
, controller:controller
, action:action
, result:null
, result_code:-1
}

This should be fixed by changing the jshint config.