-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathTODO.txt
23 lines (18 loc) · 1.42 KB
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# count the number of issues per file
awk -F: '/.+/{files[$1]+=1;} END{for(f in files)print f" "files[f];}' <(staticcheck ./...) | sort -nk2
# Unique check errors. Descriptions are at https://staticcheck.dev/docs/checks
# e.g. https://staticcheck.dev/docs/checks/#SA1006
# Produce novel static check into outfile
# Remove previous tasklist
# Append latest checklist into TODO.txt
staticcheck ./... >staticcheck.out
sed -i '' '/^\[[ xX]\]/d' TODO.txt
awk -F\: '/^[a-zA-Z0-9]/{desc=""; for(i=4; i<=NF; ++i){desc=desc":"$i}; print "[ ]"substr(desc,2)}' staticcheck.out | sort -u -t \( -k2 -k1 >> TODO.txt
[ ] "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
[ ] strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (SA1019)
[ ] this value of file is never used (SA4006)
[ ] self-assignment of file to file (SA4018)
[ ] error strings should not be capitalized (ST1005)
[ ] error strings should not end with punctuation or newlines (ST1005)
[ ] func createChecksumFromZip is unused (U1000)
[ ] should omit second index in slice, s[a:len(s)] is identical to s[a:] (S1010)