Page MenuHomePhabricator

Don't report duplicated issues with different caused-by lines
Closed, ResolvedPublicBUG REPORT

Description

Event Timeline

Change 719309 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/tools/phan/SecurityCheckPlugin@master] [WIP] Duplicated issues

https://gerrit.wikimedia.org/r/719309

Turns out this is non-trivial to do (in a cheap-ish way). I guess we could just leave duplicates for now, so not currently working on this.

Change 719309 merged by jenkins-bot:

[mediawiki/tools/phan/SecurityCheckPlugin@master] Document status quo with duplicated issues

https://gerrit.wikimedia.org/r/719309

For --analyze-twice specifically, things got better thanks to upstream change https://github.com/phan/phan/pull/5495, which changed the first pass of --analyze-twice so that it doesn't actually emit any issues. I'm going to upgrade to phan >= 6.0.3 to get this fix.

I am also going to assume that duplicated issues can't otherwise be reported (without --analyze-twice), and that the upgrade will therefore resolve this.

Change #1267087 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/tools/phan/SecurityCheckPlugin@master] Upgrade phan to ~6.0.5

https://gerrit.wikimedia.org/r/1267087

Change #1267087 merged by jenkins-bot:

[mediawiki/tools/phan/SecurityCheckPlugin@master] Upgrade phan to ~6.0.5

https://gerrit.wikimedia.org/r/1267087