elint for the first time, because I just learned that it reports things that bytecode compiling doesn't.
Mainly it is showing me a few missing
requires, which I'm adding.
tests.el is giving many warnings and errors. Distilled example:
(require 'ert) (ert-deftest my/test () (should t))
In top level expression: tests.el:2:Warning: Reference to unbound symbol: my/test tests.el:2:Error: Call to undefined function: should
I figured it might have something to do with macro evaluation. And indeed this makes
(eval-when-compile (ert-deftest my/test () (should t)))
However. I've never seen anyone do this. (Not that I've read all Elisp ever written. But I've looked at a fair amount, and even tried a quick GitHub search. I also didn't see any discussion of this in
Practically speaking, should I bother to do this?
(I realize "the value of linting" is probably an opinion-based question, which is no good. That's not my intent. I'm looking for practical advice from experienced Elisp programmers -- what sort of problems will I have from either using or not using