From f34bb7e9bba6937a39c1190a60693a34cca5f021 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Wed, 6 Sep 2017 18:01:05 -0400 Subject: [PATCH] Adding script to count the lines of code in the project --- scripts/count_lines.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/count_lines.sh diff --git a/scripts/count_lines.sh b/scripts/count_lines.sh new file mode 100755 index 0000000..7e27681 --- /dev/null +++ b/scripts/count_lines.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")" + +cd ${ROOT} +echo -e "\nTests: " +echo "$(wc -l tests/*.py)" +echo -e "\nScripts: " +echo "$(wc -l scripts/*)" +echo -e "\nTemplates: " +echo "$(wc -l rtv/templates/*)" +echo -e "\nCode: " +echo "$(wc -l rtv/*.py)" +echo -e "\nCombined: " +echo "$(cat tests/*.py scripts/* rtv/templates/* rtv/*.py | wc -l) total lines"