dotnet/roslyn

Get naming warnings on parameters when implementing indexed properties

オープン

#41,531 opened on 2020/02/10

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEBugIDE-CodeStylehelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

Version Used:

I think this is occurring due to the indexed property, this particular case came from: https://docs.microsoft.com/en-us/dotnet/api/vslangproj.projectproperties.extender?view=visualstudiosdk-2017.

Steps to Reproduce:


    Public Class ProjectProperties

        Public Property Extender(ByVal ExtenderName As String) As Object
            Get
                Return Nothing
            End Get
        End Property    

    End Class

 
    public partial class VSProject : VSLangProj.ProjectProperties
    {
        public object get_Extender(string ExtenderName) => throw new NotImplementedException();
    }

Expected Behavior: No warning

Actual Behavior:

Severity	Code	Description	Project	File	Line	Suppression State
Error	IDE1006	Naming rule violation: The first word, 'ExtenderName', must begin with a lower case character	Microsoft.VisualStudio.ProjectSystem.Managed.VS	C:\project-system\src\Microsoft.VisualStudio.ProjectSystem.Managed.VS\ProjectSystem\VS\Automation\VsProject_VsLangProjectProperties.cs	181	Active

コントリビューターガイド