分析器反馈严重级别为 explained in the documentation .但在我眼里silent
和 none
严重性级别似乎都具有相同的含义 - “我不希望检查此规则”:
对于 none
:
Suppressed completely.
对于
silent
:Non-visible to user. The diagnostic is reported to the IDE diagnostic engine, however.
VS2019“上报IDE”到底有什么作用,在什么场景下更喜欢
silent
在none
?
最佳答案
我想silent
在编辑器中显示为“三个点”或幻影文本,而 none
没有出现。我可能记得这在过去并不一致,但它似乎发生在 Visual Studio 16.10.0 中。我喜欢 Imre's suggestions .
这好像是:
suggestion
, error
, 和 warning
显示在编辑器和错误列表中。 silent
仅在编辑器中显示。 none
两者都没有出现。 关于visual-studio - 何时使用 `silent` 代码分析严重性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58914726/