How to suppress a StyleCop warning?

后端 未结 12 1382
心在旅途
心在旅途 2020-11-27 18:23

I\'m using StyleCop and want to suppress some warning which does not suit my style. I prefer to have solution for

1) in-line code suppressing
2) global setting

12条回答
  •  孤独总比滥情好
    2020-11-27 18:57

    You can disable the rules you don't want in Settings.StyleCop file, which is in the project root folder. You will need the namespace that contains the rule, which can be found here: http://stylecop.soyuz5.com/StyleCop%20Rules.html

    Settings.stylecop file code for your reference:

    
      
        
          
            
              
                False
              
            
          
          
        
      
    
    

提交回复
热议问题