Const
Reports each code clone pair once, located at its first fragment, with the other fragment in the result. It is best-effort and off by default, as it indexes the whole project. A pair is reported once per algorithm that finds it.
Readonly
const lint = await executeLintingRule('code-clones', analyzer, { algorithms: [CloneAlgorithm.Baxter], baxter: { similarityThreshold: 0.8 } });if('results' in lint) { lint.results.map(r => `${SourceLocation.format(r.loc)} ~ ${SourceLocation.format(r.clone.loc)}`);} Copy
const lint = await executeLintingRule('code-clones', analyzer, { algorithms: [CloneAlgorithm.Baxter], baxter: { similarityThreshold: 0.8 } });if('results' in lint) { lint.results.map(r => `${SourceLocation.format(r.loc)} ~ ${SourceLocation.format(r.clone.loc)}`);}
Reports each code clone pair once, located at its first fragment, with the other fragment in the result. It is best-effort and off by default, as it indexes the whole project. A pair is reported once per algorithm that finds it.