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:19:00 UTC
[jira] [Updated] (HDDS-6689) New checkstyle: NoLineWrap
[ https://issues.apache.org/jira/browse/HDDS-6689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaijie Chen updated HDDS-6689:
------------------------------
Description:
Add new checkstyle rule `NoLineWrap`, which checks no line wrap 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}
was:
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}
> 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
> Priority: Minor
> Labels: pull-request-available
>
> Add new checkstyle rule `NoLineWrap`, which checks no line wrap 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