Files
wehub-resource-sync d48cda4081
CI / Test (ubuntu-latest, Node 18.x, bun) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, npm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, pnpm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, yarn) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 20.x, bun) (push) Failing after 17m13s
CI / Test (ubuntu-latest, Node 20.x, npm) (push) Failing after 18m42s
CI / Test (ubuntu-latest, Node 20.x, pnpm) (push) Failing after 15m0s
CI / Test (ubuntu-latest, Node 20.x, yarn) (push) Failing after 49m44s
CI / Test (ubuntu-latest, Node 22.x, bun) (push) Failing after 51m55s
CI / Test (ubuntu-latest, Node 22.x, pnpm) (push) Failing after 21m57s
CI / Test (ubuntu-latest, Node 22.x, npm) (push) Failing after 37m39s
CI / Test (ubuntu-latest, Node 22.x, yarn) (push) Failing after 34m7s
CI / Validate Components (push) Failing after 37m15s
CI / Python Tests (push) Failing after 10m1s
CI / Security Scan (push) Failing after 10m1s
CI / Lint (push) Failing after 17m12s
CI / Coverage (push) Failing after 20m19s
CI / Test (macos-latest, Node 18.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, yarn) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:55:55 +08:00

62 lines
2.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Kurallar (Rules)
Claude Code için kodlama kuralları ve en iyi uygulamalar.
## Dizin Yapısı
### Common (Dile Bağımsız Kurallar)
Tüm programlama dillerine uygulanan temel kurallar:
- **agents.md** - Agent orkestrasyonu ve kullanımı
- **coding-style.md** - Genel kodlama stili kuralları (immutability, dosya organizasyonu, hata yönetimi)
- **development-workflow.md** - Özellik geliştirme iş akışı (araştırma, planlama, TDD, kod incelemesi)
- **git-workflow.md** - Git commit ve PR iş akışı
- **hooks.md** - Hook sistemi (PreToolUse, PostToolUse, Stop)
- **patterns.md** - Yaygın tasarım pattern'leri (Repository, API Response Format)
- **performance.md** - Performans optimizasyonu (model seçimi, context window yönetimi)
- **security.md** - Güvenlik kuralları (secret yönetimi, güvenlik kontrolleri)
- **testing.md** - Test gereksinimleri (TDD, minimum %80 coverage)
### TypeScript/JavaScript
TypeScript ve JavaScript projeleri için özel kurallar:
- **coding-style.md** - Tip sistemleri, immutability, hata yönetimi, input validasyonu
- **hooks.md** - Prettier, TypeScript check, console.log uyarıları
- **patterns.md** - API response format, custom hooks, repository pattern
- **security.md** - Secret yönetimi, environment variable'lar
- **testing.md** - Playwright E2E testing
### Python
Python projeleri için özel kurallar:
- **coding-style.md** - PEP 8, type annotation'lar, immutability, formatlama araçları
- **hooks.md** - black/ruff formatlama, mypy/pyright tip kontrolü
- **patterns.md** - Protocol (duck typing), dataclass'lar, context manager'lar
- **security.md** - Secret yönetimi, bandit güvenlik taraması
- **testing.md** - pytest framework, coverage, test organizasyonu
### Golang
Go projeleri için özel kurallar:
- **coding-style.md** - gofmt/goimports, tasarım ilkeleri, hata yönetimi
- **hooks.md** - gofmt/goimports formatlama, go vet, staticcheck
- **patterns.md** - Functional options, küçük interface'ler, dependency injection
- **security.md** - Secret yönetimi, gosec güvenlik taraması, context & timeout'lar
- **testing.md** - Table-driven testler, race detection, coverage
## Kullanım
Bu kurallar Claude Code tarafından otomatik olarak yüklenir ve uygulanır. Kurallar:
1. **Dile bağımsız** - `common/` dizinindeki kurallar tüm projeler için geçerlidir
2. **Dile özgü** - İlgili dil dizinindeki kurallar (typescript/, python/, golang/) common kuralları genişletir
3. **Path tabanlı** - Kurallar YAML frontmatter'daki path pattern'leri ile eşleşen dosyalara uygulanır
## Orijinal Dokümantasyon
Bu dokümantasyonun İngilizce orijinali `rules/` dizininde bulunmaktadır.