Skip to content

Consider a global analyzer view for internal call chains and only annotate at the top level #2740

@LakshanF

Description

@LakshanF

From the PR conversation,

And to me it seems flawed there, too. If I have a call A->B->C->D, I annotate A as "unconditionally suppress this diagnostic", and B/C/D are only reachable from A, it seems wrong to me that we then still require the developer to annotate B/C/D in order to avoid warnings. I'm trying to understand if there's a good technical argument for requiring the developer to still do that busy work and we fundamentally believe it's important that they should, or if this is a technical limitation where we'd like to avoid their having to do it but we can't (or can't yet).

Although there is some value in each API declaring via annotation some challenges it has with its execution environment (ex. platform specific like only works on Windows or calls a method that relies on runtime code generation and therefore not suitable for native aot application), it can get tedious for developers to annotate their library on all internal call chain nodes when its suppressed on a top level node (generally at public API level). In these cases, it should be only annotated at the top node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions