[Pkg-libvirt-commits] [libguestfs] 36/146: generator: force longdesc to begin with uppercase
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 17:00:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit af988194f0aee3a46c8f783d9613f741620e8afd
Author: Hu Tao <hutao at cn.fujitsu.com>
Date: Tue Nov 25 13:10:43 2014 +0800
generator: force longdesc to begin with uppercase
As contrast to shortdesc which is forced to begin with lowercase, this
patch forces longdesc to begin with uppercase.
Signed-off-by: Hu Tao <hutao at cn.fujitsu.com>
(cherry picked from commit bd61f25625da9a9090ee5e1b0bc8aa2f834b2c3a)
---
generator/checks.ml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/generator/checks.ml b/generator/checks.ml
index b57134b..376de3b 100644
--- a/generator/checks.ml
+++ b/generator/checks.ml
@@ -157,7 +157,9 @@ let () =
List.iter (
fun { name = name; longdesc = longdesc } ->
if longdesc.[String.length longdesc-1] = '\n' then
- failwithf "long description of %s should not end with \\n." name
+ failwithf "long description of %s should not end with \\n." name;
+ if longdesc.[0] <> Char.uppercase longdesc.[0] then
+ failwithf "long description of %s should begin with uppercase." name
) (all_functions @ fish_commands);
(* Check proc_nrs. *)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list