Add code formatter and CI/CD linter
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
- 35/100
Hướng nghiên cứu
Start by comparing the dependency, Pint JSON configuration, Composer scripts, and .github/workflows/linter.yml in open-runtimes/executor. Apply the same approach across cache, storage, platform, image, orchestration, and compression. Done means each repository has the requested format and lint commands, matching Pint settings, and a linter workflow running composer lint on pushes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Introduction
Code formatting is a necessary step of development to keep the code readable and maintainable.
It often comes in a pair with a linter, which is an automated process to ensure formatting has been done properly.
Finishing this issue will give you a basic understanding of PHP, Composer (PHP package manager), and GitHub Actions.
Task summary
Your goal is to implement code formatting in the following repositories:
- utopia-php/cache
- utopia-php/storage
- utopia-php/platform
- utopia-php/image
- utopia-php/orchestration
- utopia-php/compression
1. Install and configure Laravel Pint
Install Pint by using Composer, a PHP dependency manager.
Make sure the version for this dependency is set to automatically upgrade minor and patch versions, but not the major version.
If those terms seem new to you, check out Semantic Versioning.
To configure Pint, you use a specific JSON file. Please refer to the Pint documentation to learn more.
Your goal is to configure Pint in all repositories to the same settings. Please set it to the same settings as we used in another one of our open-source repositories open-runtimes/executor.
2. Add commands to run formatting and linting
Set up Composer scripts called format and lint.
The formatting script should apply proper formatting to files when it runs.
Link script should show linting errors when it runs, but should not do changes to files.
If you ever get stuck, you can again refer to open-runtimes/executor, to see how it's been done there.
3. Add GitHub automation
Add GitHub action to run linter (composer lint) on each push, so pull requests run linter as check.
Store new GitHub action in the linter.yml file.
Just like before, if you feel stuck, you can refer to Open Runtimes Executor to validate your approach.
- Ngôn ngữ chính
- PHP
- Star
- 33
- Fork
- 23
- 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 utopia-php/cache
-
codeday
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
utopia-php/cache#47 · 1 bình luận ·
-
🚀 Feature: Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
utopia-php/cache#36 ·
Tất cả issue của utopia-php/cache
Issue tương tự
-
jira-created
Độ 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 70/100
nunomaduro/phpinsights#745 ·
-
status/awaiting_triage
Độ 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
WordPress/plugin-check#1486 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
az-digital/az_quickstart#6019 ·