From acb134e38e3fa21dae911f87634599515b685712 Mon Sep 17 00:00:00 2001 From: TomDonoghue Date: Tue, 1 Aug 2017 10:11:42 -0700 Subject: [PATCH] Add summary shell script --- .gitignore | 2 ++ summary.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 summary.sh diff --git a/.gitignore b/.gitignore index 00395cf4..82768774 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ # Ignore Mac folder profile files *DS_Store* +# Ignore temp file for linter output +_lint.txt diff --git a/summary.sh b/summary.sh new file mode 100755 index 00000000..25e9647e --- /dev/null +++ b/summary.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +# Check how many lines there are in module - excludes blank lines +printf "\n\n\n\n CHECK MODULE SIZE:" +printf "\nNumber of lines of code & comments in ERP-SCANR: " +find ./fooof -name "*.py" -type f -exec grep . {} \; | wc -l + +# Check number of files using cloc +printf "\n\n\n CLOC OUTPUT (EXCLUDING TESTS): \n" +cloc fooof --exclude-dir='tests' + +#printf "\n\n\n CLOC OUTPUT - TEST FILES: \n" +#cloc fooof/tests --exclude-dir='data' + +# Run Tests & Check Coverage +#printf "\n\n\n RUN TESTS & TEST COVERAGE: \n" +#coverage run --source fooof --omit="*/plts/*" -m py.test +#coverage report + +# Find a way to get summary from pylint? +printf "\n\n\n RUN PYLINT ACROSS MODULE: \n" +pylint fooof -> _lint.txt +tail -n5 _lint.txt + +# Print out some new lines +printf "\n\n\n" \ No newline at end of file