You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Suraj Khurana (Jira)" <ji...@apache.org> on 2020/07/21 07:18:00 UTC

[jira] [Closed] (OFBIZ-11886) Allow single line statements in checkstyle

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

Suraj Khurana closed OFBIZ-11886.
---------------------------------
    Fix Version/s: Upcoming Branch
       Resolution: Implemented

This ticket has fixed around 1605(980+625) checkstyle issues.

> Allow single line statements in checkstyle
> ------------------------------------------
>
>                 Key: OFBIZ-11886
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11886
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: ALL COMPONENTS
>            Reporter: Suraj Khurana
>            Assignee: Suraj Khurana
>            Priority: Major
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-11886-format-LoginServices-checkNewPassword.patch, OFBIZ-11886-plugins.patch, OFBIZ-11886.patch, OFBIZ-11886.patch
>
>
> We need to add this module in checkstyle.xml
> <module name="NeedBraces">
>     <property name="allowSingleLineStatement" value="true"/>
>  </module>
> After this, single line statements like:
> if (Debug.verboseOn()) Debug.logVerbose(...)
> Will be considered safe.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)