Skip to content

Commit

Permalink
fix: Allow linter list through all errors (#137)
Browse files Browse the repository at this point in the history
* fix: Allow lint through all errors

* changelog
  • Loading branch information
jcs090218 authored Mar 4, 2023
1 parent 5985279 commit b4f3b9f
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
* Resolve the potential symlink to the bash script (#24, #125, and #126)
* Workaround for arguments that contain whitespaces (#128 and #129)
* Silent unnecessary Node's stacktrace (#134 and #136)
* Allow linter list through all errors (#134 and #137)

## 0.7.x
> Released Sep 08, 2022
Expand Down
8 changes: 8 additions & 0 deletions lisp/lint/checkdoc.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
nil t)

;;
;;; Flags

(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))

;;
;;; Core

(defvar eask--checkdoc-errors nil "Error flag.")

(defun eask--checkdoc-print-error (text start end &optional unfixable)
Expand Down
8 changes: 8 additions & 0 deletions lisp/lint/elint.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
nil t)

;;
;;; Flags

(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))

;;
;;; Core

(defun eask--elint-file (filename)
"Run elint on FILENAME."
(let* ((filename (expand-file-name filename))
Expand Down
8 changes: 8 additions & 0 deletions lisp/lint/elisp-lint.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
nil t)

;;
;;; Flags

(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))

;;
;;; Core

(defconst eask--elisp-lint-version nil
"`elisp-lint' version.")

Expand Down
8 changes: 8 additions & 0 deletions lisp/lint/elsa.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
nil t)

;;
;;; Flags

(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))

;;
;;; Core

(defconst eask--elsa-version nil
"Elsa version.")

Expand Down
8 changes: 8 additions & 0 deletions lisp/lint/indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
nil t)

;;
;;; Flags

(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))

;;
;;; Core

(defun eask--undo-lines (undo-list)
"Return list of lines changed in UNDO-LIST."
(let ((lines))
Expand Down
8 changes: 8 additions & 0 deletions lisp/lint/keywords.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
nil t)

;;
;;; Flags

(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))

;;
;;; Core

(require 'finder)

(defun eask--defined-keywords (keywords)
Expand Down
12 changes: 11 additions & 1 deletion lisp/lint/package.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,21 @@
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
nil t)

;; Handle options
;;
;;; Flags

(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))

;;
;;; Handle options

(add-hook 'eask-before-command-hook
(lambda ()
(setq package-lint-batch-fail-on-warnings t)))

;;
;;; Core

(defconst eask--package-lint-version nil
"`package-lint' version.")

Expand Down
8 changes: 8 additions & 0 deletions lisp/lint/regexps.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
nil t)

;;
;;; Flags

(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))

;;
;;; Core

(defconst eask--relint-version nil
"`relint' version.")

Expand Down

0 comments on commit b4f3b9f

Please sign in to comment.