Add coding style checks 40/12140/2
authorLorand Jakab <lojakab@cisco.com>
Wed, 22 Oct 2014 09:07:11 +0000 (12:07 +0300)
committerLorand Jakab <lojakab@cisco.com>
Wed, 29 Oct 2014 06:23:08 +0000 (08:23 +0200)
commit3322a0f7105a6e37c5d92fe2cd147381b2855b52
tree92273fa9a8ce479d4fef72dbba9df9ae11ed848d
parent1756f9ff50bdc73ec882cbb300e27a0ad8398ce1
Add coding style checks

Run the maven-checkstyle-plugin during the build, using rules from the
controller project, which include:

  - No TAB characters
  - No trailing spaces
  - No redundant, unused or star imports
  - Long constants defined with upper ell: 'L'
  - No empty statements (standalone ';' semicolon)
  - If a class overrides equals() it must override hashCode()

These rules are applied to .java, .xml, and .yang files.  Rule
violations are reported on the console, but they don't cause the build
to fail.  This behavior should be changed in the future, when the
existing code base is cleaned up, so that no new violations are
introduced after that.

Change-Id: I552eb72e1ac4b96a4cf80a216a1638bb36d77821
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
commons/parent/pom.xml
pom.xml