Add code formatter and CI/CD linter
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- PHP
- スター
- 33
- フォーク
- 23
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
utopia-php/cache のほかの issue
-
codeday
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
utopia-php/cache#47 · コメント 1 件 ·
-
🚀 Feature: オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
utopia-php/cache#36 ·
utopia-php/cache の issue をすべて見る
似ている issue
-
tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
UX
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MagnaCapax/PMSS#949 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Automattic/static-site-importer#1829 ·