Automattic / Automattic/VIP-Coding-Standards

Report on code attempting to set image quality for VIP Go File service to 100

未关闭
#46 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Status: Awaiting feedback Type: Enhancement
主要语言
PHP
星标
261
派生
44
平均合并
19 分钟
30 天内合并 PR
1

描述

We might want to start with something simple, prone to false positives. Eg.: reporting a Warning on every `$var['quality'] = 100;` or `$var['quality'] = '100'`.

贡献指南

打开贡献指南

调研方向

首先检查 VIP-Coding-Standards 中现有的 PHP_CodeSniffer 规则及其测试,以找到报告赋值警告的模式。为将 100 或 '100' 赋给数组键 quality 的 PHP 代码实现覆盖,包括所述的易产生误报的情况。完成的标准是规则能够一致地报告这些赋值,并且相关测试通过。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
tooling
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。