checkpatch: relax >75 warning, adjust report format
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | checkpatch: tolerate long lines w/o spacesscripts/ | +2 | 1 reply | |
| 2/2 | checkpatch: minor whitespace changes for readabilityscripts/ | +3 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] checkpatch: relax >75 warning, adjust report format
1. current checkpatch warns: "Prefer a maximum 75 chars per line" on [1]:
[1] https://lore.kernel.org/lkml/[email protected]
That is overly strict. Instead allow long non-whitespace strings (\S+) to exceed 75 chars, after tolerating \s in 1st 10 chars.
This is more permissive than the current Fixes/link detector (which I preserved), IMHO checkpatch shouldn't be that fussy; it doesn't verify URLs either.
2. adjust report format for nicer pararaphs.
Current checkpatch format uses -------------- lines to segment the many per-patch reports, but then inserts a blank line just above the last per-patch report line, breaking the paragraph nature of that report.
Move the blank line down, which places it just above the -------- line starting the next per-patch report. Also wrap the per-patch summary line, so its columnar position is independent of the patch-name (and its length), and so your terminal window doesn't have to wrap the line. This makes the report easier to visually scroll/scan, since the status is always in the same column.
IOW, from this:
0001-checkpatch-report last line, looks part of 0002
--------------------------------------------------------------
0002-checkpatch-minor-whitespace-changes-for-readability.patch
--------------------------------------------------------------
total: 0 errors, 0 warnings, 15 lines checked
0002-checkpatch-minor-whitespace-changes-for-readability.patch has ....
-------------------------------------------------
next-patch ...
To this:
--------------------------------------------------------------
0002-checkpatch-minor-whitespace-changes-for-readability.patch
--------------------------------------------------------------
total: 0 errors, 0 warnings, 15 lines checked 0002-checkpatch-minor-whitespace-changes-for-readability.patch
has no obvious style problems and is ready for submission.
-------------------------------------------------
next-patch ...
Jim Cromie (2):
checkpatch: tolerate long lines w/o spaces
checkpatch: minor whitespace changes for readability
scripts/checkpatch.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0