]> git.ipfire.org Git - thirdparty/libvirt.git/commit
syntax-check: Check for incorrect indentation in function body
authorShi Lei <shi_lei@massclouds.com>
Thu, 13 Sep 2018 08:55:19 +0000 (16:55 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Sep 2018 11:29:01 +0000 (13:29 +0200)
commit11e1f11dd34f2688169c63c13ea8d99a64724369
tree0fe48df4a6176a17c6d1bd85ae35cb652a78ac8f
parenteaa765ef6b891385001839d455717fe0fabb7a6f
syntax-check: Check for incorrect indentation in function body

This patch add syntax-check rule for incorrect indentation and blank
first line in function body by changing check-spacing.pl.
For efficiency, it only checks the first line of function body.
But it's enough for most cases.

Signed-off-by: Shi Lei <shi_lei@massclouds.com>
build-aux/check-spacing.pl