Azure-sdk-for-java: Enable Checkstyle Rules in IntelliJ Checkstyle Plugin

Created on 29 Aug 2019  ·  3Comments  ·  Source: Azure/azure-sdk-for-java

IntelliJ has a plugin that will run Checkstyle rules in the IDE. This works great for Checkstyle configurations that don't use custom rules, we should investigate enabling this to work with our rules.

Client Java Source Code Rules feature-request help wanted

All 3 comments

Any update on this? Need the plugin to work with this repo's checkstyle rules.

Could you please provide a xml file just like intellij-java-google-style.xml ?

This isn't an automatic fix to this issue but a guide which will allow for live Checkstyles and SpotBugs to run in IntelliJ.

@saragluna @chenrujun

Enabling SpotBugs

  • [ ] Install the plugin.

image

  • [ ] Add our SpotBugs excludes in the configuration.

image

Enabling Checkstyle

  • [ ] Install the plugin.

image

  • [ ] Add code-quality-reports as a library.

image

  • [ ] Configure Checkstyle and our suppressions.

image

The Checkstyle plugin may lock the custom Checkstyles JAR for deletion with may cause mvn clean to fail.

Was this page helpful?
0 / 5 - 0 ratings