2

私は Stylecop 4.7.31 を使用しようとしています インターフェイスが宣言されているプロジェクトがあります:

public interface IRmlManager
{
    /// <summary>
    /// Adds the notification.
    /// </summary>
    /// <param name="notificationData">The notification data.</param>
    void AddNotification(RmlNotificationData notificationData);
}

および別のプロジェクトで、インターフェイスの実装:

public class RmlManager : IRmlManager
{
........
    /// ???
    void AddNotification(RmlNotificationData notificationData);
........
}

??? の代わりに使用<inheritdoc />すると、Stylecop はそれを無視してエラーを生成します。

BusinessLogic\RmlManager.cs(39,1): error : SA1604: The documentation header must have a summary tag.
BusinessLogic\RmlManager.cs(39,1): error : SA1611: The documentation header must contain param tags matching the element's parameter list.

私が間違っていることについて何か考えがありますか?Google によると、Stylecop はこのタグをおよそ 4.1 バージョンからサポートしています。

4

1 に答える 1

0

言いたくないのですが、Inheritdoc はhttp://stylecop.codeplex.com/workitem/6637に従って StyleCop でサポートされています。

したがって、これは特定のインスタンスであると想定することしかできません (つまり、inheritdoc を理解していません。この特定の例はバグの動作です)。

inheritdoc が一般的に受け入れられていることを考えると、stylecop 固有のリスト ( http://stylecop.codeplex.com/discussionsの codeplax のサイトでディスカッションを開く) で質問し、場合によっては再現ケースを作成してバグを開くことをお勧めします。

于 2012-06-14T21:14:33.993 に答える