Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-20 22:29:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-20 22:29:19 +0400
commit8f5112f191e24aac86da7b70f461a50825e764da (patch)
treed5173d6b71e8d889a9766699ee0aa6eb89d7dbfb /build_files/cmake/cmake_static_check_cppcheck.py
parent0af633a36ce34fc2d80fb571f4b0e73233563827 (diff)
pep8 update & some minor cmake edits.
Diffstat (limited to 'build_files/cmake/cmake_static_check_cppcheck.py')
-rw-r--r--build_files/cmake/cmake_static_check_cppcheck.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/build_files/cmake/cmake_static_check_cppcheck.py b/build_files/cmake/cmake_static_check_cppcheck.py
index f6d46904794..6eb9d4da8b6 100644
--- a/build_files/cmake/cmake_static_check_cppcheck.py
+++ b/build_files/cmake/cmake_static_check_cppcheck.py
@@ -43,6 +43,7 @@ CHECKER_ARGS = [
# "--enable=all", # if you want sixty hundred pedantic suggestions
]
+
def main():
source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX)
@@ -58,12 +59,12 @@ def main():
check_commands.append((c, cmd))
for i, (c, cmd) in enumerate(check_commands):
- percent = 100.0 * (i / (len(check_commands)-1))
+ percent = 100.0 * (i / (len(check_commands) - 1))
percent_str = "[" + ("%.2f]" % percent).rjust(7) + " %:"
-
+
# if percent < 27.9:
# continue
-
+
# let cppcheck finish the line off...
sys.stdout.write("%s " % percent_str)