API to push notification into Sonar console

Hello,

Is there an API or method to push custom analysis results from a local script into the SonarQube console after scanning? I have a Java script that performs specific checks unique to my repository and organization. How can I integrate the violations detected by this script into SonarQube so they appear in the console alongside standard analysis results?

Also would there be different approaches for different versions.(Current version: LTS 9.9)

Thanks.

Not after scanning, but during analysis you can include issues from external analyzer reports, including generic issue reports that can be generated by many tools who have implemented the format, or your own custom tool.