changeset 341 | e9d5287c3107 |
340:9eeab89d0671 | 341:e9d5287c3107 |
---|---|
1 #!/bin/sh |
|
2 ###set -e |
|
3 |
|
4 trap "exit" INT |
|
5 |
|
6 files=${1:-assignment2019scala-*/Part10} |
|
7 name="bf.scala" |
|
8 |
|
9 for sd in $files; do |
|
10 wartremover -traverser org.wartremover.warts.Return -traverser org.wartremover.warts.Var -traverser org.wartremover.warts.MutableDataStructures $sd/$name 2> /dev/null 1> /dev/null |
|
11 ts=$(( $? )) |
|
12 if [ $ts -ne 0 ] |
|
13 then |
|
14 echo $sd |
|
15 echo $ts |
|
16 fi |
|
17 done |
|
18 |
|
19 |