Kaijie Chen created HDDS-6689:
---------------------------------

             Summary: New checkstyle: NoLineWrap
                 Key: HDDS-6689
                 URL: https://issues.apache.org/jira/browse/HDDS-6689
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Kaijie Chen
            Assignee: Kaijie Chen


Add new checkstyle rule `NoLineWrap`, which checks no line wraps in `pacakge`, 
`import` and `static import` statements.

[https://checkstyle.sourceforge.io/config_whitespace.html#NoLineWrap]

Fix violations by running the following command multiple times.
{code:java}
grep -rlE '^import [^;]*$' --include '*.java' | xargs sed -szi 's/\(\nimport 
[^;\n]\+\)\n \+/\1/g'{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to