branch: elpa/flymake-collection commit 07a482b0942928019b8967dcfa87d86c232dd8d8 Author: Mohsin Kaleem <mohk...@kisara.moe> Commit: Mohsin Kaleem <mohk...@kisara.moe>
(checkers): Remove reference to previous macro + add autoloads --- checkers/flymake-rest-awk-gawk.el | 3 ++- checkers/flymake-rest-clang.el | 5 +++-- checkers/flymake-rest-eslint.el | 3 ++- checkers/flymake-rest-gcc.el | 1 + checkers/flymake-rest-html-tidy.el | 1 + checkers/flymake-rest-jq.el | 1 + checkers/flymake-rest-jsonlint.el | 1 + checkers/flymake-rest-less.el | 1 + checkers/flymake-rest-markdownlint.el | 1 + checkers/flymake-rest-mypy.el | 1 + checkers/flymake-rest-proselint.el | 3 ++- checkers/flymake-rest-pycodestyle.el | 1 + checkers/flymake-rest-pylint.el | 1 + checkers/flymake-rest-rubocop.el | 1 + checkers/flymake-rest-shellcheck.el | 3 ++- checkers/flymake-rest-yamllint.el | 1 + 16 files changed, 22 insertions(+), 6 deletions(-) diff --git a/checkers/flymake-rest-awk-gawk.el b/checkers/flymake-rest-awk-gawk.el index 09fb6cf814..9052cfe017 100644 --- a/checkers/flymake-rest-awk-gawk.el +++ b/checkers/flymake-rest-awk-gawk.el @@ -8,7 +8,8 @@ (eval-when-compile (require 'flymake-rest-rx)) -(flymake-backend! flymake-rest-awk-gawk +;;;###autoload (autoload 'flymake-rest-awk-gawk "flymake-rest-awk-gawk") +(flymake-rest-define flymake-rest-awk-gawk "GNU awk's built-in --lint checker." :title "gawk-awk" :pre-let ((gawk-exec (executable-find "gawk"))) diff --git a/checkers/flymake-rest-clang.el b/checkers/flymake-rest-clang.el index 2c1a4dedb9..864888f1c1 100644 --- a/checkers/flymake-rest-clang.el +++ b/checkers/flymake-rest-clang.el @@ -15,7 +15,8 @@ (defvar flymake-rest-clang-include-path nil "Default include path for gcc in `flymake-rest-clang'.") -(flymake-rest-define flymake-clang +;;;###autoload (autoload 'flymake-rest-clang "flymake-rest-clang") +(flymake-rest-define flymake-rest-clang "A C/C++ syntax checker using Clang. See URL `http://clang.llvm.org/'." @@ -40,7 +41,7 @@ See URL `http://clang.llvm.org/'." ((or 'c++-mode _) "c++")) "-") :error-parser - (flymake-backend-parse-rx! + (flymake-rest-parse-rx ((error bol "<stdin>:" line ":" column ": " (or "fatal" "error") ": " (message) eol) (warning bol "<stdin>:" line ":" column ": " "warning" ": " (message) eol) (note bol "<stdin>:" line ":" column ": " "note" ": " (message) eol)))) diff --git a/checkers/flymake-rest-eslint.el b/checkers/flymake-rest-eslint.el index 54c43351ed..f9c7f25dba 100644 --- a/checkers/flymake-rest-eslint.el +++ b/checkers/flymake-rest-eslint.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-enumerate)) +;;;###autoload (autoload 'flymake-rest-eslint "flymake-rest-eslint") (flymake-rest-define flymake-rest-eslint "A Javascript syntax and style checker using eslint. @@ -28,7 +29,7 @@ See URL `https://eslint.org/'." (alist-get 'messages (caar - (flymake-backend-parse-json! + (flymake-rest-parse-json (buffer-substring-no-properties (point-min) (point-max))))) (let-alist it diff --git a/checkers/flymake-rest-gcc.el b/checkers/flymake-rest-gcc.el index 1a5e3446a3..4237f38c12 100644 --- a/checkers/flymake-rest-gcc.el +++ b/checkers/flymake-rest-gcc.el @@ -15,6 +15,7 @@ (defcustom flymake-rest-gcc-include-path nil "Default include path for gcc in `flymake-rest-gcc'.") +;;;###autoload (autoload 'flymake-rest-gcc "flymake-rest-gcc") (flymake-rest-define flymake-rest-gcc "A C/C++ syntax checker using GCC. diff --git a/checkers/flymake-rest-html-tidy.el b/checkers/flymake-rest-html-tidy.el index ba9fe38707..e7a8152e0f 100644 --- a/checkers/flymake-rest-html-tidy.el +++ b/checkers/flymake-rest-html-tidy.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-rx)) +;;;###autoload (autoload 'flymake-rest-html-tidy "flymake-rest-html-tidy") (flymake-rest-define flymake-rest-html-tidy "A HTML syntax and style checker using Tidy. diff --git a/checkers/flymake-rest-jq.el b/checkers/flymake-rest-jq.el index 3ca92f9410..de194b6d7e 100644 --- a/checkers/flymake-rest-jq.el +++ b/checkers/flymake-rest-jq.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-rx)) +;;;###autoload (autoload 'flymake-rest-jq "flymake-rest-jq") (flymake-rest-define flymake-rest-jq "JSON checker using the jq tool. diff --git a/checkers/flymake-rest-jsonlint.el b/checkers/flymake-rest-jsonlint.el index ffb6495555..6b9daecfa0 100644 --- a/checkers/flymake-rest-jsonlint.el +++ b/checkers/flymake-rest-jsonlint.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-rx)) +;;;###autoload (autoload 'flymake-rest-jsonlint "flymake-rest-jsonlint") (flymake-rest-define flymake-rest-jsonlint "A JSON syntax and style checker using jsonlint. diff --git a/checkers/flymake-rest-less.el b/checkers/flymake-rest-less.el index c4c9ba565a..6a7136699d 100644 --- a/checkers/flymake-rest-less.el +++ b/checkers/flymake-rest-less.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-rx)) +;;;###autoload (autoload 'flymake-rest-less "flymake-rest-less") (flymake-rest-define flymake-rest-less "A LESS syntax checker using lessc. diff --git a/checkers/flymake-rest-markdownlint.el b/checkers/flymake-rest-markdownlint.el index 5fa8bdcee0..3cdf2cf2cc 100644 --- a/checkers/flymake-rest-markdownlint.el +++ b/checkers/flymake-rest-markdownlint.el @@ -12,6 +12,7 @@ "Path to the style config for markdownlint." :type 'string) +;;;###autoload (autoload 'flymake-rest-markdownlint "flymake-rest-markdownlint") (flymake-rest-define flymake-rest-markdownlint "Markdown checker using mdl. diff --git a/checkers/flymake-rest-mypy.el b/checkers/flymake-rest-mypy.el index 0ccb3cc979..5ef6e1bb01 100644 --- a/checkers/flymake-rest-mypy.el +++ b/checkers/flymake-rest-mypy.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-rx)) +;;;###autoload (autoload 'flymake-rest-mypy "flymake-rest-mypy") (flymake-rest-define flymake-rest-mypy "Mypy syntax and type checker. Requires mypy>=0.580. diff --git a/checkers/flymake-rest-proselint.el b/checkers/flymake-rest-proselint.el index f307fc50bb..cc0f60fbde 100644 --- a/checkers/flymake-rest-proselint.el +++ b/checkers/flymake-rest-proselint.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-enumerate)) +;;;###autoload (autoload 'flymake-rest-proselint "flymake-rest-proselint") (flymake-rest-define flymake-rest-proselint "Flymake checker using Proselint. @@ -23,7 +24,7 @@ See URL `http://proselint.com/'." (alist-get 'errors (alist-get 'data (car - (flymake-backend-parse-json! + (flymake-rest-parse-json (buffer-substring-no-properties (point-min) (point-max)))))) (let-alist it diff --git a/checkers/flymake-rest-pycodestyle.el b/checkers/flymake-rest-pycodestyle.el index 8d2ace203c..332997c461 100644 --- a/checkers/flymake-rest-pycodestyle.el +++ b/checkers/flymake-rest-pycodestyle.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-rx)) +;;;###autoload (autoload 'flymake-rest-pycodestyle "flymake-rest-pycodestyle") (flymake-rest-define flymake-rest-pycodestyle :title "pycodestyle" :pre-let ((pycodestyle-exec (executable-find "pycodestyle"))) diff --git a/checkers/flymake-rest-pylint.el b/checkers/flymake-rest-pylint.el index 8a1ff8808f..f82aa15d4f 100644 --- a/checkers/flymake-rest-pylint.el +++ b/checkers/flymake-rest-pylint.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-enumerate)) +;;;###autoload (autoload 'flymake-rest-pylint "flymake-rest-pylint") (flymake-rest-define flymake-rest-pylint :title "pylint" :pre-let ((python-exec (executable-find "python3")) diff --git a/checkers/flymake-rest-rubocop.el b/checkers/flymake-rest-rubocop.el index 0bfd9bb7ee..75b958aed6 100644 --- a/checkers/flymake-rest-rubocop.el +++ b/checkers/flymake-rest-rubocop.el @@ -11,6 +11,7 @@ (defcustom flymake-rest-rubocop-use-bundler t :type 'boolean) +;;;###autoload (autoload 'flymake-rest-rubocop "flymake-rest-rubocop") (flymake-rest-define flymake-rest-rubocop "A Ruby syntax checker using rubocop. diff --git a/checkers/flymake-rest-shellcheck.el b/checkers/flymake-rest-shellcheck.el index a0f1b6ae04..16f7d172ab 100644 --- a/checkers/flymake-rest-shellcheck.el +++ b/checkers/flymake-rest-shellcheck.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-enumerate)) +;;;###autoload (autoload 'flymake-rest-shellcheck "flymake-rest-shellcheck") (flymake-rest-define flymake-rest-shellcheck "A shell script syntax and style checker using Shellcheck. @@ -26,7 +27,7 @@ See URL `https://github.com/koalaman/shellcheck/'." :error-parser (flymake-rest-parse-enumerate (car - (flymake-backend-parse-json! + (flymake-rest-parse-json (buffer-substring-no-properties (point-min) (point-max)))) (let-alist it diff --git a/checkers/flymake-rest-yamllint.el b/checkers/flymake-rest-yamllint.el index cf94d15b23..c04b5327f3 100644 --- a/checkers/flymake-rest-yamllint.el +++ b/checkers/flymake-rest-yamllint.el @@ -8,6 +8,7 @@ (eval-when-compile (require 'flymake-rest-rx)) +;;;###autoload (autoload 'flymake-rest-yamllint "flymake-rest-yamllint") (flymake-rest-define flymake-rest-yamllint "A YAML syntax checker using YAMLLint. See URL `https://github.com/adrienverge/yamllint'."