clutchski/coffeelint — pull request #36 by eriwen (2012-07-06 18:06:53+00:00)
Title: Fix JSLintReporter handling of cyclomatic complexity errors

Currently, the new JSLintReporter introduced in clutchski/coffeelint#24 errors when a cyclomatic complexity check fails liks so:

```plain

/usr/local/lib/node_modules/coffeelint/bin/coffeelint:275
msg = msg.replace(r[0], r[1]);
^
TypeError: Object 50 has no method 'replace'
at JSLintReporter.escape (/usr/local/lib/node_modules/coffeelint/bin/coffeelint:275:19)
at JSLintReporter.publish (/usr/local/lib/node_modules/coffeelint/bin/coffeelint:259:178)
at reportAndExit (/usr/local/lib/node_modules/coffeelint/bin/coffeelint:312:14)
at Object. (/usr/local/lib/node_modules/coffeelint/bin/coffeelint:347:7)
at Object. (/usr/local/lib/node_modules/coffeelint/bin/coffeelint:351:4)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:487:10)
```

This change forces the message is `escape` to always be a String so that `String::replace` is available and adds a test that fails without the change.