[analyzer] Migrates to `contexMessages` from `analyzer_testing` package
This also includes some small refactorings for parameter names to start using the diagnostic wording instead of error. As well as a small change to `contextMessage` and related to use a list of `Pattern`s instead of a single `String` for better matching.
In future CLs, the TODOs added in this one will be addressed so we can fully migrate this. Added them because of the size of the CL.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Auto-Submit | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
textContains: [
This seems a little odd. The whole point of `textContains` is to test for a piece of the message rather than the whole message so that messages can be updated without breaking tests.
In this case, for example, the part we (probably) care about is that the class name (`RequiresNonEmptyList`) is displayed. (We can't really tell the difference between what we care about and what was accidentally included, but that's my guess.)
It would be nice to minimize the text being compared, but unless Paul or Konstantin cares I'm not going to stop the CL from landing because of it.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Auto-Submit | +1 |
textContains: [
This seems a little odd. The whole point of `textContains` is to test for a piece of the message rather than the whole message so that messages can be updated without breaking tests.
In this case, for example, the part we (probably) care about is that the class name (`RequiresNonEmptyList`) is displayed. (We can't really tell the difference between what we care about and what was accidentally included, but that's my guess.)
It would be nice to minimize the text being compared, but unless Paul or Konstantin cares I'm not going to stop the CL from landing because of it.
Yes, I agree this is a bit weird. But this text was here before my changes. I simply moved it to the (now/new) single place that checks for the text. It was previously checking for the whole text (the only existing option), I'm deprecating the old `text` exactly because of this, so we can make these checks more specific to the changes we make.
I didn't change this because that would be yet again moving away from this CLs purpose. In a future change we can surely make this smaller.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
required List<ExpectedDiagnostic> libraryDiagnosticss,
Should be `libraryDiagnostics`.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Auto-Submit | +1 |
required List<ExpectedDiagnostic> libraryDiagnosticss,
Felipe MorschelShould be `libraryDiagnostics`.
Fix applied.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Commit-Queue | +1 |
lgtm
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Just found this in my backlog. The analyzer_testing and linter changes lgtm. I'm not sure whether there's still interest in landing this.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Just found this in my backlog. The analyzer_testing and linter changes lgtm. I'm not sure whether there's still interest in landing this.
Yes, please!
I forgot this had not landed. Probably because I got two +1. I've just pushed a new patchset with the required rebase.
Thanks a lot!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Felipe MorschelJust found this in my backlog. The analyzer_testing and linter changes lgtm. I'm not sure whether there's still interest in landing this.
Yes, please!
I forgot this had not landed. Probably because I got two +1. I've just pushed a new patchset with the required rebase.
Thanks a lot!
Gerrit can show you a list of all the open CLs you have. It might be worthwhile looking those over.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Commit-Queue | +2 |
lgtm
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Auto-Submit | +1 |
lgtm
We had yet another reference to the old `ExpectedError` so I had to rebase and fix that. If we could land this soon we could probably avoid this again. Thanks!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Commit-Queue | +2 |
lgtm
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[analyzer] Migrates to `contexMessages` from `analyzer_testing` package
This also includes some small refactorings for parameter names to start using the diagnostic wording instead of error. As well as a small change to `contextMessage` and related to use a list of `Pattern`s instead of a single `String` for better matching.
In future CLs, the TODOs added in this one will be addressed so we can fully migrate this. Added them because of the size of the CL.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |