danielstjules / jsinspect

Detect copy-pasted and structurally similar code
MIT License
3.57k stars 128 forks source link

Support jsx files #16

Closed jbrumwell closed 9 years ago

jbrumwell commented 9 years ago

Dependent on https://github.com/danielstjules/node-filepaths/pull/1 being merged and published to npm

Support jsx file extensions, leaves open for other extensions as well.

danielstjules commented 9 years ago

It's not clear to me that acorn supports jsx?

jbrumwell commented 9 years ago

I ran it on a code base and it processes the files, without error. It wouldn't catch any jsx related duplications, without adding https://github.com/RReverser/acorn-jsx.

danielstjules commented 9 years ago

JSX duplications might be out of scope, but I haven't given it much though yet.

Thanks again for the PR! :)