mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 00:30:09 +01:00
checkpatch: warn about suspicious gtk-doc annotations
It's
(allow-none):
and
(transfer none):
That's confusing enough. Add a check.
This commit is contained in:
parent
b54d695e98
commit
fc052494d1
1 changed files with 1 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ complain ("Please use LGPL2+ for new files") if $is_patch and $line =~ /under th
|
|||
complain ("Don't use space inside elvis operator ?:") if $line =~ /\?[\t ]+:/;
|
||||
complain ("Don't add Emacs editor formatting hints to source files") if $line_no == 1 and $line =~ /-\*-.+-\*-/;
|
||||
complain ("XXX marker are reserved for development while work-in-progress. Use TODO or FIXME comment instead?") if $line =~ /\bXXX\b/;
|
||||
complain ("This gtk-doc annotation looks wrong") if $line =~ /\*.*\( *(transfer-(none|container|full)|allow none) *\) *(:|\()/;
|
||||
|
||||
new_hunk if $_ eq '';
|
||||
my ($this_indent) = /^(\s*)/;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue