Minor improvements to pass psecio-parse's scan
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Chạy psecio-parse scan trên c3.php và kiểm tra các dòng được báo cáo trong tests/c3.php. Xử lý năm phát hiện liên quan đến việc nối header, các toán tử logic, kiểm tra kiểu của in_array và readfile, sau đó chạy lại scan để xác nhận rằng các phát hiện này đã biến mất.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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'
- Ngôn ngữ chính
- PHP
- Star
- 73
- Fork
- 46
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Codeception/c3
-
New idea for remote CC Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Codeception/c3#93 · 5 bình luận ·
-
remote coverage result all 0 Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Codeception/c3#76 · 1 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Codeception/c3#41 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Codeception/c3#40 · 5 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Codeception/c3#37 · 3 bình luận · 4 reaction ·
Tất cả issue của Codeception/c3
Issue tương tự
-
tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
OpenConext/OpenConext-engineblock#2122 ·
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/safe-publish#594 ·