Is there a way to enforce project key naming convention

Hi, below is the information want to ask, thank you for your time.

Must-share information:

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

Data Center Edition Version 9.8 (build 63668)

  • how is SonarQube deployed: zip, Docker, Helm

Docker

  • what are you trying to achieve

want to enforce the project key naming convention to make projects more easily grouping by permission template, the goal is like enabling this kind of check, and project scan will be failed if the project key is not following the naming convention

  • what have you tried so far to achieve this

No ideas, maybe try to implement a plugin, not sure it is feasible

Hi,

Welcome to the community!

Sorry, but there’s nothing in SonarQube that would allow you to do this.

If you really need to enforce a project key naming convention, you’ll need to do it outside of SonarQube.

 
HTH,
Ann

Thanks for the reply. Will try the outside of SonarQube way!