languageserver
languageserver copied to clipboard
`languageserver` doesn't use`.lintr` file?
I want to disable the commented code linter. I have a .lintr file in the home directory with the following code:
linters: linters_with_defaults(
commented_code_linter = NULL
)
However, languageserver still gives diagnostics about commented code. However, manually calling lint(filepath = "myfilename.R") yields the expected results.
The version information is as follows: lintr: ‘2.0.1.9000’, languageserver:‘0.3.13’. I use doom-emacs withEglot (2b87b06) on Mac. I searched the Internet and didn't find a solution. Is there something I missed?
Do you check https://lintr.r-lib.org/articles/lintr.html#the--lintr-file ?
read.dcf("~/.lintr") works?
Do you check https://lintr.r-lib.org/articles/lintr.html#the--lintr-file ?
read.dcf("~/.lintr")works?
This is the result of read.dcf("~/.lintr").

I have the same problem! R seems to be parsing the lintr configuration file correctly, but somehow languageserver is not picking up the new configuration. I have tried to change the .lintr configuration file on both my workspace and my home directory with equal results. There's something I am missing here?