⇤ ← Revision 1 as of 2010-05-18 11:07:39
300
Comment:
|
1484
HOWTO integrate the checkpatch script into Claws Mail (or Sylpheed)
|
Deletions are marked like this. | Additions are marked like this. |
Line 8: | Line 8: |
---- = HOWTO integrate the checkpatch script into Claws Mail (or Sylpheed) = |
|
Line 9: | Line 11: |
If you intend to send or review patches with Claws Mail (or Sylpheed), scripts/checkpatch.pl is very useful for catching coding style violations. Quoting from Documentation/Submitting``Patches, the patch sender "should be able to justify all violations that remain in the patch." '''1. Create an action:''' Configuration > Actions... Menu name: ''checkpatch'' Command: ''/usr/src/linux/scripts/checkpatch.pl %f'' (X) Shell command Add. Alternatively, just add ''checkpatch: /usr/src/linux/scripts/checkpatch.pl %f'' to .claws-mail/actionsrc '''2. Optionally, add a toolbar button:''' Configuration > Preferences... Toolbars > Main Window Item type: ''User Action'' Event executed on click: ''checkpatch'' Add some nice icon, then Add. Move it up/down to a convenient location on the toolbar, maybe add an additional separator. Now you can check an inline patch in a selected message with a single mouse click. When sending a patch, you can first put the message into the queue folder, check it there, then send the queued messages. |
My name is Nicolas Kaiser. I hail from Kitzbühel, Austria.
I greatly enjoy proofreading. In regard to the Linux kernel, I'm a fan of [http://coccinelle.lip6.fr/ Coccinelle].
Des gheat amoi xog - in English: This deserves to be mentioned.
HOWTO integrate the checkpatch script into Claws Mail (or Sylpheed)
If you intend to send or review patches with Claws Mail (or Sylpheed), scripts/checkpatch.pl is very useful for catching coding style violations.
Quoting from Documentation/SubmittingPatches, the patch sender "should be able to justify all violations that remain in the patch."
1. Create an action:
Configuration > Actions...
Menu name: checkpatch
Command: /usr/src/linux/scripts/checkpatch.pl %f (X) Shell command
Add.
Alternatively, just add
checkpatch: /usr/src/linux/scripts/checkpatch.pl %f
to .claws-mail/actionsrc
2. Optionally, add a toolbar button:
Configuration > Preferences...
Toolbars > Main Window
Item type: User Action
Event executed on click: checkpatch
Add some nice icon, then
Add.
Move it up/down to a convenient location on the toolbar, maybe add an additional separator.
Now you can check an inline patch in a selected message with a single mouse click.
When sending a patch, you can first put the message into the queue folder, check it there, then send the queued messages.