~spxtr/hare-imports

Alert you to bad hare imports.
Initial commit.

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~spxtr/hare-imports
read/write
git@git.sr.ht:~spxtr/hare-imports

You can also use your local clone with git send-email.

Alert you to wrong hare imports:

  • Imports out of alphabetical order.
  • Unused imports.

Usage: hare run cmd/hareimports paths. The paths may be a list of hare files or a directory to recursively walk.

The unused import checker necessarily has false negatives without a hosted type checker. There should not be any false positives.

Once we have lossless AST, I will update this to fix things.