danielstjules / jsinspect

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

Single line match reported when there is no match #85

Open elmeister opened 5 years ago

elmeister commented 5 years ago

Hi! Thanks for the awesome tool!

The following blocks of code

const query = new Query()
// q (Keyword query)
  .addParam('q', queryToString(params.searchText, '+'))

and

const query = JobQueries.manageableQuery()
  .includeCompany()

Together reported by jsinspect

------------------------------------------------------------
Match - 2 instances

./service1.js:78,78
const query = new Query()

./service2.js:316,316
const query = JobQueries.manageableQuery()
------------------------------------------------------------

Which apparently shouldn't happen.