How to implement SonarQube for AEM as a CLoud Service | Community
Skip to main content
Level 4
June 26, 2022
Solved

How to implement SonarQube for AEM as a CLoud Service

  • June 26, 2022
  • 3 replies
  • 8548 views

I have AEM as a Cloud Service setup on local. I want to setup SonarQube for the same. I have installed SonarQube but don't know how to integrate it with AEM.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SantoshSai

Hi @nikita24tailor ,

Please refer to this guide: https://blogs.perficient.com/2019/05/15/running-a-local-sonarqube-server-with-aem-rules/

Hope that helps!

Regards,

Santosh

3 replies

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
June 27, 2022
Santosh Sai
Himanshu_Jain
Community Advisor
Community Advisor
June 27, 2022

In your local SonarQube setup add the AEM rules jar file .

Jar file : https://github.com/wttech/AEM-Rules-for-SonarQube/releases

 

After that run mvn sonar:sonar on your project .

 

 

Thanks

Himanshu

 

Himanshu Jain
Level 4
June 29, 2022

How do I add the AEM rules jar file in SonarQube?

Level 4
June 29, 2022
  1. Download aemrules-x.y.jar or build AEM Rules for SonarQube plugin.
  2. Paste it into sonarqube/extensions/plugins directory.
  3. Restart SonarQube.
  4. Go to rules section and activate AEM rules in your profile.

Ref: https://github.com/wttech/AEM-Rules-for-SonarQube

 


Done with the Restart of SonarQube but not getting how to activate the AEM rules.

Adobe Employee
June 27, 2022
Level 4
June 29, 2022

Actually, my project is already created. I just want to integrate SonarQube with that.

Adobe Employee
June 29, 2022

The above links will help you to do that.