Can i write my own plugins and integrate to sonar??
Sure! Feel free to open new threads with specific development questions.
Can we add our own plug-in to SonarQube?
You can. There are several 3rd party plugins e.g. on Github. You have to copy them to the extensions folder and restart the SonarQube server.
For plugin development the first basics are in the docs