Replies: 4 comments 8 replies
-
Looks like we might need a dedicated section on customizing linting settings in project wiki As for now, you could disable linting completely by setting However, you won't see syntax errors when the code simply cannot be parsed. I assume you need at least see syntax errors. So you might need a customized global
Then lintr will by default only show parse errors and no other linters will be used in linting. You could add some linters to the config file according to https://lintr.r-lib.org/articles/lintr.html#configuring-linters. |
Beta Was this translation helpful? Give feedback.
-
A new wiki page https://github.com/REditorSupport/vscode-R/wiki/Code-linting is added. |
Beta Was this translation helpful? Give feedback.
-
I think we should revaluate this approach. I've been scouring as many issues as I can regarding this (even opening ones of my own) and generally I've seen the following:
I think suggesting end users who -from what I've seen- are mostly PhDs, economists, etc, with editing their own extension installation makes it a prone environment for the first type of issue (bricking your installation by accident), or would incentivize them to jump to a plug-and-play solution like R-studio. When I opened an issue on the lintr package regarding this, they mentioned that this vs code extension ships somewhat customized defaults,( perhaps due to compatibility issues ) so it would not be a stretch to ship defaults with many of these "overbearing linting comments" turned off, and add in the wiki a section to inform the user which linting and styling is off, how to turn it back on, and also how to further customize the linting options (just like it currently is on the wiki). I think the configuration posted by @albert-ying here #1400 (comment)_ is a good starting point. |
Beta Was this translation helpful? Give feedback.
-
I've researched how other language extensions handle linting and found the following:
Given this I think the best that could be done to tackle this issue is:
Since these are simple documentation changes I'm willing to PR them, but since it's also a design choice/image choice I'd work with approval from @eitsupi who has worked on most of the linting integration. |
Beta Was this translation helpful? Give feedback.
-
Good afternoon,
I have been using R for a while, and have moved to using VSCode to streamline the use of Python and Julia too. I understand the purpose of linting and lintr. However, when I am just trying to make something work, it is distracting and I can't focus with all of those squiggly lines.
I have seen recommendations for going to the extension settings or typing in a line to make using lintr false. I don't know where those options even are and some of them I can't get to work. Is there a way of just turning off or uninstalling linting in general, I can run those later if I really want to.
Thank you,
Beta Was this translation helpful? Give feedback.
All reactions