Thursday, October 18, 2018

Allowing the build to complete even with checkstyle errors

The checkstyle plugin for IntelliJ and Android Studio can trigger a build failure if style violations are detected. This appears to be the default behavior for some versions of the tool. The build can be allowed to proceed anyway by changing the severity setting to "warning" instead of "error." Add this line inside the <module name="Checker"> element:

<property name="severity" value="warning" />

No comments:

Post a Comment