From: Christian Dywan Date: Wed, 20 Oct 2010 21:52:20 +0000 (+0200) Subject: check-style should warn about g_list_nth in loops X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63210d28a18c583b60150bace2469605596dff95;p=midori check-style should warn about g_list_nth in loops --- diff --git a/tools/check-style b/tools/check-style index fc752fce..b6076d82 100755 --- a/tools/check-style +++ b/tools/check-style @@ -47,6 +47,7 @@ violations = [ ['asctime|ctime|getgrgid|getprgnam|getlogin \ |getpwnam|getpwuid|gmtime|localtime \ |rand|readdir|strtok|ttyname', 'Not thread-safe posix, use _r variant'], + ['while.*g_list_nth', 'Use g_list_next() instead of g_list_nth'], ] # No validation for strings, comments, includes omissions = [