A few sprints ago we enabled SonarQube and PMD analysis on the Maven and Gradle tasks. We continue to add code analysis tooling to the Java build tasks with Checkstyle support for Gradle, and – in a few days – for Maven.
Checkstyle is the analyzer of choice for enforcing a coding standard. It is a highly configurable analyzer, but you can get going fast and use the “Java Sun Checks” by enabling the “Run Checkstyle” box available in the Code Analysis section.
The build summary then reports the number of issues found by Checkstyle. Detailed issue logs are available under the build Artifact tab of the build summary.
If you wish to configure the analysis have a look at the official documentation on applying the Checkstyle plugin in the Gradle build or applying Checkstyle for Maven. We will detect that you apply the plugin and we will not intervene, but we will try to find the reports and produce a build summary.
We’d like to hear from you. Please raise issues and suggestions on the issues tab of the VSTS task repository in GitHub: https://github.com/microsoft/vsts-tasks/issues and add the label “Area: Analysis”.