📝 docs: add ADR for staged-only Git hooks formatting

- Add ADR-0012 documenting the decision to format only staged Go files
- Update ADR README.md with new entry
- Document rationale, alternatives, and verification results
- Include future considerations for monitoring and CI/CD integration

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-04-04 21:36:57 +02:00
parent 371dee01d5
commit 9336178d73
18 changed files with 483 additions and 47 deletions

View File

@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"errors"
"strconv"
"io"
"net/http"
"strconv"
"DanceLessonsCoach/pkg/validation"
"github.com/go-chi/chi/v5"
@@ -22,7 +22,7 @@ type ApiV2Greet interface {
}
type apiV2GreetHandler struct {
greeter GreeterV2
greeter GreeterV2
validator *validation.Validator
}
@@ -108,4 +108,4 @@ func (h *apiV2GreetHandler) handleValidationError(w http.ResponseWriter, err err
func (h *apiV2GreetHandler) writeJSONResponse(w http.ResponseWriter, message string) {
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(greetResponse{Message: message})
}
}

View File

@@ -21,4 +21,4 @@ func (s *Service) Greet(ctx context.Context, name string) string {
return "Hello world!"
}
return "Hello " + name + "!"
}
}

View File

@@ -21,4 +21,4 @@ func (s *ServiceV2) GreetV2(ctx context.Context, name string) string {
return "Hello my friend!"
}
return "Hello my friend " + name + "!"
}
}

View File

@@ -25,4 +25,4 @@ func TestServiceV2_GreetV2(t *testing.T) {
}
})
}
}
}