Skip to content
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

Fix DotVVM02 warning on overriden ignored property #1858

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Conversation

exyi
Copy link
Member

@exyi exyi commented Sep 18, 2024

We now ignore override properties if the base has JsonIgnore or Bind(None) attribute.

Technically, the patch introduces a false negative if the base is ignored and the derived isn't. However, DotVVM behavior regarding this is complex (you cannot override JsonIgnore, only Bind(None)...) and given the rarity of virtual properties, I don't want to unnecessarily complicate the analyzer.

fix #1784

I'd release this as a 4.3 patch

We now ignore override properties if the base has JsonIgnore
or Bind(None) attribute.

Technically, the patch introduces a false negative if the base
is ignored and the derived isn't. However, DotVVM behavior
regarding this is complex (you cannot override JsonIgnore,
only Bind(None)...) and given the rarity of virtual properties,
I don't want to unnecesarily complicate the analyzer.

fix #1784
@exyi exyi added the analyzers issues regarding the Roslyn analysers label Sep 18, 2024
@exyi exyi added this to the Version 4.3 milestone Sep 18, 2024
@exyi exyi merged commit d92e70b into main Oct 10, 2024
13 of 15 checks passed
@exyi exyi deleted the fix-DotVVM02-override branch October 10, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzers issues regarding the Roslyn analysers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change behaviour of DotVVM02 warning for overrides
2 participants