Skip to content

Commit

Permalink
Remove betteralign from Makefile - we'll take care of this manually
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Jan 8, 2025
1 parent 0534dcc commit 26b1894
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ linters-settings:
enable-all: true
disable:
- shadow

- fieldalignment

gofumpt:
extra-rules: true
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ dependencies-analyze:
govulncheck ./...

fmt:
which betteralign || go install github.com/dkorunic/betteralign/cmd/betteralign@latest
betteralign -fix -apply .
which gofumpt || go install mvdan.cc/gofumpt@latest
gofumpt -l -w -extra .

Expand Down
14 changes: 6 additions & 8 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ var defaultOpenAPIServerConfig = OpenAPIServerConfig{
}

type Server struct {
startTime time.Time

fs fs.FS

// The underlying HTTP server
*http.Server

Expand All @@ -58,11 +54,15 @@ type Server struct {
// Used to serialize the error response. Defaults to [SendError].
SerializeError ErrorSender

startTime time.Time

Security Security

autoAuth AutoAuthConfig
fs fs.FS

basePath string // Base path of the group
// Base path of the group
basePath string

loggingConfig LoggingConfig

Expand All @@ -75,10 +75,8 @@ type Server struct {
middlewares []func(http.Handler) http.Handler

maxBodySize int64

// If true, the server will return an error if the request body contains unknown fields. Useful for quick debugging in development.
DisallowUnknownFields bool

DisallowUnknownFields bool
disableStartupMessages bool
disableAutoGroupTags bool
isTLS bool
Expand Down

0 comments on commit 26b1894

Please sign in to comment.