Where does SAP store the rules?

Aug 2, 2011 at 3:58 PM

I am trying to find where SAP is storing the rules it should check on.

You can edit the settings from within VS but we want to centralize our settings

for all TFS projects. So we would like to know in what way those settings are stored.

Or is there another way to do what we want?

Coordinator
Aug 3, 2011 at 2:21 PM

Basically TFS creates an instance of my SourceAnalysisPolicy class which has a property for the policy settings on it. Since the policy instance is stored on the TFS server and deserialized to the clients, the policy settings are serialized and stored within TFS. How TFS stores the information is out of scope, but in a nutshell that's how it works.

StyleCop works off 1 file per project, this policy allows you to apply a standard set of rules for every project in the TFS team project the policy is applied to.