-
Notifications
You must be signed in to change notification settings - Fork 50
Introduction
jplucinski edited this page Jun 5, 2019
·
3 revisions
If you would like to participate in AEM Rules development please find some introduction below.
-
Clone repository on your local
https://github.com/Cognifide/AEM-Rules-for-SonarQube/
-
Build your jar package
mvn clean install or mvn package
To skip licence update please use-Dlicense.skip=true
param. -
Creating new rule
- Rule implementation
- Create java class under
com.cognifide.aemrules.htl.checks
package that extendsAbstractHtlCheck
- Create java class under
- Register rule
- Add created rule to CLASSES list in
HtlCheckClasses
- Update test class method
HtlProfileTest.sanity
- Add created rule to CLASSES list in
- Rule test
- Create test class in
com.cognifide.aemrules.htl.checks
package that extendsAbstractBaseTest
- HTML/HTL files used for testing purposes should be placed under
src/test/files/checks/htl/
directory
- Create test class in
- Update docs
- Add short description in README.md placed in root folder
- Create file
\src\main\resources\rules\HTL-{rule-id}
containing full description with compliant and noncompliant examples
- Rule implementation
If your using docker setup, copy jar file to shared folder and restart SonarQube, manually or with a curl command
curl --user admin:admin --request POST http://localhost:9000/api/system/restart