Introduce Phing as build tool for code quality pipeline
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- php
- Lĩnh vực
- build-system, testing
Hướng nghiên cứu
Start by reading the existing Makefile and GitHub Actions workflow, then check the Composer dependencies and available PHPCS, PHPStan, and PHPUnit commands. Decide how Phing should fit the existing build setup and whether the open questions need maintainer input. Done means a documented Phing setup that runs the agreed quality checks consistently.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
Currently there is no automated build pipeline for code quality checks. Running lint, static analysis and tests manually is error-prone and inconsistent across contributors.
Proposal
Introduce Phing as the build tool to orchestrate tasks like:
- PHP_CodeSniffer (PHPCS) for coding style
- PHPStan for static analysis
- PHPUnit tests
A build.xml could look like:
<project name="openapi-php-sdk" default="check">
<target name="check" depends="lint,test"/>
<target name="lint">
<exec command="./vendor/bin/phpcs src/ --standard=PSR12" passthru="true" checkreturn="true"/>
</target>
<target name="test">
<exec command="./vendor/bin/phpunit" passthru="true" checkreturn="true"/>
</target>
</project>
Open questions
- Should we enforce PSR-12 strictly or allow some exceptions (e.g. trailing commas)?
- Do we integrate Phing into the existing
Makefileor replace it entirely? - Should Phing targets also run inside the GitHub Actions workflow?
- Ngôn ngữ chính
- PHP
- Star
- 20
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 openapi/openapi-php-sdk
-
Improve PHPDoc Consistency Across the CodebaseCó thể làm lại được @Seraphim200001 đã nhận 140 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
openapi/openapi-php-sdk#36 · 3 bình luận ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
openapi/openapi-php-sdk#34 ·
-
good first issue question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
openapi/openapi-php-sdk#33 · 2 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
openapi/openapi-php-sdk#32 ·
-
help wanted question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
openapi/openapi-php-sdk#31 ·
Tất cả issue của openapi/openapi-php-sdk
Issue tương tự
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 4 ngày
-
feature request
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Automattic/blocks-engine#2803 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hestiacp/hestiacp#5798 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug Component: HTTP Component: Telemetry
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100