camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Concordance between code formatting and checkstyle in Eclipse
Date Tue, 28 Apr 2009 10:11:57 GMT
Hi,

I try to format my code in Eclipse to make this in concordance with
checkstyle rules but it fails.

Scenario :

1) In eclipse, I have imported the following file to format the code :
https://svn.apache.org/repos/asf/camel/trunk/etc/eclipse/ActiveMQCodeFormatter.xml
2) I format my java classes using the command "Format"
3) I run checkstyle with Sun checks eclipse
4) I check the checkstyle report and discover by example :

- '(' must be on the previous line,
- ')'  must be on the previous line,
....

Normally such 'warning messages' should not be reported or I'm totaly wrong
in my understanding on How formatter and checkstyle work ?

Is there somewhere a formatting file for Eclipse which is in concordance
with Checkstyle ?

Charles
Senior Enterprise Architect
Apache Camel Committer

********************************
blog : http://cmoulliard.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message