TouK / sputnik

Static code review for your Gerrit patchsets. Runs Checkstyle, PMD, FindBugs, Scalastyle, CodeNarc, JSLint for you!
Apache License 2.0
201 stars 117 forks source link

Set config_loc property for Checkstyle #235

Closed corebonts closed 3 years ago

corebonts commented 3 years ago

This is a half-official property, that is not set by Checkstyle itself by default, but provided by IDE tools for Eclipse and IDEA.

In order to use the same configuration for IDE and Sputnik, it's useful to have this property set here also

SpOOnman commented 3 years ago

What is the benefit of having this property?

corebonts commented 3 years ago

You can refer to other files (like suppression.xml) from the config file: https://docs.gradle.org/5.5.1/userguide/checkstyle_plugin.html#sec:checkstyle_built_in_variables

SpOOnman commented 3 years ago

Thanks! That should work!