PowerShell / PowerShell/PSScriptAnalyzer
Update PSUseCorrectCasing to enforce correct casing of automatic variables
オープン
まだ誰も着手していません。
Area - Rules
Issue - Enhancement
Up-for-Grabs
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
Summary of the new feature
Incorrect case of automatic variables should result in a PSUseCorrectCasing rule violation.
Proposed technical implementation details (optional)
Code using $error should result in a rule violation
Replacement with $Error should be suggested as a fix.
What is the latest version of PSScriptAnalyzer at the point of writing
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、PSUseCorrectCasing ルールと自動変数の処理を見つけます。$error のケースを再現し、その後、誤った大文字小文字の使用が報告され、$Error への置換が提案されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100