You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Jonathan Eagles (JIRA)" <ji...@apache.org> on 2015/05/03 07:21:06 UTC

[jira] [Updated] (HADOOP-11883) Checkstyle Results are Different Between Command Line and Eclipse

     [ https://issues.apache.org/jira/browse/HADOOP-11883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Eagles updated HADOOP-11883:
-------------------------------------
    Attachment: HADOOP-11883.1.patch

[~aw], this plugin tries to follow the blog post above. I do make a deviation in that the method posted in the blog runs checkstyle during mvn install. This adds one minute to the build time. Instead I take another approach where I build the checkstyle rules resources from the hadoop-build-tools jar and unpack that resource jar into the appropriate output directory. I have also not added the checkstyle project natures to the maven-eclipse-plugin. Eclipse add-ons like eclipse-cs trigger off of the project natures as to whether checkstyle should be run as part of the build process. If not, then you can just run checkstyle on demand. I think this meets our process as of today.

> Checkstyle Results are Different Between Command Line and Eclipse
> -----------------------------------------------------------------
>
>                 Key: HADOOP-11883
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11883
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Jonathan Eagles
>         Attachments: HADOOP-11883.1.patch
>
>
> If I run the checkstyle plugin from with eclipse, I want it to apply the same rules as when run from the command line.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)