incubator-giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Avery Ching (Commented) (JIRA)" <>
Subject [jira] [Commented] (GIRAPH-40) Adding checkstyle enforcement of Giraph code conventions
Date Sat, 11 Feb 2012 02:08:59 GMT


Avery Ching commented on GIRAPH-40:

Here are some examples of one problem:  Checkstyle doesn't seem to be able to handle single
indent versus double indent of 2 spaces when appropriate.  The below examples are what Checkstyle
wants to have us do.

    public BasicVertex<LongWritable, DoubleWritable, DoubleWritable, M>
    getCurrentVertex() throws IOException, InterruptedException {

  public VertexReader<LongWritable, DoubleWritable, DoubleWritable, M>
  createVertexReader(InputSplit split, TaskAttemptContext context)
    throws IOException {

Also, checkstyle won't enforce indenting after a line wrap.  So both of these examples are
passing checkstyle.

      aggregateVertices =
              PseudoRandomVertexInputFormat.AGGREGATE_VERTICES, 0);

      aggregateVertices =
          PseudoRandomVertexInputFormat.AGGREGATE_VERTICES, 0);

That being said, I think this is the right thing to do and we can make some sacrifices to
have better, more uniform code.  Please let me know your thoughts.
> Adding checkstyle enforcement of Giraph code conventions
> --------------------------------------------------------
>                 Key: GIRAPH-40
>                 URL:
>             Project: Giraph
>          Issue Type: New Feature
>            Reporter: Avery Ching
>            Assignee: Avery Ching
>            Priority: Minor
>         Attachments: GIRAPH-40.patch
> Now that we have some code conventions (see GIRAPH-21), we should enforce them with a
maven checkstyle plugin.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message