Vannevelj / VSDiagnostics

A collection of static analyzers based on Roslyn that integrate with VS
GNU General Public License v2.0
65 stars 16 forks source link

Implement PureAnnotatedMemberCreatesStateChange #602

Open Vannevelj opened 8 years ago

Vannevelj commented 8 years ago

Show a warning/error when a write happens to an object outside of local scope. We can't account for all cases (can't look inside what other calls in a different assembly do) but we can see how far we get. At the least we can see if any writes happen in the current method/property/ctor/whatever to a field/property somewhere else.

https://msdn.microsoft.com/en-us/library/system.diagnostics.contracts.pureattribute(v=vs.110).aspx