@@ -14,12 +14,14 @@ jobs:
14
14
run : make
15
15
- name : Check markdown line length & code examples
16
16
run : ./v check-md -hide-warnings .
17
- # # NB: -hide-warnings is used here, so that the output is less noisy,
18
- # # thus real errors are easier to spot.
17
+ # # NB: -hide-warnings is used here, so that the output is less noisy,
18
+ # # thus real errors are easier to spot.
19
19
20
20
report-missing-fn-doc :
21
21
runs-on : ubuntu-20.04
22
22
timeout-minutes : 5
23
+ env :
24
+ MOPTIONS : --no-line-numbers --relative-paths --exclude /vlib/v/ --exclude /builtin/linux_bare/ --exclude /testdata/ --exclude /tests/ vlib/
23
25
steps :
24
26
- uses : actions/checkout@v2
25
27
- name : Build V
@@ -33,14 +35,14 @@ jobs:
33
35
34
36
- name : Check against parent commit
35
37
run : |
36
- ./v run cmd/tools/missdoc.v --no-line-numbers vlib/ | sed -n 's@^.*/vlib/@vlib/@p' | sort > /tmp/n_v.txt
37
- . /v run cmd/tools/missdoc.v --no-line-numbers pv/vlib/ | sed -n 's@^.*/vlib/@vlib/@p' | sort > /tmp/o_v.txt
38
+ ./v run cmd/tools/missdoc.v $MOPTIONS | sort > /tmp/n_v.txt
39
+ cd pv/ && .. /v run ../ cmd/tools/missdoc.v $MOPTIONS | sort > /tmp/o_v.txt
38
40
count_new=$(cat /tmp/n_v.txt | wc -l)
39
41
count_old=$(cat /tmp/o_v.txt | wc -l)
40
42
echo "new pubs: $count_new | old pubs: $count_old"
41
43
echo "new head: $(head -n1 /tmp/n_v.txt)"
42
44
echo "old head: $(head -n1 /tmp/o_v.txt)"
43
45
if [[ ${count_new} -gt ${count_old} ]]; then
44
- echo "The following $((count_new-count_old)) function(s) is introduced with no documentation:"
46
+ echo "The following $((count_new-count_old)) function(s) are introduced with no documentation:"
45
47
diff /tmp/n_v.txt /tmp/o_v.txt ## diff does exit(1) when files are different
46
48
fi
0 commit comments