Expand Minimize

Consider to make Feature with scope 'Web' or 'Site' hidden

Consider to make Features with scope 'Web' or 'Site' hidden to avoid activation via the UI.

CheckId SPC042104
TypeName MakeFeaturesWithScopeSiteOrWebHidden
Severity CriticalWarning
Type Feature

A Feature with scope 'Web' or 'Site' should be set 'Hidden="TRUE"'. In a shared environment features should be set to hidden unless activation through the web frontend is required in all site collections where the solution is deployed.

To suppress this violation in XML SharePoint code add the following comment right before the XML tag which causes the rule violation. Learn more about SuppressMessage here.

<!-- "SuppressMessage":{"rule":"SPC042104:MakeFeaturesWithScopeSiteOrWebHidden","justification":"Provide reason for suppression here"} -->
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.