visual studio 2010 - CodeAnalysis and CodeContracts combination -


i got contractclassfor generates low of warnings code analysis.

example:

microsoft.usage : parameter 'pagenumber' of 'idocumentservicecontracts.getitems(printqueue, int, int)' never used. remove parameter or use in method body.

do have use supressmessage each parameter in each method in contracts class? or possible rid of warnings in way? want warnings classes except contract classes.

a simple way disable code analysis entirely contract classes, putting [generatedcode] attribute on them. it's not right semantics job.

suppressmessage not in scenario, since can't apply classes. you'd have apply each method, , gets messy.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -