misc/wt
changeset 341 e9d5287c3107
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/wt	Fri Aug 28 16:54:49 2020 +0100
@@ -0,0 +1,19 @@
+#!/bin/sh
+###set -e
+
+trap "exit" INT
+
+files=${1:-assignment2019scala-*/Part10}
+name="bf.scala"
+
+for sd in $files; do
+   wartremover -traverser org.wartremover.warts.Return -traverser org.wartremover.warts.Var -traverser org.wartremover.warts.MutableDataStructures $sd/$name 2> /dev/null 1> /dev/null
+   ts=$(( $? )) 
+   if [ $ts -ne 0 ]
+   then
+     echo $sd  
+     echo $ts
+   fi  
+done
+
+