This folder serves two purposes. First, it contains configuration to generate metrics. Secondly, it is used by a pipeline to run the SCA tool jqassistant
This folder contains the following files and folders:
- queries: Contains the queries that are used to generate the metrics.
- .jqassistant: Contains the configuration for the jQAssistant tool.
- docker-compose.yaml: Docker compose file to start the Neo4j database
- query-neo4j.sh: Script to execute the queries against the Neo4j database.
- Install the jqassistant command line tool. See here for instructions. Extract the zip file to this folder.
- Copy an
Artemis.jar
file to this folder. You can generate this jar by running./gradlew build -x webapp -x test
in the Artemis project and copying the generating jar frombuild/libs/Artemis-<version>.jar
. - Run the following command to scan the Artemis.jar file with jqassistant:
./jqassistant-commandline-neo4jv5-2.5.0/bin/jqassistant.sh scan
- Start the Neo4j database with the following command:
docker-compose up -d
- Run the following command to execute the queries against the Neo4j database:
./query-neo4j.sh
- The results are stored in the
output
folder.
To add new queries, create a new file in the queries
folder with the ending .cql
.
Important: Make sure this file does not contain any comments (//
). Newlines and single/double quotes are supported.