PowerShell / PowerShell/PSScriptAnalyzer
Flag usage of >< etc when -gt, -lt, etc should be used
オープン
まだ誰も着手していません。
Issue-Enhancement
Up-for-Grabs
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
Prerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been reported.
Summary
I would like the Visual Studio Code editor to flag usage of >< !=, etc as possibly incorrect if used in a conditional.
I go back and forth between languages and I inadvertently use C#/TypeScript syntax in conditionals and then it takes a while to find my error. An error/warning/hint that I am probably using the incorrect syntax would be great.
Proposed Design
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず issue #1900 と、PowerShell の条件式を検査する PSScriptAnalyzer の analyzer エントリポイントを確認します。payload では特定のファイルやテストは指定されていません。条件内でこれらの演算子を診断がどのように区別すべきかを判断し、意図した警告またはヒントを示すカバレッジを追加して、analyzer が有効な構文を指摘せずにそれを報告することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell, vscode
- 領域
- devtools, tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100