You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jay Kreps (JIRA)" <ji...@apache.org> on 2015/02/03 06:47:35 UTC
[jira] [Created] (KAFKA-1915) Integrate checkstyle for java code
Jay Kreps created KAFKA-1915:
--------------------------------
Summary: Integrate checkstyle for java code
Key: KAFKA-1915
URL: https://issues.apache.org/jira/browse/KAFKA-1915
Project: Kafka
Issue Type: Improvement
Reporter: Jay Kreps
Assignee: Jay Kreps
Priority: Minor
Fix For: 0.8.3
There are a lot of little style and layering problems that tend to creep into our code, especially with external patches and lax reviewers.
These are the usual style suspects--capitalization, spacing, bracket placement, etc.
My personal pet peave is a lack of clear thinking about layers. These layering problems crept in quite fast, and sad to say a number of them were accidentally caused by me. This is things like o.a.k.common depending on o.a.k.clients or the consumer depending on the producer.
I have a patch that integrates checkstyle to catch these issues at build time, and which corrects the known problems. There are a fair number of very small changes in this patch, all trivial.
Checkstyle can be slightly annoying, not least of which because it has a couple minor bugs around anonymous inner class formatting, but I find it is 98% real style issues so mostly worth it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)