Open an Elisp file containing a cons like (defalias . 5) (as can be found in various alists of lispy):
'(defalias . 2)
M-x package-lint-current-buffer
Observe wrong-type-argumentlistp.
The cause of the issue is as follows:
package-lint--check-objects-by-regexp finds s-expressions beginning with defalias, that are in fact conses. Many checker functions passed to it then take the cadr, which fails, since the cdr isn't a list.
I have fixed this locally and will make a PR shortly.
To reproduce:
(defalias . 5)
(as can be found in various alists oflispy
):M-x package-lint-current-buffer
wrong-type-argument
listp
.The cause of the issue is as follows:
package-lint--check-objects-by-regexp
finds s-expressions beginning withdefalias
, that are in fact conses. Many checker functions passed to it then take thecadr
, which fails, since thecdr
isn't a list.I have fixed this locally and will make a PR shortly.