This is not supported – even for our own analysis engine. Pull Requests only report issues on changed files / lines.
Can you provide some more context about the kind of rules you’re developing that would raise issues on old code, that you believe should be raised on pull requests?
We have issues generated from other static analysis tool same we want to create in SQ using custom plugin, here we had that requirement.
We had one more query if you could clarify.
If we add a new rule in Quality profile after master scan, will pull request with no file change show issue for newly added rule in Quality profile or it will only report for new rule of QP in changed code but not in old code.