StyleCop/FxCop 10 - How do you properly suppress a message only on a namespace level?

前端 未结 3 1576
傲寒
傲寒 2021-01-11 17:24

FxCop 10 is complaining about the following:

using XYZ.Blah; //CA1709 - \"XYZ\"
using Xyz.Blah; //No complaint.

using XylophoneSuperDuperLongFullName.Blah;          


        
3条回答
  •  失恋的感觉
    2021-01-11 17:37

    If you were checking names via StyleCop, you could use StyleCop+ (custom rules) which supports configurable abbreviations list.

提交回复
热议问题