emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-bloc


From: Ihor Radchenko
Subject: Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]
Date: Wed, 05 Jun 2024 18:59:57 +0000

Suhail Singh <suhailsingh247@gmail.com> writes:

> Ihor Radchenko <yantar92@posteo.net> writes:
>
>> There is currently no such way. Although, it would be nice to have such
>> a feature. Patches welcome!
>
> See attached.

Thanks!

> +;;;###autoload
> +(defun org-lint-remove-checker (name &rest names)
> +  "Remove checker(s) from linter.
> +NAME is the unique check identifier, as a non-nil symbol.  NAMES
> +are additional check identifiers to be removed."
> +  (let ((removelist (cons name names)))
> +    (setq org-lint--checkers
> +          (seq-remove (lambda (c) (memq (org-lint-checker-name c) 
> removelist))
> +                      org-lint--checkers))))

This would work, but it modifies the checker list destructively.

What about introducing some kind of selector variable instead?

Something like

org-lint-default-selector
= '((not misspelled-export-option) :categories export :trust high)

Then, we can make `org-lint' accept ARG to have this
`org-lint-default-selector' format, in addition to currently supported
list of checker names.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]