Skip to content

Commit b4f3b9f

Browse files
authored
fix: Allow linter list through all errors (#137)
* fix: Allow lint through all errors * changelog
1 parent 5985279 commit b4f3b9f

File tree

9 files changed

+68
-1
lines changed

9 files changed

+68
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
4545
* Resolve the potential symlink to the bash script (#24, #125, and #126)
4646
* Workaround for arguments that contain whitespaces (#128 and #129)
4747
* Silent unnecessary Node's stacktrace (#134 and #136)
48+
* Allow linter list through all errors (#134 and #137)
4849

4950
## 0.7.x
5051
> Released Sep 08, 2022

lisp/lint/checkdoc.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
2020
nil t)
2121

22+
;;
23+
;;; Flags
24+
25+
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
26+
27+
;;
28+
;;; Core
29+
2230
(defvar eask--checkdoc-errors nil "Error flag.")
2331

2432
(defun eask--checkdoc-print-error (text start end &optional unfixable)

lisp/lint/elint.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
2020
nil t)
2121

22+
;;
23+
;;; Flags
24+
25+
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
26+
27+
;;
28+
;;; Core
29+
2230
(defun eask--elint-file (filename)
2331
"Run elint on FILENAME."
2432
(let* ((filename (expand-file-name filename))

lisp/lint/elisp-lint.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
2020
nil t)
2121

22+
;;
23+
;;; Flags
24+
25+
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
26+
27+
;;
28+
;;; Core
29+
2230
(defconst eask--elisp-lint-version nil
2331
"`elisp-lint' version.")
2432

lisp/lint/elsa.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
2020
nil t)
2121

22+
;;
23+
;;; Flags
24+
25+
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
26+
27+
;;
28+
;;; Core
29+
2230
(defconst eask--elsa-version nil
2331
"Elsa version.")
2432

lisp/lint/indent.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
2020
nil t)
2121

22+
;;
23+
;;; Flags
24+
25+
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
26+
27+
;;
28+
;;; Core
29+
2230
(defun eask--undo-lines (undo-list)
2331
"Return list of lines changed in UNDO-LIST."
2432
(let ((lines))

lisp/lint/keywords.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
1515
nil t)
1616

17+
;;
18+
;;; Flags
19+
20+
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
21+
22+
;;
23+
;;; Core
24+
1725
(require 'finder)
1826

1927
(defun eask--defined-keywords (keywords)

lisp/lint/package.el

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,21 @@
1919
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
2020
nil t)
2121

22-
;; Handle options
22+
;;
23+
;;; Flags
24+
25+
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
26+
27+
;;
28+
;;; Handle options
29+
2330
(add-hook 'eask-before-command-hook
2431
(lambda ()
2532
(setq package-lint-batch-fail-on-warnings t)))
2633

34+
;;
35+
;;; Core
36+
2737
(defconst eask--package-lint-version nil
2838
"`package-lint' version.")
2939

lisp/lint/regexps.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
(file-name-directory (nth 1 (member "-scriptload" command-line-args))))
2020
nil t)
2121

22+
;;
23+
;;; Flags
24+
25+
(advice-add #'eask-allow-error-p :override (lambda (&rest _) t))
26+
27+
;;
28+
;;; Core
29+
2230
(defconst eask--relint-version nil
2331
"`relint' version.")
2432

0 commit comments

Comments
 (0)