Disable StyleCop for specific lines

后端 未结 5 642
無奈伤痛
無奈伤痛 2021-02-05 01:12

We\'re using StyleCop in our C# projects. In some cases we\'d like to avoid the rules though. I know you can add // in the beginning of the

5条回答
  •  一个人的身影
    2021-02-05 01:37

    Decorate your class or method with the following StyleCop attribute:

    [GeneratedCode("Tool Goes Here", "Message Goes Here")]
    

提交回复
热议问题