[ 
https://issues.apache.org/jira/browse/HADOOP-13411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15497458#comment-15497458
 ] 

Hudson commented on HADOOP-13411:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10448 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/10448/])
HADOOP-13411. Checkstyle suppression by annotation or comment. (weichiu: rev 
0e68e14d5506288bbda02cfc755babf1e9875187)
* (edit) hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml


> Checkstyle suppression by annotation or comment
> -----------------------------------------------
>
>                 Key: HADOOP-13411
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13411
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-alpha2
>            Reporter: John Zhuge
>            Assignee: John Zhuge
>            Priority: Minor
>             Fix For: 2.9.0, 3.0.0-alpha2
>
>         Attachments: HADOOP-13411.001.patch
>
>
> Suppress checkstyle audit events in a method or a section of code by 
> annotation or comment. This can be achieved by checkstyle module 
> {{SuppressWarningsFilter}}, {{SuppressionCommentFilter}}, and 
> {{SuppressWithNearbyCommentFilter}}.
> Examples:
> {code}
>   @SuppressWarnings("checkstyle:parameternumber")
>   // More than 7 parameters
>   public Response putRoot(p1, p2, p3, p4, p5, p6, p7, p8)  {
>     ...
>   }
> {code}
> {code}
>   // CHECKSTYLE:OFF:ParameterNumber
>   // More than 7 parameters
>   private Response put(p1, p2, p3, p4, p5, p6, p7, p8)  {
>     ...
>   }
>   // CHECKSTYLE:ON:ParameterNumber
> {code}
> {code}
> private int [] array; // SUPPRESS CHECKSTYLE
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to