Restrict Perforce checkin based on Sonarqube report

We are trying to restrict Perforce merge based on Sonarqube report, the idea here is that once developer tries to chekcin his or her CL to Perforce he should get a popup of message that Sonarqube is reporting certain percentage (say 50% or more ) of issues for your so you cannot merge your code for now.

Is there anything in Sonarqube or SonarLint through which we can achieve this requirement.

It will be great help if someone give idea on this?