Skip to content

Commit

Permalink
Add summary shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Aug 1, 2017
1 parent 9b3f323 commit acb134e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
# Ignore Mac folder profile files
*DS_Store*

# Ignore temp file for linter output
_lint.txt
26 changes: 26 additions & 0 deletions summary.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit acb134e

Please sign in to comment.