Commit Graph

7 Commits

Author SHA1 Message Date
Qi Xiao
4d62732ebc Fix "indicies" -> indices. 2021-08-22 23:31:26 +01:00
Shengjing Zhu
5724ec4c47 Fix typos and add codespell to CI 2021-08-22 23:07:34 +01:00
Qi Xiao
671c76be00 Add a lint Makefile target and CI task.
Both run staticcheck and go vet (but not golint).

Also make some small changes necessary to make the codebase lint-free under
staticcheck.
2021-07-08 00:13:38 +01:00
Kurtis Rader
9345125bd2 staticcheck lint cleanups
Fix two issues found by `staticcheck -tests=false ./...`:

pkg/eval/go_fn.go:155:5: var errNoOptions is unused (U1000)
pkg/persistent/hashmap/hashmap.go:321:2: only the first constant in this group has an explicit type (SA9004)
2021-06-06 14:54:47 +01:00
Kurtis Rader
fee2870564 Lint cleanup: avoid dangling "else { return }"
Also, don't assume the only possible pointer sizes are four and eight bytes.
2021-05-30 00:38:26 +01:00
Qi Xiao
91b6f6dd72 Use the integrated persistent package. 2021-05-03 22:17:46 +01:00
Qi Xiao
0a5057a64d Add 'pkg/persistent/' from commit '8ed0fbdb11911ed89129a090bcc1562f3a759481'
git-subtree-dir: pkg/persistent
git-subtree-mainline: 543b123661
git-subtree-split: 8ed0fbdb11
2021-05-03 22:13:15 +01:00