The --fix option is relatively unknown and underutilized. Add some text to show that it's available when style defects are found.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -5975,6 +5975,14 @@ sub process { · 5974 unmodified lines | ||
| 5975 | 5975 | } |
| 5976 | 5976 | |
| 5977 | 5977 | if ($quiet == 0) { |
| 5978 | + # If there were any defects found and not already fixing them | |
| 5979 | + if (!$clean and !$fix) { | |
| 5980 | + print << "EOM" | |
| 5981 | + | |
| 5982 | +NOTE: For some of the reported defects, checkpatch may be able to | |
| 5983 | + mechanically convert to the typical style using --fix or --fix-inplace. | |
| 5984 | +EOM | |
| 5985 | + } | |
| 5978 | 5986 | # If there were whitespace errors which cleanpatch can fix |
| 5979 | 5987 | # then suggest that. |
| 5980 | 5988 | if ($rpt_cleaners) { |