REditorSupport / REditorSupport/languageserver
Can't hide "Remove commented code" warning.
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 675
- Forks
- 118
- Avg merge
- 1d 37m
- Merged PRs (30d)
- 11
Description
I am editing .Rmd file in neovim and I get the following message for a commented code line.
Diagnostics:
1. lintr: Remove commented code. [commented_code_linter]
My settings:
r_language_server = {
filetypes = { "r", "rmd" },
settings = {
r = {
lsp = {
rich_documentation = true,
},
},
},
},
.lintr
linters: lintr::linters_with_defaults(
commented_code_linter = NULL
)
Other details:
> nvim --version
NVIM v0.11.0
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the diagnostic in a .Rmd file using the provided Neovim settings and .lintr configuration. Trace how the R language server loads lintr settings for R Markdown files; the issue is done when setting commented_code_linter = NULL suppresses the warning for commented code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, vim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100