You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a model property is annotated with any attribute the issue is reported on the attribute instead of the property which is confusing.
usingSystem;usingMicrosoft.AspNetCore.Mvc;publicclassModel{publicintValueProperty{get;set;}// Noncompliant[Custom]// NoncompliantpublicintValuePropertyAnnotatedWithCustomAttribute{get;set;}// The issue should be raised here, and not on the attribute above.}publicclassDerivedFromController:Controller{[HttpPost]publicIActionResultCreate(Modelmodel)=>View(model);}publicclassCustomAttribute:Attribute{}
The text was updated successfully, but these errors were encountered:
When a model property is annotated with any attribute the issue is reported on the attribute instead of the property which is confusing.
The text was updated successfully, but these errors were encountered: