Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add warning for list_files function and related

オープン
#704 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
tooling

調査の方向性

WordPress および VIP 固有の関数チェック用の既存の PHP_CodeSniffer ルールを特定し、警告がどのように定義およびテストされているかを確認します。提供されている list_files の例を含め、list_files、scandir、opendir に対して期待される警告の動作を確認します。これらの呼び出しが一貫して報告されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Type: Enhancement

What problem would the enhancement address for VIP?

I've recently been doing a code review and noticed the list_files function had no warning attached. On VIP Filesystem, the list_files, scandir, opendir will return empty result sets or false, so we should probably highlight this to customers to avoid unexpected results.

Describe the solution you'd like

A warning should be added when the following functions are coded:

  • list_files - WP
  • scandir - PHP
  • opendir - PHP

What code should be reported as a violation?

$files = list_files( $folder, 2 );

What code should not be reported as a violation?

Additional context

主要言語
PHP
スター
261
フォーク
44
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/VIP-Coding-Standards のほかの issue

Automattic/VIP-Coding-Standards の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。