-
Notifications
You must be signed in to change notification settings - Fork 195
prefix [linter_name] to all human-readable output formats #1363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
R/actions.R
Outdated
| "file=%s,line=%s,col=%s", x$filename, x$line_number, x$column_number | ||
| ) | ||
| cat(sprintf( | ||
| "::warning %s::%s,%s\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not adjust the template instead?
| expect_equal(marker1$markers[[1L]]$line, lint1[[1L]]$line_number) | ||
| expect_equal(marker1$markers[[1L]]$column, lint1[[1L]]$column_number) | ||
| expect_equal(marker1$markers[[1L]]$message, lint1[[1L]]$message) | ||
| expect_equal(marker1$markers[[1L]]$message, paste0("[", lint1[[1L]]$linter, "] ", lint1[[1L]]$message)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we really need some better test helpers... really hard to tell what the impact of the change is exactly.
something like expect_lint_output(x, "...", rstudio = TRUE), where we do some trim_some()-like logic on "..." to maximize readability would make it super clear to the test reader and super easy for the test writer.
(for another day...)
|
would you mind attaching a screenshot of the new output if you get a chance? i haven't had a chance to pull & install to check myself |
97faec4 to
49c5dca
Compare
|
Code changes LGTM, but I've a terrible eye for design-y stuff. Let's get a third pair of eyes on it... @renkun-ken or @jameslamb care to weigh in? |
I'm not familiar enough with the internals of |
|
no need to know internals, only asking about the end-user appearance part. and good enough for me! |

fixes #1357
Didn't touch
checkstyle_output().CC @renkun-ken Not sure if this is relevant to the vscode linter support.