Skip to main content
Level 4
Jun 26, 2022 5:53 PM UTC
Solved

How to implement SonarQube for AEM as a CLoud Service

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.
SantoshSai
SantoshSaiAccepted solution
Community Advisor
Jun 27, 2022 2:17 AM UTC

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

Santosh Sai

11 replies

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
Jun 27, 2022 2:17 AM UTC

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

Translate
Santosh Sai
Himanshu_Jain
Community Advisor
Community Advisor
Jun 27, 2022 4:36 AM UTC

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

 

Translate
Himanshu Jain
Level 4
Jun 29, 2022 5:15 AM UTC

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

Translate
Himanshu_Jain
Community Advisor
Community Advisor
Jun 29, 2022 6:06 AM UTC
  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

 

Translate
Himanshu Jain
Adobe Employee
Jun 27, 2022 3:19 PM UTC
Level 4
Jun 29, 2022 5:02 AM UTC

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

Translate
Adobe Employee
Jun 29, 2022 6:51 AM UTC

The above links will help you to do that.

Translate