Skip to content

languageserver does not respect lintr file #700

@grimmjulian

Description

@grimmjulian

Hello,

I want to use tabs as indentation. I have the following file test.R with tabs as indentation:

result <- map_lgl(
	xs,
	function(x) {
		is.logical(x) && length(x) == 1L && !is.na(x)
	}
)

Also I added the following .lintr file:

linters: linters_with_defaults(
    line_length_linter = line_length_linter(120L),
    whitespace_linter = NULL,
    indentation_linter = NULL
  )

The file structure basically is the .lintr file and test.R in a folder.

lintr::lint_dir() does not return any problems. But when use the languageserver in Neovim, the whitespace_linter complains. Do I need to set further options?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions