-
Notifications
You must be signed in to change notification settings - Fork 187
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
Linter for explicit/implicit returns #2271
Merged
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
bc9f197
feat: Add `return_linter`
MEO265 2a54612
feat: Dont lint deterministically returning control statements
MEO265 293e4a2
test: Accept false negatives
MEO265 842a006
feat: Do not lint stop
MEO265 cda5823
feat: Refined lint of `switch`
MEO265 c091d1f
test: Add line tests
MEO265 067a33d
doc: Mark as configurable
MEO265 94955ed
mnt: Add terminal new lines
MEO265 8a27435
Merge branch 'main' into feature/return_linter
MEO265 ae5304f
incorporate new test cases, improve lint message, begin work to recon…
MichaelChirico 336e9a5
drop in the other XPath
MichaelChirico a9c8801
catch OP-LAMBDA, typos, fix lint metadata
MichaelChirico a4a18e3
remove vestigial, clean up repeated var usage
MichaelChirico 23b0fdb
Merge remote-tracking branch 'origin/main' into feature/return_linter
MichaelChirico 63741c3
progress on rectifying disagreements
MichaelChirico 580b935
more progress, simplifying XPath
MichaelChirico 48eaab0
more test+logic adjustments, now passing tests
MichaelChirico c6b11be
simplify implicit XPath
MichaelChirico ee5eed3
test code style
MichaelChirico 0826721
Merge branch 'main' into feature/return_linter
MichaelChirico bafe717
add simple examples
MichaelChirico f58d408
set as a default linter
MichaelChirico 514927d
test-defaults
MichaelChirico b3ac25f
style guide ref in doc
MichaelChirico f8d958d
finish TODOs
MichaelChirico de3e9ce
NEWS entry
MichaelChirico 95edca4
Merge branch 'main' into feature/return_linter
MichaelChirico 3810968
Merge branch 'main' into feature/return_linter
MichaelChirico 9bb7d3a
fix merge
MichaelChirico 414257b
feat: Add parameters for exceptions
MEO265 8da36f4
feat: Add parameter for Runit
MEO265 5d67b25
feat: Lint `warning`, `message`, and `stopifnot`
MEO265 0b95fc7
mnt: Add terminal newline to tests
MEO265 4b09754
doc: Fix doc of `additional_side_effect_func`
MEO265 ca945bc
Merge branch 'main' into feature/return_linter
MichaelChirico f7afa54
Merge branch 'feature/return_linter' of github.com:MEO265/lintr into …
MichaelChirico 91820bd
drop runit support for now
MichaelChirico e1961d5
style
MichaelChirico 5248af9
rename parameter to accept "implicit"/"explicit"
MichaelChirico 8612b70
rename other parameters
MichaelChirico aff7765
corresponding changes to tests
MichaelChirico 28b51f4
dont link R4.0+ tryInvokeRestart, which is in linked page already anyway
MichaelChirico cb2d9c4
Merge branch 'main' into feature/return_linter
MEO265 8a0ea77
Merge branch 'main' into MEO265-feature/return_linter
AshesITR 63eba24
review and fixes
AshesITR f89c8bc
document()
AshesITR 325205c
Merge branch 'main' into feature/return_linter
AshesITR 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 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 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 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
oh! in some commit I added an explicit return here. Must not have survived. I see someone (possibly me?) added a
return_linter()
test case to this file in another commit.