PowerShell / PowerShell/PSScriptAnalyzer
Implementing interface in PowerShell class does not warn about non-implemented interface members
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
System Details
System Details Output
### VSCode version: 1.47.3 91899dcef7b8110878ea59626991a18c8a6a1b3e x64
### VSCode extensions:
DavidAnson.vscode-markdownlint@0.36.2
eamodio.gitlens@10.2.2
Fudge.auto-using@0.7.15
jchannon.csharpextensions@1.3.1
k--kato.docomment@0.1.17
mhutchie.git-graph@1.25.0
ms-azuretools.vscode-docker@1.4.1
ms-dotnettools.csharp@1.22.1
ms-vscode-remote.remote-wsl@0.44.4
ms-vscode.cpptools@0.29.0
ms-vscode.powershell@2020.6.0
ms-vscode.powershell-preview@2020.7.0
redhat.vscode-xml@0.13.0
streetsidesoftware.code-spell-checker@1.9.0
zhuangtongfa.material-theme@3.8.5
### PSES version: 2.3.0.0
### PowerShell version:
Name Value
---- -----
PSVersion 7.1.0-preview.5
PSEdition Core
GitCommitId 7.1.0-preview.5
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Description
PowerShell class implementing an interface does not create an error if required interface members are not present. There is also not a code action to implement interface.
using namespace System.Management.Automation
class test : IArgumentCompleter
{
}
Expected Behaviour
VS code warns about non-implemented interface members like C#. Code action to implement interface.
Actual Behaviour
VS code does not warn about non-implemented interface members or show code action to resolve.

Attached Logs
Follow the instructions in the troubleshooting docs
about capturing and sending logs.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
IArgumentCompleter を実装する PowerShell クラスの例から始め、PSScriptAnalyzer が不足しているインターフェイスメンバーをどのように報告するかを確認します。診断ログが必要な場合は、トラブルシューティングのドキュメントを使用してください。エディターが未実装のインターフェイスメンバーを警告し、それらを実装するコードアクションを提示すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100