📝 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:
@@ -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})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,4 +21,4 @@ func (s *Service) Greet(ctx context.Context, name string) string {
|
||||
return "Hello world!"
|
||||
}
|
||||
return "Hello " + name + "!"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,4 +21,4 @@ func (s *ServiceV2) GreetV2(ctx context.Context, name string) string {
|
||||
return "Hello my friend!"
|
||||
}
|
||||
return "Hello my friend " + name + "!"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,4 +25,4 @@ func TestServiceV2_GreetV2(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user