-
Notifications
You must be signed in to change notification settings - Fork 139
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
feat: issue optional warning using '==' for wrapper types #2188
Open
dashorst
wants to merge
26
commits into
eclipse-jdt:master
Choose a base branch
from
dashorst:issue_2176
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
be4d139
feat: issue optional warning using '==' for wrapper types
dashorst 5d9a86e
refactor: ComparingWrapper constant -> 1202
dashorst 33b3448
docs: clarify ComparingWrapper detection of boxed types
dashorst f4e2db9
refactor: use already available severity computation
dashorst 221dcd4
refactor: rename to unlikely equal expression argument type
dashorst dcd55f0
fix: also rename compiler option and document it
dashorst 0784fef
refactor: UnlikelyEqualExpressionArgumenType -> UnlikelyReferenceComp…
dashorst 389bdfb
refactor: add operator to unlikelyReferenceComparison message
dashorst b3140c8
fix: CompilerInvocationTests
dashorst 4b3c272
feat: add support for more reference comparison detections
dashorst 384a8ae
fix: UnlikelyReferenceComparison with null should not warn
dashorst 843cc58
test: Ignore unlikely reference comparison in AssignmentTest
dashorst 2eaf0f3
test: Ignore unlikely reference comparison in CastTest
dashorst ee3fa2d
test: ignore unlikely reference comparison in AutoBoxingTest
dashorst 4372822
test: replace comparingWrapper with unlikelyReferenceComparison in Ba…
dashorst b07953b
fix: change default of unlikelyReferenceComparison to INFO in Irritan…
dashorst 94fd84b
test: ignore unlikely reference comparison in NegativeLambdaExpressio…
dashorst 89ea49a
test: fix BatchCompilerTest (correctly identified unlikely comparison)
dashorst b3cf7e2
refactor: unlikelyReferenceComparison -> dubiousReferenceComparison
dashorst d4eb747
fix: test runner gave errors on non-normalized paths
dashorst df2ef7e
fix: give better test failure messages
dashorst d6393d1
Update warning message from Unlikely -> Dubious
dashorst 3c0d8ac
test: Normalise path differences in assertion
dashorst 2ec884d
refactor: implement review comments
dashorst bf2fec3
clean: remove duplicate entry in CompilerOptions
dashorst 5d54c68
Merge branch 'master' into dashorst:issue_2176
stephan-herrmann 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
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
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
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.
ups, these lines should be swapped. This way the default rendering of the problem will use short names, which is friendlier to the eye :)
Frankly, I don't know off-hand where the long version will be used, but let's just play by that convention.