-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Is your feature request related to a problem? Please describe.
The default linter (based on the tiydverse style guide IIRC) is too aggressive IMO. Users get low-key scolded for simple and acceptable actions like using = for assignment or the use of single quotation marks.
While users can edit their ~/.lintr files to change these settings locally, I do think we can be less aggressive out of the gate. I see some linter settings have already been disabled here. Correction: As @eitsupi correctly points out, the linked .lintr file is just relevant for this repo itself (i.e., the dev experience) and does not affect the end-user’s linting behaviour when running the extension.
Describe the solution you'd like
Here's what my own .lintr file looks like:
linters: linters_with_defaults(
line_length_linter = NULL, # note: vscode-R default is 120
cyclocomp_linter = NULL, # same as vscode-R
object_name_linter = NULL, # same as vscode-R
object_usage_linter = NULL, # same as vscode-R
commented_code_linter = NULL,
assignment_linter = NULL,
seq_linter. = NULL,
no_tab_linter. = NULL,
semicolon_linter = NULL,
single_quotes_linter = NULL
)
I don't want to suggest that all of my choices should become the default, but I do think some are probably a good idea (e.g., the aforementioned assignment_linter and single_quotes_linter).
Describe alternatives you've considered
Add a wiki page on linting. (Can still do in conjunction, but again I think we should permit certain behaviour out of the gate.)