You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Kaijie Chen (Jira)" <ji...@apache.org> on 2022/05/03 05:02:00 UTC
[jira] [Created] (HDDS-6689) New checkstyle: NoLineWrap
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org