Function: use-package-lint
use-package-lint is an autoloaded, interactive and byte-compiled
function defined in use-package-lint.el.gz.
Signature
(use-package-lint)
Documentation
Check for errors in use-package declarations.
For example, if the module's :if condition is met, but even with the specified :load-path the module cannot be found.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/use-package/use-package-lint.el.gz
;;;###autoload
(defun use-package-lint ()
"Check for errors in `use-package' declarations.
For example, if the module's `:if' condition is met, but even
with the specified `:load-path' the module cannot be found."
(interactive)
(save-excursion
(goto-char (point-min))
(let ((re (eval use-package-form-regexp-eval)))
(while (re-search-forward re nil t)
(goto-char (match-beginning 0))
(let ((decl (read (current-buffer))))
(when (eq (car decl) 'use-package)
(use-package-lint-declaration
(use-package-as-string (cadr decl))
(use-package-normalize-keywords
(cadr decl) (cddr decl)))))))))