REditorSupport / REditorSupport/languageserver

`languageserver` doesn't use`.lintr` file?

Open
#557 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
675
Forks
118
Avg merge
1d 37m
Merged PRs (30d)
11

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the language server's diagnostics with the manually invoked lint(filepath = "myfilename.R") entry point, using the reported lintr and languageserver versions. Trace how the home-directory .lintr configuration is handled and verify that disabling commented_code_linter also suppresses those diagnostics in languageserver.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.