Implement exclusion of rules for the check results

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
php
領域
tooling

調査の方向性

まず、関連する issue #769 と、この issue にある除外例を確認します。完了には、合意された拡張可能なルール形式と、CLI または管理処理でそれらの除外を適用するための定義済みの方法が必要です。現時点では、実装ファイルやテストは特定されていません。

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

説明

[Type] Enhancement Infrastructure

Related to https://github.com/WordPress/plugin-check/issues/769

In actual this is more advanced form of above issue.

For application of PCP checks to the existing plugin in the directory, we need a mechanism for excluding certain error codes in certain files or directories. This is required because it is not possible to apply all PCP rules to the existing plugins without breaking those.

Few cases:

  1. Exclude single error code in general:

Example:

mismatched_plugin_name
  1. Exclude error code in certain files:

Example:

PluginCheck.CodeAnalysis.Offloading
-  /folder-one/file-1.php
-  /folder-one/file-2.php
-  /folder-two/sub-folder/file-2.php
  1. Exclude error code in certain folders:

Example:

PluginCheck.CodeAnalysis.Offloading
-  /folder-one/
-  /another-folder/sub-folder/
  1. Excluding could also be combination of 2 and 3.

Example:

PluginCheck.CodeAnalysis.Offloading
-  /folder-one/file-1.php
-  /folder-another/
-  /folder-two/sub-folder/

A set of rules would be assigned for each plugin which will be reviewed and approved by the reviewer manually.

Issue is here for tracking and gathering ideas and feedbacks regarding the implementation.

Questions:

  1. In what format will we keep these rules?
  2. How to make rules extendable and future-proof?
  3. How will CLI/admin take these rules in the processing of the output?
主要言語
PHP
スター
365
フォーク
135
平均マージ
1日 8時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

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

WordPress/plugin-check のほかの issue

WordPress/plugin-check の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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