Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.31k stars 1.96k forks source link

Upgrade Out of Date Linting Tooling #31275

Open alzimmermsft opened 1 year ago

alzimmermsft commented 1 year ago

Upgrade out of date versions of Checkstyle and Spotbugs to their latest versions.

Checkstyle

As of Checkstyle 10.0 it requires Java 11 to run, there is a backport for Java 8 that is actively maintained (https://github.com/rnveach/checkstyle-backport-jre8). Updating Checkstyle configuration to use the Checkstyle project when Java 11+ is used and the backport when Java 8-10 is used.

Spotbugs

Upgrading Spotbugs is simply just upgrading and resolving any new warnings produced.

JonathanGiles commented 1 year ago

Let's add these two tools to the appropriate profile, and move the existing checkstyle / spotbugs into the java 8 profile.