Create Custom plugin which can be deployed to sonarQube server

Hello @sumit_ghorpade,

I recommend you to go over the CUSTOM_RULES_101 guidelines, where you should get everything you need to write, test and add a custom rule to the Sonar Java Plugin. You can also find examples here.

You are asking for help in writing your custom rule logic, unfortunately, this is something that you need to figure out yourself. It can help you to look at how we implement our rules, you can find them here. Have a look at this to understand how to get type information from the semantic.

Wish you the best of luck in implementing your rule.

Cheers,
Angelo

1 Like