diff --git a/check_source/check_descriptions.py b/check_source/check_descriptions.py index 35e986d25d7fd965714016551b800cdc69a816b0..13ef8715a972b97db02648bd9d79805b4dcd8370 100644 --- a/check_source/check_descriptions.py +++ b/check_source/check_descriptions.py @@ -136,6 +136,7 @@ def check_duplicates(): if test: print("Invalid 'DUPLICATE_WHITELIST': %r" % test) + def main(): check_duplicates() diff --git a/check_source/check_style_c.py b/check_source/check_style_c.py index 5796cc3a209294c12cd502634206391479af0b26..9f737d296f52ed007f55403242cf3bfa9288e825 100755 --- a/check_source/check_style_c.py +++ b/check_source/check_style_c.py @@ -415,8 +415,6 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end): del ws_indent del l_last - - # check for: if () { ... }; # # no need to have semicolon after brace. @@ -565,7 +563,6 @@ def blender_check_kw_switch(index_kw_start, index_kw, index_kw_end): #~ print("Commment '%s'" % tokens[i].text) pass - elif tokens[i].type == Token.Keyword: if tokens[i].text in {"break", "return", "continue", "goto"}: if tokens[i_case].line == tokens[i].line: @@ -927,6 +924,7 @@ import re re_ifndef = re.compile("^\s*#\s*ifndef\s+([A-z0-9_]+).*$") re_define = re.compile("^\s*#\s*define\s+([A-z0-9_]+).*$") + def quick_check_include_guard(lines): found = 0 def_value = "" @@ -982,6 +980,7 @@ def quick_check_source(fp, code, args): quick_check_indentation(lines) + def scan_source(fp, code, args): # print("scanning: %r" % fp) diff --git a/utils/blender_update_themes.py b/utils/blender_update_themes.py index db82a07d95159683b63cdb4f8bbeda92dbe1134e..f9a4545db64319f17ef0624681e4b7fc1f33d7ce 100644 --- a/utils/blender_update_themes.py +++ b/utils/blender_update_themes.py @@ -20,7 +20,7 @@ # this script updates XML themes once new settings are added # -# ./blender.bin --background --python source/tools/update_themes.py +# ./blender.bin --background --python source/tools/utils/blender_update_themes.py import bpy import os