History

checkpatch: advertise the --fix and --fix-inplace options more

The --fix option is relatively unknown and underutilized. Add some text to show that it's available when style defects are found.

Joe Perches committed 10 years ago

Commit ef212191 parent 481aea51 file · +8 −0Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+8−0
@@ -5975,6 +5975,14 @@ sub process { · 5974 unmodified lines
5975 }5975 }
5976 5976
5977 if ($quiet == 0) {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
5982NOTE: For some of the reported defects, checkpatch may be able to
5983 mechanically convert to the typical style using --fix or --fix-inplace.
5984EOM
5985 }
5978 # If there were whitespace errors which cleanpatch can fix5986 # If there were whitespace errors which cleanpatch can fix
5979 # then suggest that.5987 # then suggest that.
5980 if ($rpt_cleaners) {5988 if ($rpt_cleaners) {