Skip to content

Error in repeat_linter with unexpected object spacing #2828

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

Open
MichaelChirico opened this issue Mar 10, 2025 · 0 comments
Open

Error in repeat_linter with unexpected object spacing #2828

MichaelChirico opened this issue Mar 10, 2025 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@MichaelChirico
Copy link
Collaborator

lint("       while\n(TRUE) {}", repeat_linter())
# Error in `lint()`:
# ! Linter `linter()` failed in /tmp/RtmpIOiePB/file351e149a61c9c:
# Caused by error in `validate_lint_object()` at lintr/R/lint.R:382:3:
# ! `ranges` must satisfy 0 <= range[1L] <= range[2L] <= 13 (nchar(line) + 1).
# Run `rlang::last_trace()` to see where the error occurred.
@MichaelChirico MichaelChirico added the bug an unexpected problem or unintended behavior label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant