Skip to content

Commit de3c6c7

Browse files
build(deps): bump github.com/stbenjam/no-sprintf-host-port from 0.2.0 to 0.3.1 (#6162)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent a2d3cc1 commit de3c6c7

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ require (
114114
github.com/spf13/pflag v1.0.10
115115
github.com/spf13/viper v1.12.0
116116
github.com/ssgreg/nlreturn/v2 v2.2.1
117-
github.com/stbenjam/no-sprintf-host-port v0.2.0
117+
github.com/stbenjam/no-sprintf-host-port v0.3.1
118118
github.com/stretchr/testify v1.11.1
119119
github.com/tetafro/godot v1.5.4
120120
github.com/timakin/bodyclose v0.0.0-20241222091800-1db5c5ca4d67

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/nosprintfhostport/testdata/nosprintfhostport.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ func _() {
2828

2929
_ = fmt.Sprintf("http://example.com:9211")
3030

31-
_ = fmt.Sprintf("gopher://%s:%d", "myHost", 70) // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
31+
_ = fmt.Sprintf("gopher://%s:%d", "myHost", 70)
3232

33-
_ = fmt.Sprintf("telnet+ssl://%s:%d", "myHost", 23) // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
33+
_ = fmt.Sprintf("telnet+ssl://%s:%d", "myHost", 23)
3434

35-
_ = fmt.Sprintf("weird3.6://%s:%d", "myHost", 23) // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
35+
_ = fmt.Sprintf("weird3.6://%s:%d", "myHost", 23)
3636

3737
_ = fmt.Sprintf("https://user@%s:%d", "myHost", 8443) // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
3838

3939
_ = fmt.Sprintf("postgres://%s:%s@%s:5050/%s", "foo", "bar", "baz", "qux") // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
4040

41-
_ = fmt.Sprintf("https://%s:%d", "myHost", 8443) // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
41+
_ = fmt.Sprintf("https://%s:%d", "myHost", 8443)
4242

43-
_ = fmt.Sprintf("https://%s:9211", "myHost") // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
43+
_ = fmt.Sprintf("https://%s:9211", "myHost")
4444

4545
ip := "fd00::1"
4646
_ = fmt.Sprintf("http://%s:1936/healthz", ip) // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"

pkg/golinters/nosprintfhostport/testdata/nosprintfhostport_cgo.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ func _() {
2323
}
2424

2525
func _() {
26-
_ = fmt.Sprintf("gopher://%s:%d", "myHost", 70) // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
26+
ip := "fd00::1"
27+
_ = fmt.Sprintf("http://%s:1936/healthz", ip) // want "host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf"
2728
}

0 commit comments

Comments
 (0)