Set Access property explicitly #51
Closed
rvanbekkum
started this conversation in
New Rule
Replies: 2 comments 12 replies
-
maybe a duplicate of #27 ? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I will remove Page and XML Port as it is not supported for this property. Should I also add table fields? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be helpful if a code analysis rule could give a warning on setting the
Access
property explicitly.This holds for all object types where this property can be added.
I think the default severity could be set to
Disabled
, as it is not something everyone might want to get warnings about, but it would be nice to make developers aware of the possibility of changing it from public to something else, have them think about the accessibility of the objects they create: "should these objects actually be part of the public API?"Beta Was this translation helpful? Give feedback.
All reactions