From 1806f9cd9bf5c10bbd806ba4149d8653f1660c0e Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Tue, 17 Nov 2020 09:04:52 +0100
Subject: [PATCH] devtools: rename analyze -> line-count

---
 cmake/BornAgain/LineLength.cmake                    |   8 +++++---
 devtools/{analyze => line-count}/baloc/__init__.py  |   0
 .../{analyze => line-count}/baloc/file_types.py     |   0
 .../baloc/history_collector.py                      |   0
 .../{analyze => line-count}/baloc/history_plot.py   |   0
 .../{analyze => line-count}/check-line-length.py    |   0
 devtools/{analyze => line-count}/gitlog.tmp         |   0
 devtools/{analyze => line-count}/lines_of_code.png  | Bin
 devtools/{analyze => line-count}/lines_of_code.py   |   0
 9 files changed, 5 insertions(+), 3 deletions(-)
 rename devtools/{analyze => line-count}/baloc/__init__.py (100%)
 rename devtools/{analyze => line-count}/baloc/file_types.py (100%)
 rename devtools/{analyze => line-count}/baloc/history_collector.py (100%)
 rename devtools/{analyze => line-count}/baloc/history_plot.py (100%)
 rename devtools/{analyze => line-count}/check-line-length.py (100%)
 rename devtools/{analyze => line-count}/gitlog.tmp (100%)
 rename devtools/{analyze => line-count}/lines_of_code.png (100%)
 rename devtools/{analyze => line-count}/lines_of_code.py (100%)

diff --git a/cmake/BornAgain/LineLength.cmake b/cmake/BornAgain/LineLength.cmake
index 8c5977e9c4f..4fe096b797e 100644
--- a/cmake/BornAgain/LineLength.cmake
+++ b/cmake/BornAgain/LineLength.cmake
@@ -3,12 +3,14 @@ set(WEB_LEN_LIM 85) # maximum line length of code for display in web docs
 
 if(NOT MSVC)
 
+    set(LINECOUNT ${CMAKE_SOURCE_DIR}/devtools/line-count/check-line-length.py)
+
     foreach(dir ${AllComponents})
         file(GLOB_RECURSE src1 ${dir}/*.cpp)
         file(GLOB_RECURSE src2 ${dir}/*.h)
         add_test(NAME "LineLength.Cpp.${dir}"
             COMMAND ${Python3_EXECUTABLE}
-            ${CMAKE_SOURCE_DIR}/devtools/analyze/check-line-length.py ${SRC_LEN_LIM}
+            ${LINECOUNT} ${SRC_LEN_LIM}
             ${src1} ${src2})
     endforeach()
 
@@ -16,12 +18,12 @@ if(NOT MSVC)
         file(GLOB_RECURSE src1 ${dir}/*CMakeLists.txt)
         add_test(NAME "LineLength.CMake.${dir}"
             COMMAND ${Python3_EXECUTABLE}
-            ${CMAKE_SOURCE_DIR}/devtools/analyze/check-line-length.py ${SRC_LEN_LIM}
+            ${LINECOUNT} ${SRC_LEN_LIM}
             ${src1})
     endforeach()
 
     file(GLOB sources "${PY_EXAMPLES_DIR}/*/ex*/*.py")
     add_test(NAME "LineLength.PyExamples" COMMAND ${Python3_EXECUTABLE}
-        ${CMAKE_SOURCE_DIR}/devtools/analyze/check-line-length.py ${WEB_LEN_LIM} ${sources})
+        ${LINECOUNT} ${WEB_LEN_LIM} ${sources})
 
 endif()
diff --git a/devtools/analyze/baloc/__init__.py b/devtools/line-count/baloc/__init__.py
similarity index 100%
rename from devtools/analyze/baloc/__init__.py
rename to devtools/line-count/baloc/__init__.py
diff --git a/devtools/analyze/baloc/file_types.py b/devtools/line-count/baloc/file_types.py
similarity index 100%
rename from devtools/analyze/baloc/file_types.py
rename to devtools/line-count/baloc/file_types.py
diff --git a/devtools/analyze/baloc/history_collector.py b/devtools/line-count/baloc/history_collector.py
similarity index 100%
rename from devtools/analyze/baloc/history_collector.py
rename to devtools/line-count/baloc/history_collector.py
diff --git a/devtools/analyze/baloc/history_plot.py b/devtools/line-count/baloc/history_plot.py
similarity index 100%
rename from devtools/analyze/baloc/history_plot.py
rename to devtools/line-count/baloc/history_plot.py
diff --git a/devtools/analyze/check-line-length.py b/devtools/line-count/check-line-length.py
similarity index 100%
rename from devtools/analyze/check-line-length.py
rename to devtools/line-count/check-line-length.py
diff --git a/devtools/analyze/gitlog.tmp b/devtools/line-count/gitlog.tmp
similarity index 100%
rename from devtools/analyze/gitlog.tmp
rename to devtools/line-count/gitlog.tmp
diff --git a/devtools/analyze/lines_of_code.png b/devtools/line-count/lines_of_code.png
similarity index 100%
rename from devtools/analyze/lines_of_code.png
rename to devtools/line-count/lines_of_code.png
diff --git a/devtools/analyze/lines_of_code.py b/devtools/line-count/lines_of_code.py
similarity index 100%
rename from devtools/analyze/lines_of_code.py
rename to devtools/line-count/lines_of_code.py
-- 
GitLab