Skip to content

WFO1000 Analyzer: False positives on static properties of components #13206

Description

@KlausLoeffelmann

The WFO1000 security analyzer flags static properties of components, which are not used for serialization. This results in false positives.

Example:

public class CustomControl2 : Control 
{
    public static string? Value1 { get; set; }
    public static string? Value2 { get; private set; }
}

Impact:
This affects custom controls and generates unnecessary warnings, hindering productivity.

Replaces a part of the Bug of #12476.

Metadata

Metadata

Labels

area-Analyzers/CodeFixesA Roslyn Analyzer is either needed for the context, needs to be scope extended or fixed.

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions