How to add custom rules for Golang?

I want to add some rules for golang. Can I add these rules to golang via developing the plugin in java.


Welcome to the community!

Sorry, but custom rules aren’t supported for Go within SonarQube. What you could do is write a checker that runs before SonarQube and outputs a report in the Generic Issues format, then import that report as part of analysis.


Thank you for your response. It is very helpful.