branch: elpa/flycheck
commit 2fbba640a17a9bd86becbca1aa410525b5831ba1
Author: northyear <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Fix(lintr): make user-defined lintr-linters can be correctly passed to
    the R process.
---
 flycheck.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/flycheck.el b/flycheck.el
index 6f36e2e60c..ccddb51979 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -11016,8 +11016,8 @@ disables caching in case there are problems."
 (flycheck-def-option-var flycheck-lintr-linters "default_linters" r-lintr
   "Linters to use with lintr.
 
-The value of this variable is a string containing an R
-expression, which selects linters for lintr."
+The value of this variable is a string which is the argument `linters = `
+passing to the lintr::lint() function,"
   :type 'string
   :risky t
   :package-version '(flycheck . "0.23"))
@@ -11038,7 +11038,7 @@ See URL `https://github.com/jimhester/lintr'."
                    "library(lintr);"
                    "try(lint(commandArgs(TRUE)"
                    ", cache=" (if flycheck-lintr-caching "TRUE" "FALSE")
-                   ", " flycheck-lintr-linters
+                   ", linters=" flycheck-lintr-linters
                    "))"))
             "--args" source)
   :error-patterns

Reply via email to