Hello @mineshrathod-gep,
SonarCloud is a cloud service, so it is not possible to inject custom rules for your own use.
However using SonarQube you can consider writing a custom plugin with custom rules. You can have a look to our extension guide in order to figure out how to proceed. Note that there are also community plugins, maybe other user have the same need than you have.
I hope this helps.
Antoine