Skip to content

refactor: autofix by go fix and golangci-lint#1197

Merged
EtienneM merged 5 commits intomasterfrom
refactor/autofixes
Mar 5, 2026
Merged

refactor: autofix by go fix and golangci-lint#1197
EtienneM merged 5 commits intomasterfrom
refactor/autofixes

Conversation

@EtienneM
Copy link
Copy Markdown
Member

@EtienneM EtienneM commented Mar 5, 2026

This PR contains mostly automated fixes provided by the commands go fix and golangci-lint.

  • Add a changelog entry in the section "To Be Released" of CHANGELOG.md

@EtienneM EtienneM self-assigned this Mar 5, 2026
@EtienneM EtienneM force-pushed the refactor/autofixes branch from e33eca4 to 8c37ea1 Compare March 5, 2026 14:06
Comment thread apps/run/run_unix.go
@@ -1,17 +1,16 @@
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EtienneM EtienneM marked this pull request as ready for review March 5, 2026 14:15
@EtienneM EtienneM requested review from a team and matthieu526-scalingo and removed request for a team March 5, 2026 14:15
@EtienneM EtienneM force-pushed the refactor/autofixes branch from 8c37ea1 to 7e68ae1 Compare March 5, 2026 14:15
Copy link
Copy Markdown
Contributor

@matthieu526-scalingo matthieu526-scalingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments, but no blocker.

Comment thread apps/containers.go Outdated
if a.ContainerType == containerType.Name {
hasAutoscaler = true
name += " (*)"
nameHasAutoscaler.WriteString(" (*)")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remark: even though this is recommended by go fix (or the linter), I don't find this really useful. Adding 2 lines for a string concatenation seems a bit overkill.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in c3fc84d

Comment thread cmd/integration_link.go Outdated
if errors.As(err, &scerr) {
if scerr.Code == 404 {
switch scerr.Code {
case 404:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: this could be changed into http consts (http.StatusNotFound, etc)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in c3fc84d

@EtienneM EtienneM enabled auto-merge March 5, 2026 15:01
@EtienneM EtienneM merged commit 053bf18 into master Mar 5, 2026
7 checks passed
@EtienneM EtienneM deleted the refactor/autofixes branch March 5, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants