Create a rule for find string

I’m totally newbie in sonarqube.

I’ve read the documentation for creating custom rules, but I’m having trouble understanding.

My wish is to create a rule that I can search for a specific word, for example “credit card”

Can someone give me a way?

Thank you!

Sonar 6.7.5

I solved my problem using ready-made rule templates. I finally understood.

1 Like

I’ve looked at this too, but don’t yet understand. Do you have any documents that show how you did it? Also is there a way to look in all languages? (Basically the sonarqube version of **grep “credit card” ***)

Specifically looking for php on version 7.0