]> spindle.queued.net Git - midori/commitdiff
check-style should warn about g_list_nth in loops
authorChristian Dywan <christian@twotoasts.de>
Wed, 20 Oct 2010 21:52:20 +0000 (23:52 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 20 Oct 2010 21:53:02 +0000 (23:53 +0200)
tools/check-style

index fc752fce629c0cd8bce0b29c7b07be80e46a93c5..b6076d82da99a4b56ee57d780f05619bcd5bbb9e 100755 (executable)
@@ -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 = [