dotnet/roslyn

Incorrect IDE0015 "use framework type" recommendation for built-in type in XML doc comment.

開放

#21,758 建立於 2017年8月27日

 (5 則留言) (0 個反應) (0 位負責人)C# (4,257 個分叉)batch import
Area-IDEBugFeature - IDE0015Feature - IDE0049help wanted

倉庫指標

星標
 (20,414 顆星)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 256 個 PR)

描述

Version Used: VS 15.4.0 Preview 1.0

Steps to Reproduce:

  1. Use an .editorconfig file with the following settings:
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = false:suggestion
  1. Add the following method to a class:
/// <summary>
/// Runs <see cref="Test(Action{int})"/> with <see cref="Int32.MaxValue"/>.
/// </summary>
public void Test(Action<int> action)
{
    action(Int32.MaxValue);
}

Expected Behavior: No code style recommendations.

Actual Behavior: The first int in the doc comment is marked with IDE0015: Use framework type, when instead it should be treated similarly to the int in the method signature, i.e. no suggested style change.

貢獻者指南