There are several linters to detect duplicate code in files (ex: CPD, JSCPD)
But they are based on the number of tokens, and on text, not string (recognizable by being delimited by quotes or double quotes)
I'm looking for a linter that would detect duplicate strings in multiple files, for example
file1.js:
// some dummy code
var x = "my duplicate string"
var h = "ddddddd"
file2.js:
var y = "my duplicate string"
And the result would be
- "my duplicate string" found in:
- file1.js: line 2
- file2.js: line 1