+1 - adding checkstyle to precheckin.
If the developer uses the provided templates ( eclipse + intellij) then
most of the formatting issues should be handled before precheckin. Also,
if a developer has a questionable coding style, that should lessen as
that developer will have resolve the issues before being able to commit.
I also believe that this should not be an overbearing and intrusive
On 13/10/16 6:36 am, Mark Bretl wrote:
There is some extra amount of time, 5-10 minutes extra for the entire
project (depending on your CPU). I think the real issue to adding it to the
precheckin target and have it be 'effective' is it needs to run
successfully, otherwise it would turn into noise most of the time I think.
We need to get the issues down to 0 or manage to set a new baseline (not
the best idea), which is a lot of work, to make it run successfully. Right
now, if you run the target, it will fail every time since there outstanding
issues in the code and very hard to tell what issues were introduced.
On Wed, Oct 12, 2016 at 11:34 AM, Dan Smith <dsm...@pivotal.io> wrote:
Seems like it should run as part of the build target. The only reason to
make it part of precheckin is if it takes a long time, otherwise people
should get fast feedback they need to change their code before they push.
On Wed, Oct 12, 2016 at 11:24 AM, Jared Stewart <jstew...@pivotal.io>
+1 to running during the precheckin target as well as Travis CI
On Oct 12, 2016 11:20 AM, "Darrel Schneider" <dschnei...@pivotal.io>
If Travis CI is only run on pull requests then that is not enough
committers do not submit pull requests. Having it run during the gradle
build or precheckin target is also needed. In addition to that I also
wanted PRs to be checked.
On Wed, Oct 12, 2016 at 11:12 AM, Jared Stewart <jstew...@pivotal.io>
It would certainly be necessary to make sure that the code style to
enforced is sensible, e.g. doe not use wildcard imports. We would
want to make one large commit to format all existing code before
Mark - Thank you for the information about the existing setup.
Mark, Darrel, Kevin - Given all of your comments, I think it might
more sense to add the flag to enable it in Travis CI rather than as
of the build. This way your build pass regardless of whitespace,
CI job would fail on PRs if they did not adhere to the standard
Anthony - It doesn’t seem to me that turning this on would have the
of combining reformatting commits and logic changes. Rather, since
code would already be formatted, there would no longer be any
commits except for single large commits when the code style file was
On Oct 12, 2016, at 11:01 AM, Bruce Schuchardt <
I like the idea of doing this but I don't think Checkstyle should
enabled until all of the code is reformatted.
Also, last time I checked there was still a problem with the
auto-format settings. It still used wildcard imports, which I
don't allow. I've manually changed my settings in Editor->Code
to "Use single class import" to correct that problem. I couldn't see
to get Gradle to do it.
Le 10/12/2016 à 10:28 AM, Anthony Baker a écrit :
Source code with a consistent look-and-feel makes it easier for
to join the project community and contribute.
Let’s continue to keep reformatting commits separate from logic
changes—otherwise it’s too hard to review.
On Oct 12, 2016, at 10:06 AM, Dan Smith <dsm...@pivotal.io>
This might be a good time to reformat the code since I don't
are too many long lived feature branches outstanding.
On Wed, Oct 12, 2016 at 10:00 AM, Jared Stewart <
I would like to advocate for adding a Checkstyle <
sourceforge.net/> or Spotless <https://github.com/diffplug/
gradle task to our build process to ensure that all code checked
the formatting standards described on the wiki <
confluence/display/GEODE/Code+Style+Guide> (and in the
formatter xml files in our repository). This will alleviate
reviewing code when whitespace or formatting has changed since
checked in will already comply with standards.