clutchski / coffeelint

Lint your CoffeeScript.
http://www.coffeelint.org
Other
1.17k stars 172 forks source link

Coffeelint hangs on file with import/export and backslash line continuation #615

Closed bzalasky closed 6 years ago

bzalasky commented 7 years ago

Take a module like this:

import MyClassA from 'my-class-a'
import MyClassB from 'my-class-b'
import MyClassC from 'my-class-c'
import MyClassD from 'my-class-d'

export default class AnotherClass extends MyClassA MyClassB \
        MyClassC MyClassD
    myMethod: -> ...

Running coffeelint another-class.coffee will hang, and eat up almost all my laptop's CPU and memory. If I switch back to AMD or CommonJS, line continuation doesn't cause any issues. If I remove the line continuation, the ES module will be linted as expected.

eugenet8k commented 7 years ago

I guess there is a massive activity going on with CS2. I wonder if you should try coffeelint utility from branch cs2 which is a pull request https://github.com/clutchski/coffeelint/pull/596.

swang commented 6 years ago

Fixed in #617, released in v2.0.3

bzalasky commented 6 years ago

Awesome, thanks @swang!