mdevils/node-jscs — pull request #16 by ikokostya (2013-06-30 20:37:55+00:00)
Title: fix error position for disallow_spaces_inside_object_brackets and disall...

...ow_spaces_inside_array_brackets

Source:

```javascript
var a = [ 'a', 'b' ]
var b = { a: 1, b: 2 }
```

Before:
```
Illegal space after opening curly brace at ./test.js :
0 |var a = [ 'a', 'b' ]
1 |var b = { a: 1, b: 2 }
------------------^
2 |

Illegal space before closing curly brace at ./test.js :
0 |var a = [ 'a', 'b' ]
1 |var b = { a: 1, b: 2 }
---------------------------^
2 |

Illegal space after opening square brace at ./test.js :
0 |var a = [ 'a', 'b' ]
------------------^
1 |var b = { a: 1, b: 2 }
2 |

Illegal space before closing square brace at ./test.js :
0 |var a = [ 'a', 'b' ]
-----------------------^
1 |var b = { a: 1, b: 2 }

```

After:
```
Illegal space after opening curly brace at ./test.js :
0 |var a = [ 'a', 'b' ]
1 |var b = { a: 1, b: 2 }
-----------------^
2 |

Illegal space before closing curly brace at ./test.js :
0 |var a = [ 'a', 'b' ]
1 |var b = { a: 1, b: 2 }
----------------------------^
2 |

Illegal space after opening square brace at ./test.js :
0 |var a = [ 'a', 'b' ]
-----------------^
1 |var b = { a: 1, b: 2 }
2 |

Illegal space before closing square brace at ./test.js :
0 |var a = [ 'a', 'b' ]
--------------------------^
1 |var b = { a: 1, b: 2 }
2 |

```