Minor improvements to pass psecio-parse's scan
まだ誰も着手していません。
評価
調査の方向性
c3.php に対して psecio-parse scan を実行し、tests/c3.php で報告された行を確認します。header の連結、論理演算子、in_array の型チェック、readfile に関する5件の指摘を修正し、その後 scan を再実行して、これらの指摘がなくなったことを確認します。
索引モデルが issue の本文から書いたものです。
説明
To run report:
composer global require psecio/parse
~/.composer/vendor/bin/psecio-parse scan c3.php
And its results:
- /var/www/html/tests/c3.php on line 45
'header()' calls should not use concatenation directly
header('X-Codeception-CodeCoverage-Error: ' . str_replace("\n", ' ', $message), true, 500);
For more information execute 'psecio-parse rules SetHeaderWithInput'
- /var/www/html/tests/c3.php on line 69
Avoid using AND, OR and XOR (in favor of || and &&) as they may cause subtle precedence bugs
if (!class_exists('PHP_CodeCoverage') and class_exists('SebastianBergmann\CodeCoverage\CodeCoverage')) {
For more information execute 'psecio-parse rules LogicalOperators'
- /var/www/html/tests/c3.php on line 137
The third parameter should be set (and be true) on in_array to avoid type switching issues
if (in_array('GZ', Phar::getSupportedCompression())) {
For more information execute 'psecio-parse rules TypeSafeInArray'
- /var/www/html/tests/c3.php on line 184
The third parameter should be set (and be true) on in_array to avoid type switching issues
if (in_array('GZ', Phar::getSupportedCompression())) {
For more information execute 'psecio-parse rules TypeSafeInArray'
- /var/www/html/tests/c3.php on line 204
The readfile/readlink/readgzfile functions output content directly (possible injection)
readfile($filename);
For more information execute 'psecio-parse rules Readfile'
- 主要言語
- PHP
- スター
- 73
- フォーク
- 46
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeception/c3 のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Codeception/c3#93 · コメント 5 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Codeception/c3#76 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
Codeception/c3#41 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Codeception/c3#40 · コメント 5 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
Codeception/c3#37 · コメント 3 件 · リアクション 4 件 ·
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
pluginsGLPI/datainjection#673 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
octobercms/october#6130 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
getgrav/grav-plugin-form#656 ·
-
customer-support needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100