File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 (file-name-directory (nth 1 (member " -scriptload" command-line-args))))
2020 nil t )
2121
22+ ; ; Handle options
23+ (add-hook 'eask-before-command-hook
24+ (lambda ()
25+ (setq package-lint-batch-fail-on-warnings t )))
26+
2227(defun eask--package-lint-file (filename )
2328 " Package lint FILENAME."
2429 (let* ((filename (expand-file-name filename))
2530 (file (eask-root-del filename)))
2631 (message " " )
2732 (message " `%s ` with package-lint " file)
28- (with-temp-buffer
29- (emacs-lisp-mode )
30- (insert-file-contents filename)
31- (package-lint-current-buffer)))
33+ (with-current-buffer (find-file filename)
34+ (package-lint-current-buffer)
35+ (kill-this-buffer )))
3236 (eask-print-log-buffer " *Package-Lint*" ))
3337
3438(eask-start
3741 (if-let ((files (or (eask-expand-file-specs (eask-args))
3842 (eask-package-el-files))))
3943 (progn
44+ (setq package-lint-main-file eask-package-file)
4045 (mapcar #'eask--package-lint-file files )
4146 (eask-info " (Total of %s files linted)" (length files )))
4247 (eask-info " (No files have been linted)" )))
You can’t perform that action at this time.
0 commit comments