I'm using StyleCop and want to suppress some warnings which do not conform to my style. I like to solve 1) pressing the in-line code and pressing 2) global settings. I have searched the Internet but how to repress? For method 1), they said to add lines to [assembly: suppressmessage ("Microsoft.Design", "SA1202: All public methods should be kept after all public methods"). Scope = "name space", target = "Consus.Client.ClientVaultModule.Services.OnlineDetection")]
But they do not say where and where to be used in the name space for. 2) For the method, they asked to use the GlobalSuppress file, but it does not seem easy to find the way to do it in the moment to search.
Please help.
All private methods in [edit] should be kept after all public methods which is disturbing my related code in areas since the group: in my case, I SA1202 is warning. I just want to suppress the warning for some of them in some ways
What do you need here :. [SuppressMessage ("Microsoft Style Type. CSRP. Ordering Rule", "SA1202: Elementsmixed Endardbusiness Aways")]
Comments
Post a Comment