This repository is meant to serve as a starting point for developing custom checks for Teamscale. You can build your custom checks using either Gradle or Maven.
- Clone this repository.
- Run
./gradlew jar
(Linux/macOS) orgradlew.bat jar
(Windows). - Copy the JAR from
build/libs/teamscale-custom-check-sample.jar
to thecustom-checks/
folder in your Teamscale installation root. - Restart Teamscale.
- You should now be able to see the sample check when creating a new Java analysis profile. It can be found inside the Bad Practice group.
You can import the project into IntelliJ IDEA using File > Open.
Then, when asked, select Open as: Gradle Project.
When the import is finished, you will find the sample custom check (SampleCheck
) in the src/main/java
directory.
Use ./gradlew eclipse
(Linux/macOS) or gradlew.bat eclipse
(Windows) to create Eclipse project files.
You can then import the project into Eclipse using File > Import > General > Existing Projects into Workspace.
When the import is finished, you will find the sample custom check (SampleCheck
) in the src/main/java
directory.
- Clone this repository.
- Run
./mvnw clean verify
. - Copy the JAR from
target/teamscale-custom-check-sample.jar
to thecustom-checks/
folder in your Teamscale installation root. - Restart Teamscale.
- You should now be able to see the sample check when creating a new Java analysis profile. It can be found inside the Bad Practice group.
You can import the project into IntelliJ IDEA using File > Open.
Then, when asked, select Open as: Maven Project.
When the import is finished, you will find the sample custom check (SampleCheck
) in the src/main/java
directory.
You can import the project into Eclipse using File > Import > Maven > Existing Maven projects.
When the import is finished, you will find the sample custom check (SampleCheck
) in the src/main/java
directory.
Javadoc: http://cqse.github.io/teamscale-custom-check-sample
The Javadoc documentation also contains more sample checks which you can use as examples/base for your own checks.
The custom-check API and thus any custom-check binaries are compatible between patch releases (e.g., 5.6.0 and 5.6.1). However, when updating to a new feature release (e.g., 5.6.x to 5.7.x), a rebuild of your custom checks against the latest custom-check API is recommended.
Need help? Contact us at [email protected].