PowerShell / PowerShell/PSScriptAnalyzer
Update PSUseCorrectCasing to enforce correct casing of language keywords
オープン
まだ誰も着手していません。
Issue - Enhancement
Up-for-Grabs
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 414
- 平均マージ
- 13時間 1分
- マージ済み PR(30日)
- 2
説明
Summary of the new feature
Incorrect case of language keywords should result in a PSUseCorrectCasing rule violation.
A list of keywords can be obtained by reflection:
[ref].Assembly.GetType('System.Management.Automation.Language.Tokenizer').
GetDeclaredField('_keywordText').
ForEach{ $PSItem.GetValue($null) }
elseif
if
else
switch
foreach
from
in
for
while
until
do
try
catch
finally
trap
data
return
continue
break
exit
throw
begin
process
end
dynamicparam
function
filter
param
class
define
var
using
workflow
parallel
sequence
inlinescript
configuration
public
private
static
interface
enum
namespace
module
type
assembly
command
hidden
base
What is the latest version of PSScriptAnalyzer at the point of writing
1.19.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
PSUseCorrectCasing ルールと、Tokenizer のリフレクションによって取得された PowerShell キーワード一覧から始めます。現在このルールが大文字と小文字の違反をどのように検出しているかを確認し、次に一覧にあるキーワードをカバーして、大文字と小文字が正しくない言語キーワードが報告され、正しいものが受け入れられることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100