-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Labels
Description
Describe the bug
Missing terminal newline lint is not reported in VSCode Problem Pane
To Reproduce
- Create a new file (
Ctrl+N) - Select the R language (
Ctrl+K Mand selectR) - Write
x <- 1in the editor - Do not insert a terminal newline
- Save the file as
test.R(Ctrl+S) - The Problems Pane (
Ctrl+Shift+M) reports thatNo problems have been detected in the workspace lintr::lint()reports the lint as expected:
lintr::lint(
filename = "test.R",
linters = lintr::trailing_blank_lines_linter(),
parse_settings = FALSE
)
# xxx/test.R:1:7: style: [trailing_blank_lines_linter] Add a terminal newline.
# x <- 1
# ^Can you fix this issue by yourself? (We appreciate the help)
No
Expected behavior
The lint should be reported in VSCode Problem Pane.
Environment (please complete the following information):
- OS: Windows 11
- VSCode Version: VSCodium 1.107.18627
- R Version: 4.4.0
- vscode-R version: 2.86