[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52315] trunk/blender/source/tools: fix for style checker for spaces between '){', also minor updates to spell-checker script.

Campbell Barton ideasman42 at gmail.com
Sun Nov 18 02:20:11 CET 2012


Revision: 52315
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52315
Author:   campbellbarton
Date:     2012-11-18 01:20:02 +0000 (Sun, 18 Nov 2012)
Log Message:
-----------
fix for style checker for spaces between '){', also minor updates to spell-checker script.

Modified Paths:
--------------
    trunk/blender/source/tools/check_style_c.py
    trunk/blender/source/tools/spell_check_source.py
    trunk/blender/source/tools/spell_check_source_config.py

Modified: trunk/blender/source/tools/check_style_c.py
===================================================================
--- trunk/blender/source/tools/check_style_c.py	2012-11-18 00:30:06 UTC (rev 52314)
+++ trunk/blender/source/tools/check_style_c.py	2012-11-18 01:20:02 UTC (rev 52315)
@@ -214,7 +214,7 @@
     # check for: ){
     index_next = tk_advance_ws_newline(index_kw_end, 1)
     if tokens[index_next].type == Token.Punctuation and tokens[index_next].text == "{":
-        if not tk_item_is_ws(tokens[index_kw + 1]):
+        if not tk_item_is_ws(tokens[index_next - 1]):
             warning("no white space between trailing bracket '%s (){'" % tokens[index_kw].text, index_kw_start, index_kw_end)
 
         # check for: if ()
@@ -550,6 +550,9 @@
     for filepath in sorted(source_list(dirpath, is_source)):
         if is_ignore(filepath):
             continue
+        # for quick tests
+        #~ if not filepath.endswith("creator.c"):
+        #~     continue
 
         scan_source(filepath, args)
 

Modified: trunk/blender/source/tools/spell_check_source.py
===================================================================
--- trunk/blender/source/tools/spell_check_source.py	2012-11-18 00:30:06 UTC (rev 52314)
+++ trunk/blender/source/tools/spell_check_source.py	2012-11-18 01:20:02 UTC (rev 52315)
@@ -61,6 +61,7 @@
     text = text.replace("+", " ")
     text = text.replace("%", " ")
     text = text.replace(",", " ")
+    text = text.replace("|", " ")
     words = text.split()
 
     # filter words

Modified: trunk/blender/source/tools/spell_check_source_config.py
===================================================================
--- trunk/blender/source/tools/spell_check_source_config.py	2012-11-18 00:30:06 UTC (rev 52314)
+++ trunk/blender/source/tools/spell_check_source_config.py	2012-11-18 01:20:02 UTC (rev 52315)
@@ -33,6 +33,7 @@
     "subdirectory",
     "decrement",
     "boolean",
+    "decrementing",
 
     # python types
     "str",
@@ -59,6 +60,7 @@
     "tooltip",
 
     # general computer terms
+    "endian",
     "contructor",
     "unicode",
     "jitter",
@@ -66,7 +68,6 @@
     "searchable",
     "metadata",
     "hashable",
-    "normals",
     "stdin",
     "opengl",
     "boids",
@@ -79,6 +80,8 @@
     "xml",
 
     # spesific computer terms/brands
+    "posix",
+    "unix",
     "amiga",
     "netscape",
     "mozilla",
@@ -86,10 +89,14 @@
     "kde",
 
     # general computer graphics terms
+    "colinear",
+    "coplanar",
+    "bezier",
     "radiosity",
     "reflectance",
     "specular",
     "nurbs",
+    "ngon", "ngons",
     "bicubic",
     "compositing",
     "deinterlace",
@@ -98,6 +105,7 @@
     "centroid",
     "emissive",
     "quaternions",
+    "normals",
 
     # blender terms
     "bpy",




More information about the Bf-blender-cvs mailing list