diff options
author | Dan Kegel <[email protected]> | 2024-04-28 07:54:02 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-04-30 07:47:11 +0200 |
commit | ad0af607ef1d5d75639c3836f66994fc5640e276 (patch) | |
tree | 073dc7cb91780ce591330b76a39f078f68bd6e14 /GNUmakefile | |
parent | da23cdeae4e80767cb2e8025269bd844c096ead1 (diff) | |
download | tinygo-ad0af607ef1d5d75639c3836f66994fc5640e276.tar.gz tinygo-ad0af607ef1d5d75639c3836f66994fc5640e276.zip |
Add 'make spell' target, fix what it finds. In .go files, only checks comments.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index 384a933d3..379f6a7b2 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -921,3 +921,7 @@ lint: # Can't use grep with friendly formatter. Plain output isn't too bad, though. # Use 'grep .' to get rid of stray blank line go run github.com/mgechev/revive -config revive.toml compiler/... src/{os,reflect}/*.go | grep -v "should have comment or be unexported" | grep '.' | awk '{print}; END {exit NR>0}' + +spell: + # Check for typos in comments. Skip git submodules etc. + go run github.com/client9/misspell/cmd/misspell -i 'ackward,devided,extint,inbetween,programmmer,rela' $$( find . -depth 1 -type d | egrep -w -v 'lib|llvm|src/net' ) |