mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-12 12:43:32 +08:00
Add Turkish (tr) docs and update README (#744)
* Add Turkish (tr) docs and update README Add a full set of Turkish documentation under docs/tr (agents, changelog, CLAUDE guide, contributing, code of conduct, and many agents/commands/skills/rules files). Update README to include a link to the Turkish docs and increment the supported language count from 5 to 6. This commit adds localized guidance and references to help Turkish-speaking contributors and users. * Update docs/tr/TROUBLESHOOTING.md Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * Update docs/tr/README.md Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * docs(tr): fix license link and update readmes Update Turkish docs: change license badge link to point to repository root (../../LICENSE), increment displayed language count from 5 to 6, and remove two outdated related links from docs/tr/examples/README.md to keep references accurate. * Update docs/tr/commands/instinct-import.md Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * Update docs/tr/commands/checkpoint.md Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bb1efad7c7
commit
fd2a8edb53
32
docs/tr/rules/golang/coding-style.md
Normal file
32
docs/tr/rules/golang/coding-style.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go Kodlama Stili
|
||||
|
||||
> Bu dosya [common/coding-style.md](../common/coding-style.md) dosyasını Go'ya özgü içerikle genişletir.
|
||||
|
||||
## Formatlama
|
||||
|
||||
- **gofmt** ve **goimports** zorunludur — stil tartışması yok
|
||||
|
||||
## Tasarım İlkeleri
|
||||
|
||||
- Interface'leri kabul et, struct'ları döndür
|
||||
- Interface'leri küçük tut (1-3 metot)
|
||||
|
||||
## Hata Yönetimi
|
||||
|
||||
Hataları daima context ile sarmalayın:
|
||||
|
||||
```go
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create user: %w", err)
|
||||
}
|
||||
```
|
||||
|
||||
## Referans
|
||||
|
||||
Kapsamlı Go idiom'ları ve pattern'leri için skill: `golang-patterns` dosyasına bakın.
|
||||
17
docs/tr/rules/golang/hooks.md
Normal file
17
docs/tr/rules/golang/hooks.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go Hooks
|
||||
|
||||
> Bu dosya [common/hooks.md](../common/hooks.md) dosyasını Go'ya özgü içerikle genişletir.
|
||||
|
||||
## PostToolUse Hooks
|
||||
|
||||
`~/.claude/settings.json` içinde yapılandır:
|
||||
|
||||
- **gofmt/goimports**: Edit'ten sonra `.go` dosyalarını otomatik formatla
|
||||
- **go vet**: `.go` dosyalarını düzenledikten sonra statik analiz çalıştır
|
||||
- **staticcheck**: Değiştirilen paketlerde genişletilmiş statik kontroller çalıştır
|
||||
45
docs/tr/rules/golang/patterns.md
Normal file
45
docs/tr/rules/golang/patterns.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go Pattern'leri
|
||||
|
||||
> Bu dosya [common/patterns.md](../common/patterns.md) dosyasını Go'ya özgü içerikle genişletir.
|
||||
|
||||
## Functional Options
|
||||
|
||||
```go
|
||||
type Option func(*Server)
|
||||
|
||||
func WithPort(port int) Option {
|
||||
return func(s *Server) { s.port = port }
|
||||
}
|
||||
|
||||
func NewServer(opts ...Option) *Server {
|
||||
s := &Server{port: 8080}
|
||||
for _, opt := range opts {
|
||||
opt(s)
|
||||
}
|
||||
return s
|
||||
}
|
||||
```
|
||||
|
||||
## Küçük Interface'ler
|
||||
|
||||
Interface'leri implement edildikleri yerde değil, kullanıldıkları yerde tanımla.
|
||||
|
||||
## Dependency Injection
|
||||
|
||||
Bağımlılıkları enjekte etmek için constructor fonksiyonları kullan:
|
||||
|
||||
```go
|
||||
func NewUserService(repo UserRepository, logger Logger) *UserService {
|
||||
return &UserService{repo: repo, logger: logger}
|
||||
}
|
||||
```
|
||||
|
||||
## Referans
|
||||
|
||||
Concurrency, hata yönetimi ve paket organizasyonu dahil kapsamlı Go pattern'leri için skill: `golang-patterns` dosyasına bakın.
|
||||
34
docs/tr/rules/golang/security.md
Normal file
34
docs/tr/rules/golang/security.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go Güvenlik
|
||||
|
||||
> Bu dosya [common/security.md](../common/security.md) dosyasını Go'ya özgü içerikle genişletir.
|
||||
|
||||
## Secret Yönetimi
|
||||
|
||||
```go
|
||||
apiKey := os.Getenv("OPENAI_API_KEY")
|
||||
if apiKey == "" {
|
||||
log.Fatal("OPENAI_API_KEY not configured")
|
||||
}
|
||||
```
|
||||
|
||||
## Güvenlik Taraması
|
||||
|
||||
- Statik güvenlik analizi için **gosec** kullan:
|
||||
```bash
|
||||
gosec ./...
|
||||
```
|
||||
|
||||
## Context & Timeout'lar
|
||||
|
||||
Timeout kontrolü için daima `context.Context` kullan:
|
||||
|
||||
```go
|
||||
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
||||
defer cancel()
|
||||
```
|
||||
31
docs/tr/rules/golang/testing.md
Normal file
31
docs/tr/rules/golang/testing.md
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go Testing
|
||||
|
||||
> Bu dosya [common/testing.md](../common/testing.md) dosyasını Go'ya özgü içerikle genişletir.
|
||||
|
||||
## Framework
|
||||
|
||||
**Table-driven testler** ile standart `go test` kullan.
|
||||
|
||||
## Race Detection
|
||||
|
||||
Daima `-race` flag'i ile çalıştır:
|
||||
|
||||
```bash
|
||||
go test -race ./...
|
||||
```
|
||||
|
||||
## Coverage
|
||||
|
||||
```bash
|
||||
go test -cover ./...
|
||||
```
|
||||
|
||||
## Referans
|
||||
|
||||
Detaylı Go test pattern'leri ve helper'lar için skill: `golang-testing` dosyasına bakın.
|
||||
Reference in New Issue
Block a user