Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
1.6 KiB
1.6 KiB
Contributing to YakNet Accessibility Console
Thank you for your interest in contributing to YakNet Accessibility Console, an open-source accessibility analysis library maintained by YakNet.
Development Setup
git clone https://github.com/y-packages/accessibility-console.git
cd accessibility-console
composer install
Running Tests & Static Analysis
All pull requests must pass both the full PHPUnit test suite and PHPStan Level 9 with zero errors:
vendor/bin/phpunit
vendor/bin/phpstan analyse -l 9 src/
php bin/a11y doctor
Adding a New Accessibility Rule
- Create a rule class under
src/Rules/extendingYakNet\AccessibilityConsole\Rules\AbstractRule(element-level) orYakNet\AccessibilityConsole\Core\AbstractRule(document-level). - Assign a unique
getId()following theWCAG_<P>_<G>_<C>_<NAME>convention. - Provide accurate
getDescription(),getStandard(),getSeverity(), andgetLevel()metadata. - Add unit tests covering both non-compliant and compliant markup in
tests/Rules/. - Verify rule registry integrity with
php bin/a11y doctor.
Coding Standards
- PHP 8.2+ with
declare(strict_types=1);in new files. - Full type annotations compatible with PHPStan Level 9.
- Keep documentation and user-facing messages clear, open-source friendly, and free of vendor lock-in.
Pull Request Process
- Fork the repository and create a feature branch (
git checkout -b feature/my-improvement). - Write clear, focused commits.
- Ensure
phpunit,phpstan, andbin/a11y doctorall pass cleanly. - Open a Pull Request describing the motivation and test coverage.