emacs-grammarly / flycheck-grammarly

Grammarly support for Flycheck
GNU General Public License v3.0
127 stars 8 forks source link

How can we limit messages to only errors and warnings? #8

Closed swarnendubiswas closed 3 years ago

swarnendubiswas commented 3 years ago

The grammarly checker shows messages from different categories: errors, warnings, and info. On checking the code on the Grammarly website, I get to see only the errors. I have a free account, so the other features are limited.

How can we limit the information listed by grammarly checker to only say errors or errors and warnings, and leave out infos? Thanks.

jcs090218 commented 3 years ago

Hi, the mapping of messages are mapped inside this package. See

https://github.com/emacs-grammarly/flycheck-grammarly/blob/8321fc98a0809cad17e37ca924d364423c37b8c0/flycheck-grammarly.el#L182

Right now, there is no severity level mapping customization. Any suggestions are welcome! :)

swarnendubiswas commented 3 years ago

I tried the following to hide info messages but it does not help.

  (add-hook 'markdown-mode-hook (lambda()
                                  (setq flycheck-error-list-minimum-level 'warning)))
jcs090218 commented 3 years ago

Interesting... I never used variable flycheck-error-list-minimum-level before. I think you might want to ask the upstream package flycheck.

jcs090218 commented 3 years ago

Close this issue now due to the upstream question.

Feel free to reopen this if necessary.