-
Notifications
You must be signed in to change notification settings - Fork 45
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
Ability to match on methods/functions/constructors with particular signatures #467
Comments
Do we have customer's asking for this or is this preemptive? if we do have windup rules that have this how many? just want to understand the relative importance of this feature |
That makes sense to add it, I am not at all opposed, was trying to get a sense of how important it is |
This issue is currently awaiting triage. |
This issue is currently awaiting triage. |
This PR adds support for inspecting annotations. :green_circle: Things that can be done now: - Check for annotations that are annotating specific `FIELD_DECLARATION`, `METHOD_DECLARATION` or `TYPE` - Match against `METHOD_DECLARATION` :red_circle: Things that cannot be done **yet**: - Match `location: ANNOTATION` and inspect its values. - Inspect on annotations on `location: CONSTRUCTOR`. Depends on: - konveyor/java-analyzer-bundle#104 Fixes: - #460 - #467 --------- Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
The analyzer should have the ability to match on methods, functions or constructors that are passed a specific argument type, for instance:
would match on:
but not on:
We could either escape the parenthesis of the method call, as done in the yaml example above, or add an additional field, as in:
The text was updated successfully, but these errors were encountered: