Search Key based on properties file name

  • versions used (SonarQube 7.7, Scanner 3.3.0.149)

I want to search a key whether it is declared or not in particular file.

For Example,

Using sonar-jproperties plugin we can create one custom rule in the pre-defined templates to search for a key present or not in .properties file.

In the same way, I want to search a key is present or not in particular file like,

Eg:- {filename}-{Prod}.properties file or {filename}-{Dev}.yml file

Is there any way or plugin to perform the same ?