-
Notifications
You must be signed in to change notification settings - Fork 186
unreachable_code_linter() lints on code in if (FALSE), while (FALSE) #2123
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
Merged
MichaelChirico
merged 32 commits into
r-lib:main
from
MEO265:enhance_unreachable_code_linter
Sep 9, 2023
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d55ba92
Preparation for second condition
MEO265 658903a
Lint code inside `while(FALSE)´ and `if(FALSE)`
MEO265 8cc0aa8
Add code comment
MEO265 506dff2
Lint code inside `else´ after `if(TRUE)`
MEO265 b111b80
Handle inline `if` / `while`
MEO265 69fe7f3
Handle inline in function
MEO265 491816d
Handle inline `else`
MEO265 ba42482
Add additional tests
MEO265 c9fed34
Update docs
MEO265 f466c69
Update examples
MEO265 f62b68e
Explicit integer
MEO265 2653841
Shorter lines
MEO265 a672d0c
Reset end comment flag name
MEO265 4cfabff
Merge branch 'main' into enhance_unreachable_code_linter
MEO265 981294a
~is not reachable~
MEO265 a96ba38
Add to NEWS
MEO265 1034dbb
Add `writeLines(code_lines)`
MEO265 765c9f2
Add "should be removed" to message
MEO265 5605cf1
Union of queries
MEO265 10772b0
Indent `/following-sibling`
MEO265 e7fdbe1
Remove unnecessary qualifier
MEO265 545be60
Replace `lapply` with `vapply`
MEO265 0a1751c
Update NEWS
MEO265 6a474eb
Update doc
MEO265 c381200
Reorder code
MEO265 c8cf79d
Add mixed tests
MEO265 2966723
Add inline tests
MEO265 e3fe04c
Indentation fix
MEO265 f84f70f
Merge branch 'main' of https://github.com/MEO265/lintr into enhance_u…
MEO265 429abb5
merge NEWS bullets
MichaelChirico a8f7098
object naming consistency
MichaelChirico a48aedc
tidy up tests
MichaelChirico File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.