Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmark: PR 5109 (goconst) #32

Closed
ldez opened this issue Nov 7, 2024 · 1 comment
Closed

benchmark: PR 5109 (goconst) #32

ldez opened this issue Nov 7, 2024 · 1 comment

Comments

@ldez
Copy link
Owner

ldez commented Nov 7, 2024

{
"pr": 5109,
"linter": "goconst",
"version": "v1.61.0"
}

Copy link

github-actions bot commented Nov 7, 2024

The benchmark (Benchmark PR (updated linter)) is done!

beego/beego

local
client/orm/mock/mock_orm_test.go:73:12: string `Tom` has 6 occurrences, make it a constant (goconst)
		u.Name = "Tom"
		         ^
client/httplib/httpclient_test.go:154:7: string `beego` has 3 occurrences, make it a constant (goconst)
	v := "beego"
	     ^
client/orm/migration/ddl.go:71:17: string `create` has 4 occurrences, make it a constant (goconst)
	m.ModifyType = "create"
	               ^
client/orm/migration/ddl.go:77:17: string `alter` has 4 occurrences, make it a constant (goconst)
	m.ModifyType = "alter"
	               ^
client/orm/migration/ddl.go:343:7: string `reverse` has 3 occurrences, make it a constant (goconst)
	case "reverse":
	     ^
client/orm/migration/ddl.go:383:7: string `delete` has 3 occurrences, make it a constant (goconst)
	case "delete":
	     ^
server/web/context/input.go:374:41: string `gzip` has 7 occurrences, make it a constant (goconst)
	if input.Header("Content-Encoding") == "gzip" {
	                                       ^
server/web/context/acceptencoder_test.go:26:103: string `deflate` has 4 occurrences, make it a constant (goconst)
	if parseEncoding(&http.Request{Header: map[string][]string{"Accept-Encoding": {"deflate,gzip"}}}) != "deflate" {
	                                                                                                     ^
client/orm/hints/db_hints_test.go:25:9: string `qweqwe` has 3 occurrences, make it a constant (goconst)
	key := "qweqwe"
	       ^
server/web/session/sess_cookie_test.go:45:56: string `astaxie` has 6 occurrences, make it a constant (goconst)
	if username := sess.Get(nil, "username"); username != "astaxie" {
	                                                      ^
server/web/session/sess_cookie_test.go:55:31: string `gosessionid` has 5 occurrences, make it a constant (goconst)
			if k == 0 && nameval[0] != "gosessionid" {
			                           ^
server/web/session/session_config_test.go:62:11: string `sodiausodkljalsd` has 3 occurrences, make it a constant (goconst)
	value := `sodiausodkljalsd`
	         ^
server/web/namespace_test.go:135:24: string `i am list` has 6 occurrences, make it a constant (goconst)
	if w.Body.String() != "i am list" {
	                      ^
server/web/router_test.go:54:24: string `astaxie` has 14 occurrences, make it a constant (goconst)
	tc.Data["Username"] = "astaxie"
	                      ^
server/web/templatefunc.go:373:10: string `text` has 4 occurrences, make it a constant (goconst)
	fType = "text"
	        ^
server/web/controller_test.go:149:14: string `file2.tpl` has 3 occurrences, make it a constant (goconst)
	dir2file := "file2.tpl"
	            ^
server/web/tree.go:85:15: string `:splat` has 6 occurrences, make it a constant (goconst)
						if w == ":splat" {
						        ^
server/web/staticfile.go:38:27: string `GET` has 4 occurrences, make it a constant (goconst)
	if ctx.Input.Method() != "GET" && ctx.Input.Method() != "HEAD" {
	                         ^
server/web/tree.go:96:15: string `*.*` has 6 occurrences, make it a constant (goconst)
				if seg == "*.*" {
				          ^
server/web/templatefunc_test.go:266:15: string `name` has 6 occurrences, make it a constant (goconst)
	if !(name == "name" && label == "年龄:" && fType == "text" && !ignored) {
	             ^
server/web/router_test.go:101:20: string `prepare` has 3 occurrences, make it a constant (goconst)
	jc.Data["json"] = "prepare"
	                  ^
server/web/tree_test.go:331:28: string `admin` has 4 occurrences, make it a constant (goconst)
	if len(a) != 1 || a[0] != "admin" {
	                          ^
core/config/toml/toml_test.go:144:10: string `
Name=["Tom", "Jerry"]
NameInvalid="Tom"
` has 3 occurrences, make it a constant (goconst)
	data := `
	        ^
core/config/toml/toml_test.go:219:10: string `
[servers]

  # You can indent as you please. Tabs or spaces. TOML don't care.
  [servers.alpha]
  ip = "10.0.0.1"
  dc = "eqdc10"

  [servers.beta]
  ip = "10.0.0.2"
  dc = "eqdc10"
` has 3 occurrences, make it a constant (goconst)
	data := `
	        ^
core/validation/validation.go:393:18: string `Required` has 3 occurrences, make it a constant (goconst)
			if vf.Name == "Required" {
			              ^
client/cache/file_test.go:60:17: string `////aaa` has 3 occurrences, make it a constant (goconst)
	fc.CachePath = "////aaa"
	               ^
core/logs/file_test.go:189:9: string `rotate_day.log` has 4 occurrences, make it a constant (goconst)
	fn1 := "rotate_day.log"
	       ^
core/logs/file_test.go:262:9: string `rotate_hour.log` has 4 occurrences, make it a constant (goconst)
	fn1 := "rotate_hour.log"
	       ^
client/orm/orm_test.go:315:8: string `Date` has 3 occurrences, make it a constant (goconst)
		case "Date":
		     ^
client/orm/orm_raw.go:249:17: string `time.Time` has 3 occurrences, make it a constant (goconst)
			if tpName == "time.Time" {
			             ^
client/orm/db.go:1450:18: string `contains` has 3 occurrences, make it a constant (goconst)
		case "iexact", "contains", "icontains", "startswith", "endswith", "istartswith", "iendswith":
		               ^
client/orm/orm_test.go:618:18: string `pass` has 3 occurrences, make it a constant (goconst)
	user.Password = "pass"
	                ^
client/orm/orm_test.go:317:8: string `Time` has 3 occurrences, make it a constant (goconst)
		case "Time":
		     ^
client/orm/orm_test.go:617:15: string `[email protected]` has 3 occurrences, make it a constant (goconst)
	user.Email = "[email protected]"
	             ^
client/orm/orm_test.go:316:8: string `DateTime` has 3 occurrences, make it a constant (goconst)
		case "DateTime":
		     ^
client/orm/orm_test.go:616:18: string `slene` has 3 occurrences, make it a constant (goconst)
	user.UserName = "slene"
	                ^
v1.61.0
server/web/context/acceptencoder_test.go:26:103: string `deflate` has 4 occurrences, make it a constant (goconst)
	if parseEncoding(&http.Request{Header: map[string][]string{"Accept-Encoding": {"deflate,gzip"}}}) != "deflate" {
	                                                                                                     ^
server/web/context/input.go:374:41: string `gzip` has 7 occurrences, make it a constant (goconst)
	if input.Header("Content-Encoding") == "gzip" {
	                                       ^
server/web/session/session_config_test.go:62:11: string `sodiausodkljalsd` has 3 occurrences, make it a constant (goconst)
	value := `sodiausodkljalsd`
	         ^
server/web/session/sess_cookie_test.go:45:56: string `astaxie` has 6 occurrences, make it a constant (goconst)
	if username := sess.Get(nil, "username"); username != "astaxie" {
	                                                      ^
server/web/session/sess_cookie_test.go:55:31: string `gosessionid` has 5 occurrences, make it a constant (goconst)
			if k == 0 && nameval[0] != "gosessionid" {
			                           ^
core/config/toml/toml_test.go:144:10: string `
Name=["Tom", "Jerry"]
NameInvalid="Tom"
` has 3 occurrences, make it a constant (goconst)
	data := `
	        ^
core/config/toml/toml_test.go:219:10: string `
[servers]

  # You can indent as you please. Tabs or spaces. TOML don't care.
  [servers.alpha]
  ip = "10.0.0.1"
  dc = "eqdc10"

  [servers.beta]
  ip = "10.0.0.2"
  dc = "eqdc10"
` has 3 occurrences, make it a constant (goconst)
	data := `
	        ^
client/cache/file_test.go:60:17: string `////aaa` has 3 occurrences, make it a constant (goconst)
	fc.CachePath = "////aaa"
	               ^
core/validation/validation.go:393:18: string `Required` has 3 occurrences, make it a constant (goconst)
			if vf.Name == "Required" {
			              ^
client/orm/mock/mock_orm_test.go:73:12: string `Tom` has 6 occurrences, make it a constant (goconst)
		u.Name = "Tom"
		         ^
core/logs/file_test.go:189:9: string `rotate_day.log` has 4 occurrences, make it a constant (goconst)
	fn1 := "rotate_day.log"
	       ^
core/logs/file_test.go:262:9: string `rotate_hour.log` has 4 occurrences, make it a constant (goconst)
	fn1 := "rotate_hour.log"
	       ^
client/orm/migration/ddl.go:343:7: string `reverse` has 3 occurrences, make it a constant (goconst)
	case "reverse":
	     ^
client/orm/migration/ddl.go:383:7: string `delete` has 3 occurrences, make it a constant (goconst)
	case "delete":
	     ^
client/orm/migration/ddl.go:71:17: string `create` has 4 occurrences, make it a constant (goconst)
	m.ModifyType = "create"
	               ^
client/orm/migration/ddl.go:77:17: string `alter` has 4 occurrences, make it a constant (goconst)
	m.ModifyType = "alter"
	               ^
client/orm/hints/db_hints_test.go:25:9: string `qweqwe` has 3 occurrences, make it a constant (goconst)
	key := "qweqwe"
	       ^
client/httplib/httpclient_test.go:154:7: string `beego` has 3 occurrences, make it a constant (goconst)
	v := "beego"
	     ^
client/orm/db.go:1450:84: string `iendswith` has 3 occurrences, make it a constant (goconst)
		case "iexact", "contains", "icontains", "startswith", "endswith", "istartswith", "iendswith":
		                                                                                 ^
client/orm/orm_test.go:316:8: string `DateTime` has 3 occurrences, make it a constant (goconst)
		case "DateTime":
		     ^
client/orm/orm_test.go:616:18: string `slene` has 3 occurrences, make it a constant (goconst)
	user.UserName = "slene"
	                ^
client/orm/orm_raw.go:249:17: string `time.Time` has 3 occurrences, make it a constant (goconst)
			if tpName == "time.Time" {
			             ^
client/orm/orm_test.go:618:18: string `pass` has 3 occurrences, make it a constant (goconst)
	user.Password = "pass"
	                ^
client/orm/orm_test.go:317:8: string `Time` has 3 occurrences, make it a constant (goconst)
		case "Time":
		     ^
client/orm/orm_test.go:617:15: string `[email protected]` has 3 occurrences, make it a constant (goconst)
	user.Email = "[email protected]"
	             ^
client/orm/orm_test.go:315:8: string `Date` has 3 occurrences, make it a constant (goconst)
		case "Date":
		     ^
server/web/templatefunc_test.go:266:15: string `name` has 6 occurrences, make it a constant (goconst)
	if !(name == "name" && label == "年龄:" && fType == "text" && !ignored) {
	             ^
server/web/templatefunc.go:373:10: string `text` has 4 occurrences, make it a constant (goconst)
	fType = "text"
	        ^
server/web/router_test.go:54:24: string `astaxie` has 14 occurrences, make it a constant (goconst)
	tc.Data["Username"] = "astaxie"
	                      ^
server/web/tree_test.go:331:28: string `admin` has 4 occurrences, make it a constant (goconst)
	if len(a) != 1 || a[0] != "admin" {
	                          ^
server/web/tree.go:85:15: string `:splat` has 6 occurrences, make it a constant (goconst)
						if w == ":splat" {
						        ^
server/web/router_test.go:101:20: string `prepare` has 3 occurrences, make it a constant (goconst)
	jc.Data["json"] = "prepare"
	                  ^
server/web/namespace_test.go:135:24: string `i am list` has 6 occurrences, make it a constant (goconst)
	if w.Body.String() != "i am list" {
	                      ^
server/web/tree.go:96:15: string `*.*` has 6 occurrences, make it a constant (goconst)
				if seg == "*.*" {
				          ^
server/web/controller_test.go:149:14: string `file2.tpl` has 3 occurrences, make it a constant (goconst)
	dir2file := "file2.tpl"
	            ^
server/web/staticfile.go:38:27: string `GET` has 4 occurrences, make it a constant (goconst)
	if ctx.Input.Method() != "GET" && ctx.Input.Method() != "HEAD" {
	                         ^
Command Mean [ms] Min [ms] Max [ms] Relative
local 504.3 ± 10.2 491.9 525.2 1.07 ± 0.03
v1.61.0 469.2 ± 10.9 457.8 498.1 1.00

cilium/cilium

local
test/runtime/net_policies.go:286:13: string `10.0.2.15` has 4 occurrences, make it a constant (goconst)
		hostIP := "10.0.2.15"
		          ^
pkg/maps/ctmap/lookup.go:124:15: string `global` has 4 occurrences, make it a constant (goconst)
	if epname == "global" {
	             ^
pkg/hubble/relay/observer/server_test.go:242:21: string `one` has 10 occurrences, make it a constant (goconst)
							if p.Name != "one" {
							             ^
pkg/hubble/relay/observer/server_test.go:398:13: string `two` has 5 occurrences, make it a constant (goconst)
							case "two":
							     ^
pkg/monitor/datapath_sock_trace.go:108:10: string `tcp` has 3 occurrences, make it a constant (goconst)
		return "tcp"
		       ^
pkg/kvstore/base_test.go:56:12: string `unit-test/` has 5 occurrences, make it a constant (goconst)
	prefix := "unit-test/"
	          ^
cilium-cli/k8s/client.go:545:10: string `minikube` has 3 occurrences, make it a constant (goconst)
		return "minikube"
		       ^
cilium-cli/k8s/client.go:557:10: string `rancher-desktop` has 3 occurrences, make it a constant (goconst)
		return "rancher-desktop"
		       ^
pkg/hubble/exporter/config_watcher_test.go:19:14: string `testdata/valid-flowlogs-config.yaml` has 3 occurrences, make it a constant (goconst)
	fileName := "testdata/valid-flowlogs-config.yaml"
	            ^
pkg/option/option_test.go:16:12: string `foo` has 14 occurrences, make it a constant (goconst)
	k1, k2 := "foo", "bar"
	          ^
pkg/option/config.go:4044:16: string `enabled` has 3 occurrences, make it a constant (goconst)
	if opts[0] != "enabled" && opts[0] != "disabled" {
	              ^
pkg/option/option_test.go:65:30: string `baz` has 4 occurrences, make it a constant (goconst)
	k1, k2, k3 := "foo", "bar", "baz"
	                            ^
hubble/cmd/list/namespaces.go:73:16: string `wide` has 8 occurrences, make it a constant (goconst)
	case "table", "wide":
	              ^
test/k8s/datapath_configuration.go:991:10: string ` | grep client_address=` has 3 occurrences, make it a constant (goconst)
		cmd += " | grep client_address="
		       ^
test/k8s/assertion_helpers.go:161:7: string `false` has 10 occurrences, make it a constant (goconst)
	a := "false"
	     ^
test/k8s/datapath_configuration.go:185:32: string `vxlan` has 3 occurrences, make it a constant (goconst)
			options["tunnelProtocol"] = "vxlan"
			                            ^
test/k8s/datapath_configuration.go:189:41: string `true` has 4 occurrences, make it a constant (goconst)
				options["endpointRoutes.enabled"] = "true"
				                                    ^
pkg/policy/proxyid.go:20:15: string `ingress` has 4 occurrences, make it a constant (goconst)
		direction = "ingress"
		            ^
pkg/policy/l4.go:1652:18: string `default` has 3 occurrences, make it a constant (goconst)
			authString := "default"
			              ^
pkg/policy/l4.go:91:24: string `[redacted]` has 3 occurrences, make it a constant (goconst)
		redacted.TrustedCA = "[redacted]"
		                     ^
pkg/policy/l4.go:1370:9: string `Missing (-), Unexpected (+):
` has 3 occurrences, make it a constant (goconst)
	res += "Missing (-), Unexpected (+):\n"
	       ^
pkg/policy/proxyid.go:18:15: string `egress` has 3 occurrences, make it a constant (goconst)
	direction := "egress"
	             ^
pkg/act/act_test.go:59:10: string `zone-a` has 5 occurrences, make it a constant (goconst)
		return "zone-a", "svc-a", nil
		       ^
pkg/act/act_test.go:78:20: string `svc-b` has 4 occurrences, make it a constant (goconst)
		return "zone-a", "svc-b", nil
		                 ^
pkg/act/act_test.go:109:11: string `zone-b` has 3 occurrences, make it a constant (goconst)
			return "zone-b", "svc-b", nil
			       ^
cilium-dbg/cmd/bpf_ct_list.go:72:7: string `cluster` has 3 occurrences, make it a constant (goconst)
	case "cluster":
	     ^
cilium-dbg/cmd/bpf_ct_flush.go:42:12: string `global` has 6 occurrences, make it a constant (goconst)
	if eID == "global" {
	          ^
pkg/safeio/safeio_test.go:13:9: string `this string is 28 bytes long` has 3 occurrences, make it a constant (goconst)
	str := "this string is 28 bytes long"
	       ^
pkg/client/client.go:372:16: string `Enabled` has 14 occurrences, make it a constant (goconst)
			fields[0] = "Enabled"
			            ^
pkg/client/client.go:368:13: string `Disabled` has 17 occurrences, make it a constant (goconst)
		status := "Disabled"
		          ^
operator/pkg/model/translation/envoy_virtual_host_test.go:496:32: string `/strip-prefix` has 3 occurrences, make it a constant (goconst)
		httpRoute.PathMatch.Prefix = "/strip-prefix"
		                             ^
operator/pkg/lbipam/lbipam_test.go:1795:15: string `pool-a` has 3 occurrences, make it a constant (goconst)
		allocPool = "pool-a"
		            ^
operator/pkg/lbipam/lbipam.go:835:14: string `no_pool` has 3 occurrences, make it a constant (goconst)
			reason := "no_pool"
			          ^
operator/pkg/lbipam/lbipam_test.go:955:47: string `10.0.10.123` has 3 occurrences, make it a constant (goconst)
	if svcA.Status.LoadBalancer.Ingress[0].IP != "10.0.10.123" {
	                                             ^
cilium-cli/encrypt/status.go:218:18: string `IPsec` has 3 occurrences, make it a constant (goconst)
			if st.Mode == "IPsec" {
			              ^
pkg/command/output.go:34:18: string `json` has 3 occurrences, make it a constant (goconst)
	if outputOpt == "json" || re.MatchString(outputOpt) {
	                ^
cilium-cli/connectivity/check/deployment.go:636:60: string `true` has 7 occurrences, make it a constant (goconst)
		svc.ObjectMeta.Annotations["service.cilium.io/global"] = "true"
		                                                         ^
cilium-cli/connectivity/check/features.go:148:9: string `false` has 3 occurrences, make it a constant (goconst)
	mode = "false"
	       ^
cilium-cli/connectivity/check/features.go:174:39: string `disabled` has 3 occurrences, but such constant `FlowValidationModeDisabled` already exists (goconst)
		Enabled: mode != "false" && mode != "disabled",
		                                    ^
cilium-cli/connectivity/check/metrics_test.go:25:15: string `direction` has 3 occurrences, make it a constant (goconst)
	labelName := "direction"
	             ^
cilium-cli/connectivity/check/metrics_test.go:26:17: string `EGRESS` has 3 occurrences, make it a constant (goconst)
	labelEgress := "EGRESS"
	               ^
cilium-cli/connectivity/check/metrics_test.go:22:16: string `cilium_forward_count_total` has 3 occurrences, make it a constant (goconst)
	metricName := "cilium_forward_count_total"
	              ^
cilium-cli/connectivity/check/metrics_test.go:27:18: string `INGRESS` has 3 occurrences, make it a constant (goconst)
	labelIngress := "INGRESS"
	                ^
cilium-cli/connectivity/check/metrics_test.go:23:16: string `Total forwarded packets, tagged by ingress/egress direction` has 3 occurrences, make it a constant (goconst)
	metricHelp := "Total forwarded packets, tagged by ingress/egress direction"
	              ^
cilium-cli/clustermesh/clustermesh.go:173:17: string `default` has 3 occurrences, make it a constant (goconst)
		clusterName = "default"
		              ^
pkg/datapath/loader/netkit.go:133:22: string `netkit` has 4 occurrences, make it a constant (goconst)
	if device.Type() != "netkit" {
	                    ^
operator/cmd/flags.go:99:7: string `cilium-operator-aws` has 3 occurrences, make it a constant (goconst)
	case "cilium-operator-aws":
	     ^
operator/cmd/flags.go:101:7: string `cilium-operator-azure` has 3 occurrences, make it a constant (goconst)
	case "cilium-operator-azure":
	     ^
operator/cmd/flags.go:103:7: string `cilium-operator-alibabacloud` has 3 occurrences, make it a constant (goconst)
	case "cilium-operator-alibabacloud":
	     ^
operator/cmd/flags.go:105:7: string `cilium-operator-generic` has 3 occurrences, make it a constant (goconst)
	case "cilium-operator-generic":
	     ^
v1.61.0
pkg/bgpv1/types/conversions.go:149:7: string `mpls_label` has 3 occurrences, make it a constant (goconst)
	case "mpls_label":
	     ^
pkg/bgpv1/types/conversions.go:161:7: string `mup` has 3 occurrences, make it a constant (goconst)
	case "mup":
	     ^
pkg/bgpv1/types/conversions.go:173:7: string `key_value` has 3 occurrences, make it a constant (goconst)
	case "key_value":
	     ^
pkg/bgpv1/types/conversions.go:147:7: string `multicast` has 3 occurrences, make it a constant (goconst)
	case "multicast":
	     ^
pkg/bgpv1/types/conversions.go:159:7: string `sr_policy` has 3 occurrences, make it a constant (goconst)
	case "sr_policy":
	     ^
pkg/bgpv1/types/conversions.go:151:7: string `encapsulation` has 3 occurrences, make it a constant (goconst)
	case "encapsulation":
	     ^
pkg/bgpv1/types/conversions.go:163:7: string `mpls_vpn` has 3 occurrences, make it a constant (goconst)
	case "mpls_vpn":
	     ^
pkg/bgpv1/types/conversions.go:70:7: string `opaque` has 3 occurrences, make it a constant (goconst)
	case "opaque":
	     ^
pkg/bgpv1/types/conversions.go:167:7: string `route_target_constraints` has 3 occurrences, make it a constant (goconst)
	case "route_target_constraints":
	     ^
pkg/bgpv1/types/conversions.go:62:7: string `ipv4` has 3 occurrences, make it a constant (goconst)
	case "ipv4":
	     ^
pkg/bgpv1/types/conversions.go:165:7: string `mpls_vpn_multicast` has 3 occurrences, make it a constant (goconst)
	case "mpls_vpn_multicast":
	     ^
pkg/bgpv1/types/conversions.go:171:7: string `flowspec_vpn` has 3 occurrences, make it a constant (goconst)
	case "flowspec_vpn":
	     ^
pkg/bgpv1/types/conversions.go:28:10: string `unknown` has 6 occurrences, make it a constant (goconst)
		return "unknown"
		       ^
pkg/bgpv1/types/conversions.go:64:7: string `ipv6` has 3 occurrences, make it a constant (goconst)
	case "ipv6":
	     ^
pkg/bgpv1/types/conversions.go:66:7: string `l2vpn` has 3 occurrences, make it a constant (goconst)
	case "l2vpn":
	     ^
pkg/bgpv1/types/conversions.go:145:7: string `unicast` has 3 occurrences, make it a constant (goconst)
	case "unicast":
	     ^
pkg/bgpv1/types/conversions.go:155:7: string `evpn` has 3 occurrences, make it a constant (goconst)
	case "evpn":
	     ^
pkg/bgpv1/types/conversions.go:169:7: string `flowspec_unicast` has 3 occurrences, make it a constant (goconst)
	case "flowspec_unicast":
	     ^
pkg/bgpv1/types/conversions.go:153:7: string `vpls` has 3 occurrences, make it a constant (goconst)
	case "vpls":
	     ^
bugtool/cmd/root.go:183:7: string `tar` has 3 occurrences, make it a constant (goconst)
	case "tar", "gz":
	     ^
pkg/dynamicconfig/table_test.go:34:13: string `[{"kind":"config-map","namespace":"kube-system","name":"a-low-priority"},{"kind":"config-map","namespace":"kube-system","name":"cilium-config"}]` has 3 occurrences, make it a constant (goconst)
	cSource := `[{"kind":"config-map","namespace":"kube-system","name":"a-low-priority"},{"kind":"config-map","namespace":"kube-system","name":"cilium-config"}]`
	           ^
pkg/dynamicconfig/table_test.go:47:9: string `key` has 3 occurrences, but such constant `key` already exists (goconst)
	key := "key"
	       ^
pkg/dynamicconfig/table_test.go:48:23: string `a-low-priority` has 3 occurrences, make it a constant (goconst)
	lowPrioritySource := "a-low-priority" // leading 'a' to test that sources that are not in priority map have lower priority
	                     ^
pkg/dynamicconfig/table_test.go:49:11: string `value` has 3 occurrences, make it a constant (goconst)
	value := "value"
	         ^
pkg/dynamicconfig/table_test.go:50:14: string `newValue` has 3 occurrences, make it a constant (goconst)
	newValue := "newValue"
	            ^
cilium-cli/k8s/client.go:557:10: string `rancher-desktop` has 3 occurrences, make it a constant (goconst)
		return "rancher-desktop"
		       ^
cilium-cli/k8s/client.go:545:10: string `minikube` has 3 occurrences, make it a constant (goconst)
		return "minikube"
		       ^
hubble/pkg/printer/printer.go:193:10: string `N/A` has 9 occurrences, make it a constant (goconst)
		return "N/A"
		       ^
pkg/kvstore/base_test.go:56:12: string `unit-test/` has 5 occurrences, make it a constant (goconst)
	prefix := "unit-test/"
	          ^
pkg/hubble/exporter/config_watcher_test.go:19:14: string `testdata/valid-flowlogs-config.yaml` has 3 occurrences, make it a constant (goconst)
	fileName := "testdata/valid-flowlogs-config.yaml"
	            ^
pkg/bgpv1/test/adverts_test.go:455:10: string `add` has 6 occurrences, make it a constant (goconst)
				case "add":
				     ^
pkg/maps/ctmap/lookup.go:124:15: string `global` has 4 occurrences, make it a constant (goconst)
	if epname == "global" {
	             ^
cilium-dbg/cmd/bpf_ct_list.go:72:7: string `cluster` has 3 occurrences, make it a constant (goconst)
	case "cluster":
	     ^
cilium-dbg/cmd/bpf_ct_flush.go:42:12: string `global` has 6 occurrences, make it a constant (goconst)
	if eID == "global" {
	          ^
pkg/k8s/watchers/service.go:483:19: string `ANY` has 3 occurrences, make it a constant (goconst)
		port.Protocol = "ANY"
		                ^
pkg/k8s/utils/workload.go:62:28: string `ReplicaSet` has 3 occurrences, make it a constant (goconst)
			if typeMetadata.Kind == "ReplicaSet" && pod.Labels["pod-template-hash"] != "" && strings.HasSuffix(controllerRef.Name, pod.Labels["pod-template-hash"]) {
			                        ^
hubble/cmd/list/namespaces.go:73:16: string `wide` has 8 occurrences, make it a constant (goconst)
	case "table", "wide":
	              ^
operator/pkg/lbipam/lbipam.go:835:14: string `no_pool` has 3 occurrences, make it a constant (goconst)
			reason := "no_pool"
			          ^
operator/pkg/lbipam/lbipam_test.go:955:47: string `10.0.10.123` has 3 occurrences, make it a constant (goconst)
	if svcA.Status.LoadBalancer.Ingress[0].IP != "10.0.10.123" {
	                                             ^
operator/pkg/lbipam/lbipam_test.go:1795:15: string `pool-a` has 3 occurrences, make it a constant (goconst)
		allocPool = "pool-a"
		            ^
operator/cmd/flags.go:103:7: string `cilium-operator-alibabacloud` has 3 occurrences, make it a constant (goconst)
	case "cilium-operator-alibabacloud":
	     ^
operator/cmd/flags.go:105:7: string `cilium-operator-generic` has 3 occurrences, make it a constant (goconst)
	case "cilium-operator-generic":
	     ^
operator/cmd/flags.go:99:7: string `cilium-operator-aws` has 3 occurrences, make it a constant (goconst)
	case "cilium-operator-aws":
	     ^
operator/cmd/flags.go:101:7: string `cilium-operator-azure` has 3 occurrences, make it a constant (goconst)
	case "cilium-operator-azure":
	     ^
cilium-cli/utils/features/features.go:265:38: string `true` has 16 occurrences, make it a constant (goconst)
		Enabled: cm.Data["enable-ipv4"] == "true",
		                                   ^
pkg/redirectpolicy/manager_test.go:426:24: string `foo` has 3 occurrences, make it a constant (goconst)
	pod3.Labels["test"] = "foo"
	                      ^
pkg/datapath/loader/netkit.go:133:22: string `netkit` has 4 occurrences, make it a constant (goconst)
	if device.Type() != "netkit" {
	                    ^
pkg/ipcache/ipcache_test.go:61:16: string `10.0.0.15` has 3 occurrences, make it a constant (goconst)
	endpointIP := "10.0.0.15"
	              ^
cilium-cli/clustermesh/clustermesh.go:173:17: string `default` has 3 occurrences, make it a constant (goconst)
		clusterName = "default"
		              ^
hubble/cmd/observe/events.go:23:7: string `compact` has 3 occurrences, make it a constant (goconst)
	case "compact":
	     ^
Command Mean [s] Min [s] Max [s] Relative
local 3.020 ± 0.067 2.950 3.183 1.02 ± 0.02
v1.61.0 2.972 ± 0.028 2.928 3.015 1.00

spf13/cobra

Command Mean [ms] Min [ms] Max [ms] Relative
local 231.4 ± 2.6 226.0 234.7 1.15 ± 0.02
v1.61.0 201.3 ± 1.9 199.5 204.3 1.00

hashicorp/consul

local
agent/xds/accesslogs/accesslogs.go:112:16: string `json` has 3 occurrences, make it a constant (goconst)
		formatType = "json"
		             ^
agent/grpc-external/services/peerstream/stream_test.go:1580:14: string `billing` has 3 occurrences, make it a constant (goconst)
	peerName := "billing"
	            ^
agent/grpc-external/services/peerstream/stream_test.go:1581:12: string `1fabcd52-1d46-49b0-b1d8-71559aee47f5` has 3 occurrences, make it a constant (goconst)
	peerID := "1fabcd52-1d46-49b0-b1d8-71559aee47f5"
	          ^
command/connect/proxy/flag_upstreams.go:45:21: string `service` has 3 occurrences, make it a constant (goconst)
	destinationType := "service"
	                   ^
agent/consul/authmethod/kubeauth/k8s_test.go:210:18: string `invalid` has 3 occurrences, make it a constant (goconst)
			method.Type = "invalid"
			              ^
command/connect/redirecttraffic/redirect_traffic_test.go:587:18: string `test-node` has 3 occurrences, make it a constant (goconst)
				c.nodeName = "test-node"
				             ^
command/connect/redirecttraffic/redirect_traffic_test.go:82:17: string `test-proxy-id` has 17 occurrences, make it a constant (goconst)
				c.proxyID = "test-proxy-id"
				            ^
command/snapshot/inspect/snapshot_inspect_test.go:104:14: string `./testdata/backupWithKV.snap` has 3 occurrences, make it a constant (goconst)
	filepath := "./testdata/backupWithKV.snap"
	            ^
agent/consul/discoverychain/compile_test.go:147:27: string `default` has 4 occurrences, make it a constant (goconst)
				tc.expect.Namespace = "default"
				                      ^
agent/consul/discoverychain/compile_test.go:149:28: string `dc1` has 4 occurrences, make it a constant (goconst)
				tc.expect.Datacenter = "dc1"
				                       ^
agent/xds/clusters.go:1385:18: string `tcp` has 15 occurrences, make it a constant (goconst)
		cfg.Protocol = "tcp"
		               ^
agent/xds/listeners.go:805:11: string `0.0.0.0` has 3 occurrences, make it a constant (goconst)
			addr = "0.0.0.0"
			       ^
agent/xds/clusters.go:770:38: string `http2` has 12 occurrences, make it a constant (goconst)
			isHTTP2 = upstreamCfg.Protocol == "http2" || upstreamCfg.Protocol == "grpc"
			                                  ^
agent/xds/xds_protocol_helpers_test.go:485:7: string `http2:db` has 4 occurrences, make it a constant (goconst)
	case "http2:db":
	     ^
agent/xds/xds_protocol_helpers_test.go:449:7: string `tcp:db` has 3 occurrences, make it a constant (goconst)
	case "tcp:db":
	     ^
agent/xds/listeners.go:723:19: string `http` has 22 occurrences, make it a constant (goconst)
		path.Protocol = "http"
		                ^
agent/xds/resources_test.go:1535:13: string `192.0.2.1` has 4 occurrences, make it a constant (goconst)
					return "192.0.2.1"
					       ^
agent/xds/xds_protocol_helpers_test.go:518:7: string `http:db` has 3 occurrences, make it a constant (goconst)
	case "http:db":
	     ^
agent/xds/xds_protocol_helpers_test.go:537:7: string `tcp:geo-cache` has 3 occurrences, make it a constant (goconst)
	case "tcp:geo-cache":
	     ^
agent/envoyextensions/builtin/ext-authz/ext_authz.go:67:105: string `inbound` has 3 occurrences, make it a constant (goconst)
	return (!isInboundListener && a.ListenerType == "outbound") || (isInboundListener && a.ListenerType == "inbound")
	                                                                                                       ^
command/connect/envoy/bootstrap_config.go:841:8: string `default` has 3 occurrences, make it a constant (goconst)
		ns = "default"
		     ^
agent/keyring_test.go:39:9: string `tbLJg26ZJyJ9pK3qhc9jig==` has 5 occurrences, make it a constant (goconst)
	key := "tbLJg26ZJyJ9pK3qhc9jig=="
	       ^
agent/agent_endpoint.go:1530:27: string `agent` has 6 occurrences, make it a constant (goconst)
		case "acl_agent_token", "agent":
		                        ^
agent/agent_endpoint_test.go:1723:9: string `dc1` has 22 occurrences, make it a constant (goconst)
	dc1 := "dc1"
	       ^
agent/http_test.go:1458:14: string `bearer-token` has 3 occurrences, make it a constant (goconst)
	if token != "bearer-token" {
	            ^
agent/agent_test.go:5640:16: string `server.dc1.consul` has 5 occurrences, make it a constant (goconst)
	serverName := "server.dc1.consul"
	              ^
agent/acl_endpoint.go:133:7: string `DELETE` has 13 occurrences, make it a constant (goconst)
	case "DELETE":
	     ^
agent/dns.go:254:16: string `udp` has 6 occurrences, but such constant `UDP` already exists (goconst)
	if network == "udp" {
	              ^
agent/dns.go:786:8: string `service` has 3 occurrences, but such constant `serviceHealth` already exists (goconst)
		case "service", "connect", "virtual", "ingress", "node", "query", "addr":
		     ^
agent/agent.go:1154:37: string `https` has 4 occurrences, make it a constant (goconst)
			if (isTCP || isUnix) && proto == "https" {
			                                 ^
agent/discovery_chain_endpoint.go:38:19: string `POST` has 5 occurrences, make it a constant (goconst)
	if req.Method == "POST" {
	                 ^
agent/dns_service_lookup_test.go:1269:22: string `google.com.` has 3 occurrences, make it a constant (goconst)
		if cnRec.Target != "google.com." {
		                   ^
agent/health_endpoint_test.go:791:17: string `baz` has 4 occurrences, make it a constant (goconst)
			args2.Node = "baz"
			             ^
agent/operator_endpoint_test.go:101:12: string `H3/9gBxcKKRf45CaI2DlRg==` has 7 occurrences, make it a constant (goconst)
	oldKey := "H3/9gBxcKKRf45CaI2DlRg=="
	          ^
agent/dns_node_lookup_test.go:654:21: string `www.google.com.` has 5 occurrences, make it a constant (goconst)
	if cnRec.Target != "www.google.com." {
	                   ^
agent/http.go:859:9: string `HIT` has 5 occurrences, make it a constant (goconst)
		str = "HIT"
		      ^
agent/http_test.go:907:50: string `bob` has 3 occurrences, make it a constant (goconst)
	if source.Datacenter != "dc1" || source.Node != "bob" {
	                                                ^
agent/catalog_endpoint_test.go:360:16: string `127.0.0.2` has 5 occurrences, make it a constant (goconst)
	if address != "127.0.0.2" {
	              ^
agent/catalog_endpoint_test.go:1435:25: string `127.0.0.55` has 6 occurrences, make it a constant (goconst)
	args.Service.Address = "127.0.0.55"
	                       ^
agent/agent_endpoint.go:1524:21: string `default` has 9 occurrences, make it a constant (goconst)
		case "acl_token", "default":
		                  ^
agent/dns.go:547:13: string `tcp` has 6 occurrences, but such constant `TCP` already exists (goconst)
		network = "tcp"
		          ^
agent/agent_endpoint_test.go:4555:18: string `foo` has 34 occurrences, make it a constant (goconst)
				ns.Service = "foo"
				             ^
agent/session_endpoint_test.go:402:9: string `/v1/session/create` has 3 occurrences, make it a constant (goconst)
	url := "/v1/session/create"
	       ^
agent/http.go:605:18: string `application/json` has 3 occurrences, make it a constant (goconst)
		contentType := "application/json"
		               ^
agent/dns_reverse_lookup_test.go:402:19: string `foo.node.dc1.consul.` has 14 occurrences, make it a constant (goconst)
	if ptrRec.Ptr != "foo.node.dc1.consul." {
	                 ^
agent/keyring_test.go:262:10: string `4leC33rgtXKIVUr9Nr0snQ==` has 3 occurrences, make it a constant (goconst)
	key2 := "4leC33rgtXKIVUr9Nr0snQ=="
	        ^
agent/http.go:570:20: string `OPTIONS` has 3 occurrences, make it a constant (goconst)
		if req.Method == "OPTIONS" && len(methods) > 0 {
		                 ^
agent/agent_endpoint.go:1249:137: string `true` has 7 occurrences, make it a constant (goconst)
	if len(query["replace-existing-checks"]) > 0 && (query.Get("replace-existing-checks") == "" || query.Get("replace-existing-checks") == "true") {
	                                                                                                                                       ^
agent/dns_service_lookup_test.go:810:23: string `web.service.consul.` has 5 occurrences, make it a constant (goconst)
		if srvRec.Target != "web.service.consul." {
		                    ^
agent/event_endpoint_test.go:49:19: string `test` has 5 occurrences, make it a constant (goconst)
	if event.Name != "test" {
	                 ^
v1.61.0
command/catalog/list/nodes/catalog_list_nodes_test.go:100:18: string `No nodes match the given query` has 3 occurrences, make it a constant (goconst)
		if expected := "No nodes match the given query"; !strings.Contains(output, expected) {
		               ^
agent/router/router_test.go:131:10: string `node0.dc0` has 6 occurrences, make it a constant (goconst)
	self := "node0.dc0"
	        ^
agent/xds/accesslogs/accesslogs.go:112:16: string `json` has 3 occurrences, make it a constant (goconst)
		formatType = "json"
		             ^
command/snapshot/inspect/snapshot_inspect_test.go:104:14: string `./testdata/backupWithKV.snap` has 3 occurrences, make it a constant (goconst)
	filepath := "./testdata/backupWithKV.snap"
	            ^
agent/grpc-external/services/peerstream/stream_test.go:1580:14: string `billing` has 3 occurrences, make it a constant (goconst)
	peerName := "billing"
	            ^
agent/grpc-external/services/peerstream/stream_test.go:1581:12: string `1fabcd52-1d46-49b0-b1d8-71559aee47f5` has 3 occurrences, make it a constant (goconst)
	peerID := "1fabcd52-1d46-49b0-b1d8-71559aee47f5"
	          ^
agent/grpc-internal/resolver/resolver.go:56:7: string `server` has 3 occurrences, make it a constant (goconst)
	case "server", "client":
	     ^
agent/grpc-internal/resolver/resolver.go:103:19: string `leader` has 3 occurrences, make it a constant (goconst)
	if serverType == "leader" {
	                 ^
command/connect/redirecttraffic/redirect_traffic_test.go:587:18: string `test-node` has 3 occurrences, make it a constant (goconst)
				c.nodeName = "test-node"
				             ^
command/connect/redirecttraffic/redirect_traffic_test.go:82:17: string `test-proxy-id` has 17 occurrences, make it a constant (goconst)
				c.proxyID = "test-proxy-id"
				            ^
agent/auto-config/mock_test.go:69:10: string `redacted` has 5 occurrences, make it a constant (goconst)
		priv = "redacted"
		       ^
internal/go-sso/oidcauth/oidcauthtest/testing.go:191:20: string `GET` has 4 occurrences, make it a constant (goconst)
		if req.Method != "GET" {
		                 ^
agent/grpc-external/services/resource/delete_test.go:87:34: string `Default` has 18 occurrences, make it a constant (goconst)
				artistId.Tenancy.Partition = "Default"
				                             ^
agent/grpc-external/services/resource/list_test.go:76:29: string `bad` has 3 occurrences, make it a constant (goconst)
				req.Tenancy.Namespace = "bad"
				                        ^
agent/grpc-external/services/resource/delete_test.go:115:39: string `ishouldnothaveanamespace` has 5 occurrences, make it a constant (goconst)
				recordLabelId.Tenancy.Namespace = "ishouldnothaveanamespace"
				                                  ^
agent/grpc-external/services/resource/list_by_owner_test.go:228:28: string `boguspartition` has 4 occurrences, make it a constant (goconst)
				id.Tenancy.Partition = "boguspartition"
				                       ^
agent/grpc-external/services/resource/mutate_and_validate_test.go:144:39: string `ap1` has 4 occurrences, make it a constant (goconst)
			recordLabel.Id.Tenancy.Partition = "ap1"
			                                   ^
agent/envoyextensions/builtin/otel-access-logging/otel_access_logging.go:71:105: string `inbound` has 3 occurrences, make it a constant (goconst)
	return (!isInboundListener && a.ListenerType == "outbound") || (isInboundListener && a.ListenerType == "inbound")
	                                                                                                       ^
agent/connect/csr.go:41:7: string `rsa` has 3 occurrences, but such constant `PrivateKeyTypeRSA` already exists (goconst)
	case "rsa":
	     ^
agent/connect/sni.go:35:15: string `default` has 11 occurrences, make it a constant (goconst)
		partition = "default"
		            ^
agent/connect/uri.go:49:21: string `spiffe` has 6 occurrences, make it a constant (goconst)
	if input.Scheme != "spiffe" {
	                   ^
agent/rpc/peering/service_test.go:86:52: string `127.0.0.1` has 4 occurrences, make it a constant (goconst)
		c.SerfLANConfig.MemberlistConfig.AdvertiseAddr = "127.0.0.1"
		                                                 ^
agent/rpc/peering/service_test.go:428:21: string `dc2` has 6 occurrences, make it a constant (goconst)
		conf.Datacenter = "dc2"
		                  ^
command/connect/envoy/bootstrap_config.go:841:8: string `default` has 3 occurrences, make it a constant (goconst)
		ns = "default"
		     ^
agent/local/state_test.go:213:8: string `api` has 4 occurrences, make it a constant (goconst)
		case "api":
		     ^
agent/local/state_test.go:215:8: string `cache` has 4 occurrences, make it a constant (goconst)
		case "cache":
		     ^
agent/local/state_test.go:1867:17: string `changed` has 4 occurrences, make it a constant (goconst)
	eCopy.Output = "changed"
	               ^
agent/local/state_test.go:209:8: string `redis` has 3 occurrences, make it a constant (goconst)
		case "redis":
		     ^
agent/local/state_test.go:211:8: string `web` has 10 occurrences, make it a constant (goconst)
		case "web":
		     ^
agent/local/state_test.go:1331:9: string `serfHealth` has 4 occurrences, make it a constant (goconst)
			case "serfHealth":
			     ^
agent/local/state_test.go:207:8: string `mysql` has 7 occurrences, make it a constant (goconst)
		case "mysql":
		     ^
agent/proxycfg-sources/catalog/config_source_test.go:29:14: string `node-name` has 4 occurrences, make it a constant (goconst)
	nodeName := "node-name"
	            ^
agent/proxycfg-sources/catalog/config_source_test.go:30:11: string `token` has 5 occurrences, make it a constant (goconst)
	token := "token"
	         ^
agent/consul/discoverychain/compile_test.go:147:27: string `default` has 4 occurrences, make it a constant (goconst)
				tc.expect.Namespace = "default"
				                      ^
agent/consul/discoverychain/compile_test.go:149:28: string `dc1` has 4 occurrences, make it a constant (goconst)
				tc.expect.Datacenter = "dc1"
				                       ^
command/exec/exec_test.go:159:13: string `foo` has 6 occurrences, make it a constant (goconst)
	conf.tag = "foo"
	           ^
agent/structs/structs_test.go:102:12: string `nope` has 4 occurrences, make it a constant (goconst)
				r.ID = "nope"
				       ^
agent/structs/check_type.go:287:10: string `tcp` has 5 occurrences, but such constant `ListenerProtocolTCP` already exists (goconst)
		return "tcp"
		       ^
agent/structs/structs_test.go:1458:28: string `XXX` has 14 occurrences, make it a constant (goconst)
	check(func() { other.ID = "XXX" }, func() { other.ID = "node1" })
	                          ^
agent/structs/check_type.go:281:10: string `grpc` has 3 occurrences, make it a constant (goconst)
		return "grpc"
		       ^
agent/structs/testing_connect_proxy_config.go:44:29: string `foo` has 11 occurrences, make it a constant (goconst)
		db.DestinationNamespace = "foo"
		                          ^
agent/structs/config_entry_ce.go:46:13: string `default` has 3 occurrences, but such constant `IntentionDefaultNamespace` already exists (goconst)
	if name != "default" {
	           ^
agent/structs/connect_proxy_config.go:644:10: string `127.0.0.1` has 6 occurrences, make it a constant (goconst)
		addr = "127.0.0.1"
		       ^
agent/structs/structs_test.go:2950:32: string `/certs/cert.pem` has 3 occurrences, make it a constant (goconst)
	check(func() { other.CAFile = "/certs/cert.pem" }, func() { other.CAFile = ca })
	                              ^
agent/structs/intention_test.go:178:38: string `foo*` has 4 occurrences, make it a constant (goconst)
			func(x *Intention) { x.SourceNS = "foo*" },
			                                  ^
agent/structs/check_type.go:283:10: string `http` has 3 occurrences, but such constant `defaultExposeProtocol` already exists (goconst)
		return "http"
		       ^
agent/consul/authmethod/kubeauth/k8s_test.go:210:18: string `invalid` has 3 occurrences, make it a constant (goconst)
			method.Type = "invalid"
			              ^
agent/envoyextensions/builtin/ext-authz/ext_authz.go:67:105: string `inbound` has 3 occurrences, make it a constant (goconst)
	return (!isInboundListener && a.ListenerType == "outbound") || (isInboundListener && a.ListenerType == "inbound")
	                                                                                                       ^
agent/xds/clusters.go:770:38: string `http2` has 12 occurrences, make it a constant (goconst)
			isHTTP2 = upstreamCfg.Protocol == "http2" || upstreamCfg.Protocol == "grpc"
			                                  ^
agent/xds/xds_protocol_helpers_test.go:449:7: string `tcp:db` has 3 occurrences, make it a constant (goconst)
	case "tcp:db":
	     ^
Command Mean [s] Min [s] Max [s] Relative
local 2.601 ± 0.053 2.550 2.724 1.02 ± 0.02
v1.61.0 2.552 ± 0.021 2.515 2.577 1.00

go-delve/delve

local
pkg/logflags/logflags_test.go:32:43: string `bar` has 3 occurrences, make it a constant (goconst)
		if len(fields) != 1 || fields["foo"] != "bar" {
		                                        ^
pkg/proc/test/support.go:127:66: string `windows` has 4 occurrences, make it a constant (goconst)
	if ver, _ = goversion.Parse(runtime.Version()); runtime.GOOS == "windows" && ver.Major > 0 && !ver.AfterOrEqual(goversion.GoVersion{Major: 1, Minor: 9, Rev: -1}) {
	                                                                ^
pkg/proc/test/support.go:360:21: string `linux` has 4 occurrences, make it a constant (goconst)
	if runtime.GOOS != "linux" {
	                   ^
pkg/proc/test/support.go:328:23: string `ppc64le` has 3 occurrences, make it a constant (goconst)
	if runtime.GOARCH == "ppc64le" {
	                     ^
pkg/proc/test/support.go:312:21: string `darwin` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "darwin" && testBackend == "native" {
	                   ^
pkg/proc/test/support.go:319:23: string `riscv64` has 3 occurrences, make it a constant (goconst)
	if runtime.GOARCH == "riscv64" {
	                     ^
pkg/proc/test/support.go:322:23: string `arm64` has 3 occurrences, make it a constant (goconst)
	if runtime.GOARCH == "arm64" {
	                     ^
pkg/dwarf/godwarf/type.go:810:13: string `union` has 3 occurrences, make it a constant (goconst)
			t.Kind = "union"
			         ^
service/dap/daptest/client.go:364:34: string `instruction` has 3 occurrences, make it a constant (goconst)
	request.Arguments.Granularity = "instruction"
	                                ^
pkg/terminal/starbind/conv.go:194:68: string `Expr` has 5 occurrences, make it a constant (goconst)
	if v.v.Type().Name() != "Variable" || (name != "Value" && name != "Expr") {
	                                                                  ^
pkg/terminal/command_test.go:307:23: string `ppc64le` has 6 occurrences, make it a constant (goconst)
	if runtime.GOARCH == "ppc64le" && buildMode == "pie" {
	                     ^
pkg/terminal/command_test.go:39:37: string `pie` has 7 occurrences, make it a constant (goconst)
	if buildMode != "" && buildMode != "pie" {
	                                   ^
pkg/terminal/command.go:3235:16: string `-clear` has 4 occurrences, make it a constant (goconst)
	if args[0] == "-clear" {
	              ^
pkg/terminal/command.go:2621:21: string `windows` has 4 occurrences, make it a constant (goconst)
	if runtime.GOOS != "windows" && strings.HasPrefix(args, "~") {
	                   ^
service/test/integration2_test.go:2705:25: string `main.testfn` has 3 occurrences, make it a constant (goconst)
		if bp.FunctionName != "main.testfn" {
		                      ^
service/test/integration1_test.go:720:21: string `darwin` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
	                   ^
service/test/integration1_test.go:994:13: string `n == 7` has 3 occurrences, make it a constant (goconst)
		bp.Cond = "n == 7"
		          ^
service/test/integration1_test.go:113:45: string `firstbreakpoint` has 4 occurrences, make it a constant (goconst)
		if state.CurrentThread.Breakpoint.Name != "firstbreakpoint" || !state.CurrentThread.Breakpoint.Tracepoint {
		                                          ^
service/test/integration1_test.go:565:45: string `ppc64le` has 10 occurrences, make it a constant (goconst)
	if buildMode == "pie" && runtime.GOARCH == "ppc64le" {
	                                           ^
service/test/integration1_test.go:911:205: string `main.afunction` has 4 occurrences, make it a constant (goconst)
			if d3[i].Loc.Line == 29 && (strings.HasPrefix(d3[i].Text, "call") || strings.HasPrefix(d3[i].Text, "CALL")) && d3[i].DestLoc != nil && d3[i].DestLoc.Function != nil && d3[i].DestLoc.Function.Name() == "main.afunction" {
			                                                                                                                                                                                                         ^
service/test/integration2_test.go:638:11: string `break.go` has 3 occurrences, make it a constant (goconst)
		if f != "break.go" && l != 7 {
		        ^
service/test/integration1_test.go:638:22: string `windows` has 9 occurrences, make it a constant (goconst)
		if runtime.GOOS == "windows" {
		                   ^
service/test/integration1_test.go:40:18: string `pie` has 15 occurrences, make it a constant (goconst)
	if buildMode == "pie" {
	                ^
service/test/integration2_test.go:2103:44: string `main.main` has 3 occurrences, make it a constant (goconst)
	if state.CurrentThread.Function.Name() != "main.main" {
	                                          ^
pkg/gobuild/defaultexe.go:14:21: string `windows` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
pkg/proc/core/core_test.go:27:37: string `pie` has 5 occurrences, make it a constant (goconst)
	if buildMode != "" && buildMode != "pie" {
	                                   ^
pkg/proc/core/core_test.go:299:82: string `main.main` has 4 occurrences, make it a constant (goconst)
		if panickingStack[i].Current.Fn != nil && panickingStack[i].Current.Fn.Name == "main.main" {
		                                                                               ^
pkg/proc/core/core_test.go:252:21: string `linux` has 5 occurrences, make it a constant (goconst)
	if runtime.GOOS != "linux" || runtime.GOARCH == "386" {
	                   ^
pkg/config/config.go:221:59: string `linux` has 3 occurrences, make it a constant (goconst)
	if os.Getenv("XDG_CONFIG_HOME") == "" && runtime.GOOS != "linux" {
	                                                         ^
pkg/proc/evalop/evalcompile.go:267:19: string `runtime` has 5 occurrences, make it a constant (goconst)
			case x.Name == "runtime" && node.Sel.Name == "curg":
			               ^
cmd/dlv/dlv_test.go:336:21: string `linux` has 6 occurrences, make it a constant (goconst)
	if runtime.GOOS == "linux" && runtime.GOARCH == "ppc64le" {
	                   ^
cmd/dlv/dlv_test.go:160:22: string `windows` has 3 occurrences, make it a constant (goconst)
		if runtime.GOOS != "windows" {
		                   ^
cmd/dlv/dlv_test.go:1111:24: string `true` has 4 occurrences, make it a constant (goconst)
	if os.Getenv("CI") == "true" {
	                      ^
cmd/dlv/dlv_test.go:1114:50: string `amd64` has 4 occurrences, make it a constant (goconst)
	if runtime.GOOS != "linux" || runtime.GOARCH != "amd64" {
	                                                ^
service/dap/server.go:3455:22: string `runtime error` has 4 occurrences, make it a constant (goconst)
		body.ExceptionId = "runtime error"
		                   ^
service/dap/server_test.go:476:43: string `console` has 8 occurrences, make it a constant (goconst)
		if oep.Seq != 0 || oep.Body.Category != "console" {
		                                        ^
service/dap/server.go:981:42: string `test` has 4 occurrences, make it a constant (goconst)
	if args.Mode == "debug" || args.Mode == "test" {
	                                        ^
service/dap/server.go:3451:32: string `next while nexting` has 3 occurrences, make it a constant (goconst)
		if s.exceptionErr.Error() != "next while nexting" && (state == nil || state.CurrentThread == nil || g.Thread == nil || state.CurrentThread.ID != g.Thread.ThreadID()) {
		                             ^
service/dap/server.go:934:15: string `debug` has 4 occurrences, make it a constant (goconst)
		args.Mode = "debug"
		            ^
service/dap/server.go:3724:26: string `breakpoint` has 15 occurrences, make it a constant (goconst)
			stopped.Body.Reason = "breakpoint"
			                      ^
service/dap/server.go:3730:28: string `exception` has 10 occurrences, make it a constant (goconst)
					stopped.Body.Reason = "exception"
					                      ^
service/dap/server.go:1728:10: string `runtime` has 3 occurrences, make it a constant (goconst)
		return "runtime"
		       ^
service/dap/server_test.go:6547:81: string `stderr` has 5 occurrences, make it a constant (goconst)
		if !strings.HasPrefix(oe.Body.Output, "Build Error: ") || oe.Body.Category != "stderr" {
		                                                                              ^
service/dap/server.go:964:18: string `core` has 3 occurrences, make it a constant (goconst)
	if args.Mode == "core" {
	                ^
service/dap/server.go:3716:26: string `step` has 9 occurrences, make it a constant (goconst)
			stopped.Body.Reason = "step"
			                      ^
service/dap/server_test.go:3862:9: string `launch` has 5 occurrences, make it a constant (goconst)
			case "launch":
			     ^
service/dap/server.go:3718:26: string `pause` has 4 occurrences, make it a constant (goconst)
			stopped.Body.Reason = "pause"
			                      ^
service/dap/server.go:889:21: string `windows` has 7 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" && filepath.Ext(name) != ".exe" {
	                   ^
service/dap/server.go:3430:23: string `panic` has 8 occurrences, make it a constant (goconst)
			body.ExceptionId = "panic"
			                   ^
service/dap/server_test.go:3859:9: string `attach` has 4 occurrences, make it a constant (goconst)
			case "attach":
			     ^
v1.61.0
pkg/gobuild/defaultexe.go:14:21: string `windows` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
pkg/proc/test/support.go:319:23: string `riscv64` has 3 occurrences, make it a constant (goconst)
	if runtime.GOARCH == "riscv64" {
	                     ^
pkg/proc/test/support.go:360:21: string `linux` has 4 occurrences, make it a constant (goconst)
	if runtime.GOOS != "linux" {
	                   ^
pkg/proc/test/support.go:127:66: string `windows` has 4 occurrences, make it a constant (goconst)
	if ver, _ = goversion.Parse(runtime.Version()); runtime.GOOS == "windows" && ver.Major > 0 && !ver.AfterOrEqual(goversion.GoVersion{Major: 1, Minor: 9, Rev: -1}) {
	                                                                ^
pkg/proc/test/support.go:312:21: string `darwin` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "darwin" && testBackend == "native" {
	                   ^
pkg/proc/test/support.go:322:23: string `arm64` has 3 occurrences, make it a constant (goconst)
	if runtime.GOARCH == "arm64" {
	                     ^
pkg/proc/test/support.go:328:23: string `ppc64le` has 3 occurrences, make it a constant (goconst)
	if runtime.GOARCH == "ppc64le" {
	                     ^
pkg/proc/evalop/evalcompile.go:267:19: string `runtime` has 5 occurrences, make it a constant (goconst)
			case x.Name == "runtime" && node.Sel.Name == "curg":
			               ^
pkg/terminal/starbind/conv.go:194:68: string `Expr` has 5 occurrences, make it a constant (goconst)
	if v.v.Type().Name() != "Variable" || (name != "Value" && name != "Expr") {
	                                                                  ^
cmd/dlv/dlv_test.go:336:21: string `linux` has 6 occurrences, make it a constant (goconst)
	if runtime.GOOS == "linux" && runtime.GOARCH == "ppc64le" {
	                   ^
cmd/dlv/dlv_test.go:160:22: string `windows` has 3 occurrences, make it a constant (goconst)
		if runtime.GOOS != "windows" {
		                   ^
cmd/dlv/dlv_test.go:1111:24: string `true` has 4 occurrences, make it a constant (goconst)
	if os.Getenv("CI") == "true" {
	                      ^
cmd/dlv/dlv_test.go:1114:50: string `amd64` has 4 occurrences, make it a constant (goconst)
	if runtime.GOOS != "linux" || runtime.GOARCH != "amd64" {
	                                                ^
pkg/proc/core/core_test.go:27:37: string `pie` has 5 occurrences, make it a constant (goconst)
	if buildMode != "" && buildMode != "pie" {
	                                   ^
pkg/proc/core/core_test.go:252:21: string `linux` has 5 occurrences, make it a constant (goconst)
	if runtime.GOOS != "linux" || runtime.GOARCH == "386" {
	                   ^
pkg/proc/core/core_test.go:299:82: string `main.main` has 4 occurrences, make it a constant (goconst)
		if panickingStack[i].Current.Fn != nil && panickingStack[i].Current.Fn.Name == "main.main" {
		                                                                               ^
service/test/integration1_test.go:720:21: string `darwin` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
	                   ^
service/test/integration1_test.go:911:205: string `main.afunction` has 4 occurrences, make it a constant (goconst)
			if d3[i].Loc.Line == 29 && (strings.HasPrefix(d3[i].Text, "call") || strings.HasPrefix(d3[i].Text, "CALL")) && d3[i].DestLoc != nil && d3[i].DestLoc.Function != nil && d3[i].DestLoc.Function.Name() == "main.afunction" {
			                                                                                                                                                                                                         ^
service/test/integration1_test.go:113:45: string `firstbreakpoint` has 4 occurrences, make it a constant (goconst)
		if state.CurrentThread.Breakpoint.Name != "firstbreakpoint" || !state.CurrentThread.Breakpoint.Tracepoint {
		                                          ^
service/test/integration1_test.go:40:18: string `pie` has 15 occurrences, make it a constant (goconst)
	if buildMode == "pie" {
	                ^
service/test/integration1_test.go:565:45: string `ppc64le` has 10 occurrences, make it a constant (goconst)
	if buildMode == "pie" && runtime.GOARCH == "ppc64le" {
	                                           ^
service/test/integration2_test.go:638:11: string `break.go` has 3 occurrences, make it a constant (goconst)
		if f != "break.go" && l != 7 {
		        ^
service/test/integration2_test.go:2705:25: string `main.testfn` has 3 occurrences, make it a constant (goconst)
		if bp.FunctionName != "main.testfn" {
		                      ^
service/test/integration1_test.go:994:13: string `n == 7` has 3 occurrences, make it a constant (goconst)
		bp.Cond = "n == 7"
		          ^
service/test/integration1_test.go:638:22: string `windows` has 9 occurrences, make it a constant (goconst)
		if runtime.GOOS == "windows" {
		                   ^
service/test/integration2_test.go:2103:44: string `main.main` has 3 occurrences, make it a constant (goconst)
	if state.CurrentThread.Function.Name() != "main.main" {
	                                          ^
pkg/proc/native/proc.go:269:48: string `linux` has 4 occurrences, make it a constant (goconst)
	if len(procgrp.procs) != 1 && runtime.GOOS != "linux" && runtime.GOOS != "windows" {
	                                              ^
pkg/proc/gdbserial/gdbserver.go:462:21: string `windows` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
pkg/proc/gdbserial/gdbserver_conn.go:319:10: string `name` has 3 occurrences, make it a constant (goconst)
				case "name":
				     ^
pkg/proc/gdbserial/gdbserver.go:250:7: string `amd64` has 3 occurrences, make it a constant (goconst)
	case "amd64":
	     ^
pkg/proc/gdbserial/gdbserver.go:939:25: string `linux` has 4 occurrences, make it a constant (goconst)
	if p.BinInfo().GOOS == "linux" {
	                       ^
pkg/proc/gdbserial/gdbserver.go:252:7: string `arm64` has 7 occurrences, make it a constant (goconst)
	case "arm64":
	     ^
pkg/proc/gdbserial/gdbserver.go:556:21: string `darwin` has 7 occurrences, make it a constant (goconst)
	if runtime.GOOS == "darwin" {
	                   ^
service/dap/daptest/client.go:364:34: string `instruction` has 3 occurrences, make it a constant (goconst)
	request.Arguments.Granularity = "instruction"
	                                ^
service/debugger/debugger.go:2481:7: string `linux` has 7 occurrences, make it a constant (goconst)
	case "linux", "freebsd":
	     ^
service/debugger/debugger_test.go:30:15: string `debug` has 4 occurrences, make it a constant (goconst)
	debugname := "debug"
	             ^
service/debugger/debugger.go:288:7: string `lldb` has 3 occurrences, make it a constant (goconst)
	case "lldb":
	     ^
service/debugger/debugger.go:330:22: string `darwin` has 5 occurrences, make it a constant (goconst)
		if runtime.GOOS == "darwin" {
		                   ^
service/debugger/debugger.go:706:22: string `windows` has 3 occurrences, make it a constant (goconst)
		if runtime.GOOS == "windows" {
		                   ^
service/debugger/debugger.go:286:7: string `native` has 3 occurrences, make it a constant (goconst)
	case "native":
	     ^
service/debugger/debugger.go:329:7: string `default` has 3 occurrences, make it a constant (goconst)
	case "default":
	     ^
service/dap/server_test.go:476:43: string `console` has 8 occurrences, make it a constant (goconst)
		if oep.Seq != 0 || oep.Body.Category != "console" {
		                                        ^
service/dap/server.go:1728:10: string `runtime` has 3 occurrences, make it a constant (goconst)
		return "runtime"
		       ^
service/dap/server.go:3730:28: string `exception` has 10 occurrences, make it a constant (goconst)
					stopped.Body.Reason = "exception"
					                      ^
service/dap/server_test.go:6547:81: string `stderr` has 5 occurrences, make it a constant (goconst)
		if !strings.HasPrefix(oe.Body.Output, "Build Error: ") || oe.Body.Category != "stderr" {
		                                                                              ^
service/dap/server.go:934:15: string `debug` has 4 occurrences, make it a constant (goconst)
		args.Mode = "debug"
		            ^
service/dap/server.go:3716:26: string `step` has 9 occurrences, make it a constant (goconst)
			stopped.Body.Reason = "step"
			                      ^
service/dap/server.go:964:18: string `core` has 3 occurrences, make it a constant (goconst)
	if args.Mode == "core" {
	                ^
service/dap/server.go:3455:22: string `runtime error` has 4 occurrences, make it a constant (goconst)
		body.ExceptionId = "runtime error"
		                   ^
service/dap/config.go:58:32: string `-clear` has 4 occurrences, make it a constant (goconst)
	if strings.TrimSpace(rest) == "-clear" {
	                              ^
Command Mean [ms] Min [ms] Max [ms] Relative
local 542.2 ± 7.3 525.4 548.7 1.05 ± 0.03
v1.61.0 514.4 ± 14.9 489.1 533.6 1.00

etcd-io/etcd

local
tools/etcd-dump-logs/main.go:202:78: string `InternalRaftRequest` has 9 occurrences, make it a constant (goconst)
	return entry.Type == raftpb.EntryNormal && rr.Unmarshal(entry.Data) == nil, "InternalRaftRequest"
	                                                                            ^
v1.61.0
tools/etcd-dump-logs/main.go:202:78: string `InternalRaftRequest` has 9 occurrences, make it a constant (goconst)
	return entry.Type == raftpb.EntryNormal && rr.Unmarshal(entry.Data) == nil, "InternalRaftRequest"
	                                                                            ^
Command Mean [ms] Min [ms] Max [ms] Relative
local 310.1 ± 5.9 302.7 324.0 1.09 ± 0.04
v1.61.0 283.5 ± 8.9 273.1 297.5 1.00

go-gitea/gitea

local
models/asymkey/gpg_key_commit_verification.go:479:30: string `unmatched` has 3 occurrences, make it a constant (goconst)
		verification.TrustStatus = "unmatched"
		                           ^
models/asymkey/ssh_key_parse.go:246:10: string `ecdsa` has 3 occurrences, make it a constant (goconst)
		return "ecdsa", 256, nil
		       ^
models/repo/repo.go:90:10: string `default` has 3 occurrences, make it a constant (goconst)
		return "default"
		       ^
modules/actions/workflows.go:360:8: string `types` has 7 occurrences, make it a constant (goconst)
		case "types":
		     ^
modules/setting/actions.go:65:39: string `none` has 3 occurrences, make it a constant (goconst)
	return strings.ToLower(string(c)) == "none"
	                                     ^
modules/setting/attachment_test.go:122:12: string `
[storage]
STORAGE_TYPE = minio
` has 5 occurrences, make it a constant (goconst)
	iniStr := `
	          ^
modules/setting/database.go:105:15: string `unix` has 3 occurrences, make it a constant (goconst)
			connType = "unix"
			           ^
modules/setting/database.go:154:10: string `127.0.0.1` has 4 occurrences, make it a constant (goconst)
		host = "127.0.0.1"
		       ^
modules/setting/mailer.go:173:8: string `smtp+starttls` has 3 occurrences, make it a constant (goconst)
		case "smtp+starttls":
		     ^
modules/setting/storage.go:58:21: string `******` has 4 occurrences, make it a constant (goconst)
		cfg.AccessKeyID = "******"
		                  ^
routers/api/packages/api.go:543:33: string `HEAD` has 3 occurrences, make it a constant (goconst)
				isHead := ctx.Req.Method == "HEAD"
				                            ^
routers/web/admin/users_test.go:31:14: string `gitea` has 5 occurrences, make it a constant (goconst)
	username := "gitea"
	            ^
routers/web/admin/users_test.go:32:11: string `[email protected]` has 4 occurrences, make it a constant (goconst)
	email := "[email protected]"
	         ^
routers/web/org/members.go:106:7: string `remove` has 3 occurrences, make it a constant (goconst)
	case "remove":
	     ^
routers/web/org/members.go:117:7: string `leave` has 3 occurrences, make it a constant (goconst)
	case "leave":
	     ^
routers/web/org/teams.go:168:10: string `team` has 3 occurrences, make it a constant (goconst)
		page = "team"
		       ^
routers/web/repo/activity.go:37:7: string `weekly` has 3 occurrences, make it a constant (goconst)
	case "weekly":
	     ^
routers/web/repo/cherry_pick.go:39:43: string `revert` has 3 occurrences, make it a constant (goconst)
	if ctx.FormString("cherry-pick-type") == "revert" {
	                                         ^
routers/web/repo/compare.go:722:33: string `...` has 3 occurrences, make it a constant (goconst)
	ctx.Data["CompareSeparator"] = "..."
	                               ^
routers/web/repo/compare.go:892:25: string `down` has 3 occurrences, make it a constant (goconst)
	} else if direction == "down" && (idxLeft-lastLeft) > chunkSize {
	                       ^
routers/web/repo/issue.go:150:14: string `all` has 6 occurrences, make it a constant (goconst)
		viewType = "all"
		           ^
routers/web/repo/issue.go:246:7: string `closed` has 8 occurrences, make it a constant (goconst)
	case "closed":
	     ^
routers/web/repo/issue.go:476:23: string `open` has 6 occurrences, make it a constant (goconst)
		ctx.Data["State"] = "open"
		                    ^
routers/web/repo/issue.go:504:42: string `pulls` has 10 occurrences, make it a constant (goconst)
	isPullList := ctx.PathParam(":type") == "pulls"
	                                        ^
routers/web/repo/issue.go:1010:42: string `project` has 3 occurrences, make it a constant (goconst)
			ctx.Data["redirect_after_creation"] = "project"
			                                      ^
routers/web/repo/issue.go:1385:31: string `issues` has 10 occurrences, make it a constant (goconst)
	if ctx.PathParam(":type") == "issues" {
	                             ^
routers/web/repo/issue.go:2433:37: string `detach` has 4 occurrences, make it a constant (goconst)
	if action != "attach" && action != "detach" {
	                                   ^
routers/web/repo/issue.go:2945:7: string `close` has 5 occurrences, make it a constant (goconst)
	case "close":
	     ^
routers/web/repo/middlewares.go:42:44: string `split` has 4 occurrences, make it a constant (goconst)
		ctx.Data["IsSplitStyle"] = queryStyle == "split"
		                                         ^
routers/web/repo/middlewares.go:51:19: string `unified` has 3 occurrences, make it a constant (goconst)
	if queryStyle == "unified" || queryStyle == "split" {
	                 ^
routers/web/repo/middlewares.go:101:34: string `true` has 3 occurrences, make it a constant (goconst)
	if showOutdatedCommentsValue != "true" && showOutdatedCommentsValue != "false" {
	                                ^
routers/web/repo/repo.go:316:7: string `watch` has 4 occurrences, make it a constant (goconst)
	case "watch":
	     ^
routers/web/repo/repo.go:318:7: string `unwatch` has 4 occurrences, make it a constant (goconst)
	case "unwatch":
	     ^
routers/web/repo/repo.go:320:7: string `star` has 4 occurrences, make it a constant (goconst)
	case "star":
	     ^
routers/web/repo/repo.go:322:7: string `unstar` has 4 occurrences, make it a constant (goconst)
	case "unstar":
	     ^
routers/web/repo/repo.go:589:7: string `source` has 3 occurrences, make it a constant (goconst)
	case "source":
	     ^
routers/web/repo/wiki.go:229:14: string `Home` has 6 occurrences, make it a constant (goconst)
		pageName = "Home"
		           ^
routers/web/user/home.go:179:45: string `closed` has 5 occurrences, make it a constant (goconst)
		isShowClosed = ctx.FormString("state") == "closed"
		                                          ^
routers/web/user/home.go:319:23: string `open` has 3 occurrences, make it a constant (goconst)
		ctx.Data["State"] = "open"
		                    ^
routers/web/user/home.go:391:14: string `recentupdate` has 3 occurrences, make it a constant (goconst)
		sortType = "recentupdate"
		           ^
routers/web/user/profile.go:89:25: string `overview` has 3 occurrences, make it a constant (goconst)
	if tab == "" || tab == "overview" {
	                       ^
routers/web/user/profile.go:167:7: string `activity` has 3 occurrences, make it a constant (goconst)
	case "activity":
	     ^
services/mailer/mailer.go:230:10: string `localhost` has 3 occurrences, make it a constant (goconst)
	host := "localhost"
	        ^
services/migrations/codebase.go:230:12: string `closed` has 13 occurrences, make it a constant (goconst)
		state := "closed"
		         ^
services/migrations/codebase.go:389:12: string `open` has 5 occurrences, make it a constant (goconst)
		state := "open"
		         ^
services/migrations/gitea_uploader_test.go:135:14: string `migrated` has 3 occurrences, make it a constant (goconst)
	repoName := "migrated"
	            ^
services/migrations/migrate.go:49:17: string `file` has 3 occurrences, make it a constant (goconst)
	if u.Scheme == "file" || u.Scheme == "" {
	               ^
services/repository/files/content_test.go:24:14: string `README.md` has 9 occurrences, make it a constant (goconst)
	treePath := "README.md"
	            ^
services/repository/files/update.go:152:25: string `delete` has 4 occurrences, make it a constant (goconst)
			if file.Operation == "delete" {
			                     ^
services/repository/files/update.go:223:8: string `create` has 4 occurrences, make it a constant (goconst)
		case "create", "update":
		     ^
v1.61.0
models/packages/package_file.go:137:80: string `all` has 3 occurrences, make it a constant (goconst)
	} else if opts.OwnerID != 0 || (opts.PackageType != "" && opts.PackageType != "all") {
	                                                                              ^
models/repo/repo.go:90:10: string `default` has 3 occurrences, make it a constant (goconst)
		return "default"
		       ^
modules/actions/workflows.go:360:8: string `types` has 7 occurrences, make it a constant (goconst)
		case "types":
		     ^
modules/git/batch_reader.go:225:28: string `tree` has 5 occurrences, but such constant `ObjectTree` already exists (goconst)
		if string(line[:idx]) == "tree" {
		                         ^
modules/git/commit_info_nogogit.go:156:13: string `commit` has 7 occurrences, but such constant `ObjectCommit` already exists (goconst)
		if typ != "commit" {
		          ^
modules/git/ref.go:192:13: string `branch` has 3 occurrences, but such constant `ObjectBranch` already exists (goconst)
		refType = "branch"
		          ^
modules/git/ref.go:194:13: string `tag` has 6 occurrences, but such constant `ObjectTag` already exists (goconst)
		refType = "tag"
		          ^
modules/git/repo_tag_test.go:81:18: string `8006ff9adbf0cb94da7dad9e537e53817f9fa5c0` has 3 occurrences, make it a constant (goconst)
	aTagCommitID := "8006ff9adbf0cb94da7dad9e537e53817f9fa5c0"
	                ^
modules/lfs/client.go:28:24: string `file` has 3 occurrences, make it a constant (goconst)
	if endpoint.Scheme == "file" {
	                      ^
modules/nosql/manager_redis.go:113:7: string `redis+socket` has 4 occurrences, make it a constant (goconst)
	case "redis+socket":
	     ^
modules/nosql/manager_redis.go:162:8: string `password` has 3 occurrences, make it a constant (goconst)
		case "password":
		     ^
modules/setting/actions.go:65:39: string `none` has 3 occurrences, make it a constant (goconst)
	return strings.ToLower(string(c)) == "none"
	                                     ^
modules/setting/attachment_test.go:122:12: string `
[storage]
STORAGE_TYPE = minio
` has 5 occurrences, make it a constant (goconst)
	iniStr := `
	          ^
modules/setting/cache.go:56:7: string `redis` has 4 occurrences, make it a constant (goconst)
	case "redis", "memcache":
	     ^
modules/setting/database.go:105:15: string `unix` has 3 occurrences, make it a constant (goconst)
			connType = "unix"
			           ^
modules/setting/database.go:154:10: string `127.0.0.1` has 4 occurrences, make it a constant (goconst)
		host = "127.0.0.1"
		       ^
modules/setting/log.go:148:7: string `file` has 3 occurrences, make it a constant (goconst)
	case "file":
	     ^
modules/setting/log_test.go:42:16: string `
{
	"console": {
		"BufferLen": 10000,
		"Colorize": false,
		"Expression": "",
		"Flags": "stdflags",
		"Level": "info",
		"Prefix": "",
		"StacktraceLevel": "none",
		"WriterOption": {
			"Stderr": false
		},
		"WriterType": "console"
	}
}
` has 3 occurrences, make it a constant (goconst)
	writerDump := `
	              ^
modules/setting/mailer.go:169:8: string `smtp` has 4 occurrences, make it a constant (goconst)
		case "smtp":
		     ^
modules/setting/mailer.go:171:8: string `smtps` has 4 occurrences, make it a constant (goconst)
		case "smtps":
		     ^
modules/setting/mailer.go:173:8: string `smtp+starttls` has 3 occurrences, make it a constant (goconst)
		case "smtp+starttls":
		     ^
modules/setting/setting.go:39:12: string `dev` has 3 occurrences, make it a constant (goconst)
		AppVer = "dev"
		         ^
modules/setting/storage.go:58:21: string `******` has 4 occurrences, make it a constant (goconst)
		cfg.AccessKeyID = "******"
		                  ^
routers/api/packages/api.go:543:33: string `HEAD` has 3 occurrences, make it a constant (goconst)
				isHead := ctx.Req.Method == "HEAD"
				                            ^
routers/api/packages/chef/auth.go:142:28: string `1.3` has 5 occurrences, make it a constant (goconst)
	case "1.0", "1.1", "1.2", "1.3":
	                          ^
routers/web/admin/users_test.go:31:14: string `gitea` has 5 occurrences, make it a constant (goconst)
	username := "gitea"
	            ^
routers/web/admin/users_test.go:32:11: string `[email protected]` has 4 occurrences, make it a constant (goconst)
	email := "[email protected]"
	         ^
routers/web/explore/repo.go:68:15: string `recentupdate` has 4 occurrences, make it a constant (goconst)
		sortOrder = "recentupdate"
		            ^
services/migrations/codebase.go:230:12: string `closed` has 13 occurrences, make it a constant (goconst)
		state := "closed"
		         ^
services/migrations/codebase.go:389:12: string `open` has 5 occurrences, make it a constant (goconst)
		state := "open"
		         ^
services/migrations/gitea_uploader_test.go:135:14: string `migrated` has 3 occurrences, make it a constant (goconst)
	repoName := "migrated"
	            ^
services/migrations/migrate.go:49:17: string `file` has 3 occurrences, make it a constant (goconst)
	if u.Scheme == "file" || u.Scheme == "" {
	               ^
services/oauth2_provider/jwtsigningkey.go:255:7: string `EdDSA` has 3 occurrences, make it a constant (goconst)
	case "EdDSA":
	     ^
services/release/release_test.go:161:17: string `Changed note` has 4 occurrences, make it a constant (goconst)
	release.Note = "Changed note"
	               ^
services/release/release_test.go:185:18: string `Changed title` has 4 occurrences, make it a constant (goconst)
	release.Title = "Changed title"
	                ^
services/webhook/dingtalk.go:61:16: string `1 new commit` has 5 occurrences, make it a constant (goconst)
		commitDesc = "1 new commit"
		             ^
services/webhook/msteams_test.go:34:20: string `Repository:` has 15 occurrences, make it a constant (goconst)
			if fact.Name == "Repository:" {
			                ^
services/webhook/msteams_test.go:141:27: string `Issue #:` has 4 occurrences, make it a constant (goconst)
			} else if fact.Name == "Issue #:" {
			                       ^
tests/integration/api_activitypub_person_test.go:34:15: string `user2` has 33 occurrences, but such constant `privateActivityTestUser` already exists (goconst)
		username := "user2"
		            ^
tests/integration/api_activitypub_person_test.go:95:16: string `user1` has 22 occurrences, but such constant `privateActivityTestAdmin` already exists (goconst)
		username1 := "user1"
		             ^
tests/integration/api_notification_test.go:37:11: string `2000-01-01T00%3A50%3A01%2B00%3A00` has 3 occurrences, make it a constant (goconst)
	since := "2000-01-01T00%3A50%3A01%2B00%3A00" // 946687801
	         ^
tests/integration/api_packages_cargo_test.go:41:19: string `KN4CK3R` has 8 occurrences, make it a constant (goconst)
	packageAuthor := "KN4CK3R"
	                 ^
tests/integration/api_packages_chef_test.go:267:17: string `test` has 3 occurrences, but such constant `keyword` already exists (goconst)
	packageName := "test"
	               ^
tests/integration/api_packages_conda_test.go:32:17: string `test_package` has 4 occurrences, make it a constant (goconst)
	packageName := "test_package"
	               ^
tests/integration/api_packages_cran_test.go:33:24: string `Gitea Test Package` has 4 occurrences, make it a constant (goconst)
	packageDescription := "Gitea Test Package"
	                      ^
tests/integration/api_repo_edit_test.go:112:19: string `master` has 3 occurrences, make it a constant (goconst)
	defaultBranch := "master"
	                 ^
tests/integration/api_repo_file_create_test.go:55:14: string `base64` has 5 occurrences, make it a constant (goconst)
	encoding := "base64"
	            ^
tests/integration/api_repo_file_delete_test.go:110:27: string `badsha` has 3 occurrences, make it a constant (goconst)
		deleteFileOptions.SHA = "badsha"
		                        ^
tests/integration/api_repo_file_update_test.go:52:9: string `08bd14b2e2852529157324de9c226b3364e76136` has 5 occurrences, make it a constant (goconst)
	sha := "08bd14b2e2852529157324de9c226b3364e76136"
	       ^
tests/integration/api_repo_get_contents_test.go:173:10: string `65f1bf27bc3bf70f64657658635e66094edbcb4d` has 3 occurrences, make it a constant (goconst)
		sha := "65f1bf27bc3bf70f64657658635e66094edbcb4d"
		       ^
Command Mean [s] Min [s] Max [s] Relative
local 1.816 ± 0.011 1.798 1.829 1.01 ± 0.01
v1.61.0 1.789 ± 0.014 1.775 1.813 1.00

google/go-github

local
github/users_emails.go:24:7: string `user/emails` has 3 occurrences, make it a constant (goconst)
	u := "user/emails"
	     ^
github/pulls_reviews_test.go:230:10: string `path/to/file.go` has 3 occurrences, make it a constant (goconst)
	path := "path/to/file.go"
	        ^
github/pulls_reviews_test.go:231:10: string `this is a comment body` has 3 occurrences, make it a constant (goconst)
	body := "this is a comment body"
	        ^
github/messages_test.go:105:13: string `{"yo":true}` has 3 occurrences, make it a constant (goconst)
	payload := `{"yo":true}`
	           ^
github/pulls_reviews_test.go:232:25: string `RIGHT` has 3 occurrences, make it a constant (goconst)
	left, right := "LEFT", "RIGHT"
	                       ^
github/actions_workflow_jobs_test.go:202:10: string `http://github.com/a` has 8 occurrences, make it a constant (goconst)
	want := "http://github.com/a"
	        ^
github/github_test.go:541:30: string `2022-11-29` has 3 occurrences, make it a constant (goconst)
	if got, want := apiVersion, "2022-11-29"; got != want {
	                            ^
github/actions_workflows_test.go:622:18: string `value` has 12 occurrences, make it a constant (goconst)
	inputs["key"] = "value"
	                ^
github/gists_test.go:235:11: string `2013-01-01T00:00:00Z` has 3 occurrences, make it a constant (goconst)
	since := "2013-01-01T00:00:00Z"
	         ^
v1.61.0
github/users_emails.go:24:7: string `user/emails` has 3 occurrences, make it a constant (goconst)
	u := "user/emails"
	     ^
github/gists_test.go:235:11: string `2013-01-01T00:00:00Z` has 3 occurrences, make it a constant (goconst)
	since := "2013-01-01T00:00:00Z"
	         ^
github/pulls_reviews_test.go:231:10: string `this is a comment body` has 3 occurrences, make it a constant (goconst)
	body := "this is a comment body"
	        ^
github/github_test.go:541:30: string `2022-11-29` has 3 occurrences, make it a constant (goconst)
	if got, want := apiVersion, "2022-11-29"; got != want {
	                            ^
github/messages_test.go:105:13: string `{"yo":true}` has 3 occurrences, make it a constant (goconst)
	payload := `{"yo":true}`
	           ^
github/actions_workflow_jobs_test.go:202:10: string `http://github.com/a` has 8 occurrences, make it a constant (goconst)
	want := "http://github.com/a"
	        ^
github/pulls_reviews_test.go:230:10: string `path/to/file.go` has 3 occurrences, make it a constant (goconst)
	path := "path/to/file.go"
	        ^
github/actions_workflows_test.go:622:18: string `value` has 12 occurrences, make it a constant (goconst)
	inputs["key"] = "value"
	                ^
github/pulls_reviews_test.go:232:25: string `RIGHT` has 3 occurrences, make it a constant (goconst)
	left, right := "LEFT", "RIGHT"
	                       ^
Command Mean [ms] Min [ms] Max [ms] Relative
local 770.7 ± 7.3 758.8 782.5 1.05 ± 0.01
v1.61.0 734.8 ± 7.2 726.5 752.2 1.00

golangci/golangci-lint

Command Mean [ms] Min [ms] Max [ms] Relative
local 557.4 ± 14.5 540.1 582.6 1.06 ± 0.04
v1.61.0 525.5 ± 15.7 511.3 555.7 1.00

goreleaser/goreleaser

local
internal/gio/copy_test.go:13:7: string `testdata/somefile.txt` has 5 occurrences, make it a constant (goconst)
	a := "testdata/somefile.txt"
	     ^
internal/pipe/sbom/sbom.go:58:13: string `syft` has 3 occurrences, make it a constant (goconst)
		cfg.Cmd = "syft"
		          ^
internal/pipe/sbom/sbom.go:61:19: string `archive` has 3 occurrences, make it a constant (goconst)
		cfg.Artifacts = "archive"
		                ^
internal/pipe/sbom/sbom.go:67:8: string `any` has 3 occurrences, make it a constant (goconst)
		case "any":
		     ^
internal/pipe/krew/krew_test.go:147:44: string `test` has 20 occurrences, make it a constant (goconst)
				ctx.Config.Krews[0].Repository.Owner = "test"
				                                       ^
internal/pipe/krew/krew_test.go:178:49: string `{{ .Asdsa }` has 6 occurrences, make it a constant (goconst)
				ctx.Config.Krews[0].CommitMessageTemplate = "{{ .Asdsa }"
				                                            ^
internal/pipe/nix/nix.go:496:8: string `darwin` has 4 occurrences, make it a constant (goconst)
		case "darwin":
		     ^
internal/pipe/brew/brew_test.go:177:44: string `test` has 22 occurrences, make it a constant (goconst)
				ctx.Config.Brews[0].Repository.Owner = "test"
				                                       ^
internal/pipe/brew/brew_test.go:276:49: string `{{ .Asdsa }` has 4 occurrences, make it a constant (goconst)
				ctx.Config.Brews[0].CommitMessageTemplate = "{{ .Asdsa }"
				                                            ^
internal/pipe/brew/brew_test.go:179:36: string `https://github.com/goreleaser` has 8 occurrences, make it a constant (goconst)
				ctx.Config.Brews[0].Homepage = "https://github.com/goreleaser"
				                               ^
internal/pipe/sign/sign.go:105:9: string `binary` has 3 occurrences, make it a constant (goconst)
			case "binary":
			     ^
internal/pipe/sign/sign.go:69:13: string `default` has 3 occurrences, make it a constant (goconst)
			cfg.ID = "default"
			         ^
internal/pipe/sign/sign.go:66:20: string `none` has 5 occurrences, make it a constant (goconst)
			cfg.Artifacts = "none"
			                ^
internal/pipe/changelog/changelog.go:250:11: string `asc` has 3 occurrences, make it a constant (goconst)
	case "", "asc", "desc":
	         ^
cmd/init_test.go:14:12: string `foo.yaml` has 3 occurrences, make it a constant (goconst)
	config := "foo.yaml"
	          ^
internal/pipe/nfpm/nfpm.go:206:29: string `ppc64` has 4 occurrences, make it a constant (goconst)
		if artifacts[0].Goarch != "ppc64" {
		                          ^
internal/pipe/nfpm/nfpm_test.go:806:47: string `{{ .NOPE_KEY_FILE }}` has 4 occurrences, make it a constant (goconst)
		ctx.Config.NFPMs[0].Deb.Signature.KeyFile = "{{ .NOPE_KEY_FILE }}"
		                                            ^
internal/pipe/nfpm/nfpm.go:205:21: string `aix` has 4 occurrences, make it a constant (goconst)
	if infoPlatform == "aix" {
	                   ^
internal/pipe/nfpm/nfpm.go:149:13: string `android` has 3 occurrences, make it a constant (goconst)
	if goos != "android" {
	           ^
internal/pipe/nfpm/nfpm_test.go:254:9: string `amd64` has 3 occurrences, make it a constant (goconst)
			case "amd64":
			     ^
internal/pipe/nfpm/nfpm.go:163:15: string `arm` has 3 occurrences, make it a constant (goconst)
	if goarch == "arm" && goarm == "7" {
	             ^
internal/pipe/nfpm/nfpm_test.go:1264:46: string `testdata/testfile.txt` has 7 occurrences, make it a constant (goconst)
		ctx.Config.NFPMs[0].RPM.Scripts.PreTrans = "testdata/testfile.txt"
		                                           ^
internal/pipe/ko/ko.go:123:14: string `none` has 3 occurrences, make it a constant (goconst)
			ko.SBOM = "none"
			          ^
internal/pipe/ko/ko.go:125:14: string `spdx` has 3 occurrences, make it a constant (goconst)
			ko.SBOM = "spdx"
			          ^
internal/pipe/ko/ko_test.go:537:28: string `nope` has 3 occurrences, make it a constant (goconst)
		ctx.Config.Kos[0].SBOM = "nope"
		                         ^
internal/pipe/upx/upx_test.go:88:15: string `windows` has 3 occurrences, make it a constant (goconst)
			if goos == "windows" {
			           ^
internal/pipe/blob/blob_test.go:37:17: string `bucket or provider cannot be empty` has 3 occurrences, make it a constant (goconst)
	errorString := "bucket or provider cannot be empty"
	               ^
internal/client/github_test.go:432:20: string `/repos/someone/something/contents/.github/PULL_REQUEST_TEMPLATE.md` has 6 occurrences, make it a constant (goconst)
		if r.URL.Path == "/repos/someone/something/contents/.github/PULL_REQUEST_TEMPLATE.md" {
		                 ^
internal/client/github_test.go:566:20: string `/repos/someone/something` has 7 occurrences, make it a constant (goconst)
		if r.URL.Path == "/repos/someone/something" {
		                 ^
internal/client/github_test.go:442:20: string `/repos/someone/something/pulls` has 6 occurrences, make it a constant (goconst)
		if r.URL.Path == "/repos/someone/something/pulls" {
		                 ^
internal/client/config_test.go:44:12: string `token` has 6 occurrences, make it a constant (goconst)
			if s == "token" {
			        ^
internal/client/github_test.go:211:20: string `/rate_limit` has 16 occurrences, make it a constant (goconst)
		if r.URL.Path == "/rate_limit" {
		                 ^
internal/client/gitlab_test.go:773:20: string `/api/v4/projects/someone/something` has 3 occurrences, make it a constant (goconst)
		if r.URL.Path == "/api/v4/projects/someone/something" {
		                 ^
internal/client/gitlab_test.go:830:20: string `/api/v4/projects/someone/something/merge_requests` has 3 occurrences, make it a constant (goconst)
		if r.URL.Path == "/api/v4/projects/someone/something/merge_requests" {
		                 ^
internal/client/github_test.go:757:20: string `/repos/someone/something/contents/file.txt` has 8 occurrences, make it a constant (goconst)
		if r.URL.Path == "/repos/someone/something/contents/file.txt" && r.Method == http.MethodGet {
		                 ^
internal/pipe/aur/aur_test.go:164:35: string `https://github.com/goreleaser` has 3 occurrences, make it a constant (goconst)
				ctx.Config.AURs[0].Homepage = "https://github.com/goreleaser"
				                              ^
internal/pipe/aur/aur_test.go:194:31: string `{{ .Asdsa }` has 7 occurrences, make it a constant (goconst)
				ctx.Config.AURs[0].Name = "{{ .Asdsa }"
				                          ^
internal/pipe/archive/archive.go:78:25: string `binary` has 3 occurrences, make it a constant (goconst)
			if archive.Format == "binary" {
			                     ^
internal/pipe/archive/archive_test.go:216:18: string `0.0.1` has 4 occurrences, make it a constant (goconst)
			ctx.Version = "0.0.1"
			              ^
internal/pipe/archive/archive_test.go:217:25: string `v0.0.1` has 4 occurrences, make it a constant (goconst)
			ctx.Git.CurrentTag = "v0.0.1"
			                     ^
v1.61.0
internal/gio/copy_test.go:13:7: string `testdata/somefile.txt` has 5 occurrences, make it a constant (goconst)
	a := "testdata/somefile.txt"
	     ^
internal/pipe/krew/krew_test.go:178:49: string `{{ .Asdsa }` has 6 occurrences, make it a constant (goconst)
				ctx.Config.Krews[0].CommitMessageTemplate = "{{ .Asdsa }"
				                                            ^
internal/pipe/krew/krew_test.go:147:44: string `test` has 20 occurrences, make it a constant (goconst)
				ctx.Config.Krews[0].Repository.Owner = "test"
				                                       ^
cmd/init_test.go:14:12: string `foo.yaml` has 3 occurrences, make it a constant (goconst)
	config := "foo.yaml"
	          ^
internal/pipe/nfpm/nfpm.go:163:15: string `arm` has 3 occurrences, make it a constant (goconst)
	if goarch == "arm" && goarm == "7" {
	             ^
internal/pipe/nfpm/nfpm_test.go:806:47: string `{{ .NOPE_KEY_FILE }}` has 4 occurrences, make it a constant (goconst)
		ctx.Config.NFPMs[0].Deb.Signature.KeyFile = "{{ .NOPE_KEY_FILE }}"
		                                            ^
internal/pipe/nfpm/nfpm.go:206:29: string `ppc64` has 4 occurrences, make it a constant (goconst)
		if artifacts[0].Goarch != "ppc64" {
		                          ^
internal/pipe/nfpm/nfpm.go:149:13: string `android` has 3 occurrences, make it a constant (goconst)
	if goos != "android" {
	           ^
internal/pipe/nfpm/nfpm_test.go:1264:46: string `testdata/testfile.txt` has 7 occurrences, make it a constant (goconst)
		ctx.Config.NFPMs[0].RPM.Scripts.PreTrans = "testdata/testfile.txt"
		                                           ^
internal/pipe/nfpm/nfpm_test.go:254:9: string `amd64` has 3 occurrences, make it a constant (goconst)
			case "amd64":
			     ^
internal/pipe/nfpm/nfpm.go:205:21: string `aix` has 4 occurrences, make it a constant (goconst)
	if infoPlatform == "aix" {
	                   ^
internal/pipe/upx/upx_test.go:88:15: string `windows` has 3 occurrences, make it a constant (goconst)
			if goos == "windows" {
			           ^
internal/pipe/archive/archive_test.go:217:25: string `v0.0.1` has 4 occurrences, make it a constant (goconst)
			ctx.Git.CurrentTag = "v0.0.1"
			                     ^
internal/pipe/archive/archive.go:78:25: string `binary` has 3 occurrences, make it a constant (goconst)
			if archive.Format == "binary" {
			                     ^
internal/pipe/archive/archive_test.go:216:18: string `0.0.1` has 4 occurrences, make it a constant (goconst)
			ctx.Version = "0.0.1"
			              ^
internal/pipe/ko/ko_test.go:537:28: string `nope` has 3 occurrences, make it a constant (goconst)
		ctx.Config.Kos[0].SBOM = "nope"
		                         ^
internal/pipe/ko/ko.go:123:14: string `none` has 3 occurrences, make it a constant (goconst)
			ko.SBOM = "none"
			          ^
internal/pipe/ko/ko.go:125:14: string `spdx` has 3 occurrences, make it a constant (goconst)
			ko.SBOM = "spdx"
			          ^
internal/pipe/brew/brew_test.go:179:36: string `https://github.com/goreleaser` has 8 occurrences, make it a constant (goconst)
				ctx.Config.Brews[0].Homepage = "https://github.com/goreleaser"
				                               ^
internal/pipe/brew/brew_test.go:276:49: string `{{ .Asdsa }` has 4 occurrences, make it a constant (goconst)
				ctx.Config.Brews[0].CommitMessageTemplate = "{{ .Asdsa }"
				                                            ^
internal/pipe/brew/brew_test.go:177:44: string `test` has 22 occurrences, make it a constant (goconst)
				ctx.Config.Brews[0].Repository.Owner = "test"
				                                       ^
internal/pipe/sign/sign.go:66:20: string `none` has 5 occurrences, make it a constant (goconst)
			cfg.Artifacts = "none"
			                ^
internal/pipe/sign/sign.go:69:13: string `default` has 3 occurrences, make it a constant (goconst)
			cfg.ID = "default"
			         ^
internal/pipe/sign/sign.go:105:9: string `binary` has 3 occurrences, make it a constant (goconst)
			case "binary":
			     ^
internal/pipe/nix/nix.go:496:8: string `darwin` has 4 occurrences, make it a constant (goconst)
		case "darwin":
		     ^
internal/pipe/sbom/sbom.go:67:8: string `any` has 3 occurrences, make it a constant (goconst)
		case "any":
		     ^
internal/pipe/sbom/sbom.go:58:13: string `syft` has 3 occurrences, make it a constant (goconst)
		cfg.Cmd = "syft"
		          ^
internal/pipe/sbom/sbom.go:61:19: string `archive` has 3 occurrences, make it a constant (goconst)
		cfg.Artifacts = "archive"
		                ^
internal/client/github_test.go:566:20: string `/repos/someone/something` has 7 occurrences, make it a constant (goconst)
		if r.URL.Path == "/repos/someone/something" {
		                 ^
internal/client/github_test.go:757:20: string `/repos/someone/something/contents/file.txt` has 8 occurrences, make it a constant (goconst)
		if r.URL.Path == "/repos/someone/something/contents/file.txt" && r.Method == http.MethodGet {
		                 ^
internal/client/gitlab_test.go:773:20: string `/api/v4/projects/someone/something` has 3 occurrences, make it a constant (goconst)
		if r.URL.Path == "/api/v4/projects/someone/something" {
		                 ^
internal/client/config_test.go:44:12: string `token` has 6 occurrences, make it a constant (goconst)
			if s == "token" {
			        ^
internal/client/gitlab_test.go:830:20: string `/api/v4/projects/someone/something/merge_requests` has 3 occurrences, make it a constant (goconst)
		if r.URL.Path == "/api/v4/projects/someone/something/merge_requests" {
		                 ^
internal/client/github_test.go:211:20: string `/rate_limit` has 16 occurrences, make it a constant (goconst)
		if r.URL.Path == "/rate_limit" {
		                 ^
internal/client/github_test.go:432:20: string `/repos/someone/something/contents/.github/PULL_REQUEST_TEMPLATE.md` has 6 occurrences, make it a constant (goconst)
		if r.URL.Path == "/repos/someone/something/contents/.github/PULL_REQUEST_TEMPLATE.md" {
		                 ^
internal/client/github_test.go:442:20: string `/repos/someone/something/pulls` has 6 occurrences, make it a constant (goconst)
		if r.URL.Path == "/repos/someone/something/pulls" {
		                 ^
internal/pipe/aur/aur_test.go:164:35: string `https://github.com/goreleaser` has 3 occurrences, make it a constant (goconst)
				ctx.Config.AURs[0].Homepage = "https://github.com/goreleaser"
				                              ^
internal/pipe/aur/aur_test.go:194:31: string `{{ .Asdsa }` has 7 occurrences, make it a constant (goconst)
				ctx.Config.AURs[0].Name = "{{ .Asdsa }"
				                          ^
internal/pipe/changelog/changelog.go:250:11: string `asc` has 3 occurrences, make it a constant (goconst)
	case "", "asc", "desc":
	         ^
internal/pipe/blob/blob_test.go:37:17: string `bucket or provider cannot be empty` has 3 occurrences, make it a constant (goconst)
	errorString := "bucket or provider cannot be empty"
	               ^
Command Mean [ms] Min [ms] Max [ms] Relative
local 761.6 ± 14.3 742.2 780.3 1.03 ± 0.05
v1.61.0 741.3 ± 36.0 711.1 824.1 1.00

grpc/grpc-go

local
credentials/xds/xds_client_test.go:244:22: string `tls` has 3 occurrences, make it a constant (goconst)
	if ai.AuthType() != "tls" {
	                    ^
status/status_test.go:113:31: string `test description` has 4 occurrences, but such constant `message` already exists (goconst)
	if got, want := s.Message(), "test description"; got != want {
	                             ^
internal/transport/grpchttp2/http2bridge_test.go:76:14: string `test data` has 5 occurrences, make it a constant (goconst)
	recvData := "test data"
	            ^
balancer/rls/picker.go:174:10: string `queue` has 3 occurrences, make it a constant (goconst)
		return "queue"
		       ^
internal/transport/handler_server_test.go:278:14: string `/service/foo.bar` has 3 occurrences, make it a constant (goconst)
		if want := "/service/foo.bar"; s.method != want {
		           ^
internal/transport/http2_client.go:1493:8: string `grpc-status` has 3 occurrences, make it a constant (goconst)
		case "grpc-status":
		     ^
internal/transport/http2_client.go:1501:8: string `grpc-message` has 3 occurrences, make it a constant (goconst)
		case "grpc-message":
		     ^
internal/transport/http2_client.go:1483:8: string `content-type` has 3 occurrences, make it a constant (goconst)
		case "content-type":
		     ^
internal/transport/handler_server.go:211:10: string `tcp` has 3 occurrences, make it a constant (goconst)
		return "tcp"
		       ^
internal/transport/http2_client.go:1491:8: string `grpc-encoding` has 3 occurrences, make it a constant (goconst)
		case "grpc-encoding":
		     ^
internal/transport/http2_client.go:167:21: string `unix` has 3 occurrences, make it a constant (goconst)
		if networkType == "unix" && !strings.HasPrefix(address, "\x00") {
		                  ^
stats/opentelemetry/csm/pluginoption.go:121:64: string `gcp_compute_engine` has 4 occurrences, make it a constant (goconst)
	if workloadType != "gcp_kubernetes_engine" && workloadType != "gcp_compute_engine" {
	                                                              ^
stats/opentelemetry/csm/pluginoption.go:150:9: string `unknown` has 4 occurrences, make it a constant (goconst)
	return "unknown"
	       ^
balancer/leastrequest/balancer_test.go:214:14: string `
{
  "loadBalancingConfig": [
    {
      "least_request_experimental": {
        "choiceCount": 2
      }
    }
  ]
}` has 3 occurrences, make it a constant (goconst)
	lrscJSON := `
	            ^
credentials/alts/alts_test.go:78:20: string `server.name` has 3 occurrences, make it a constant (goconst)
	wantServerName := "server.name"
	                  ^
xds/googledirectpath/googlec2p_test.go:360:13: string `already set` has 3 occurrences, make it a constant (goconst)
	wantErr := "already set"
	           ^
xds/googledirectpath/googlec2p_test.go:177:48: string `test-zone` has 3 occurrences, make it a constant (goconst)
	getZone = func(time.Duration) string { return "test-zone" }
	                                              ^
stats/opentelemetry/client_metrics.go:102:9: string `other` has 4 occurrences, make it a constant (goconst)
	return "other"
	       ^
test/config_selector_test.go:176:15: string `/grpc.testing.TestService/EmptyCall` has 3 occurrences, but such constant `wantMethod` already exists (goconst)
			if want := "/grpc.testing.TestService/EmptyCall"; gotInfo.Method != want {
			           ^
test/end2end_test.go:991:16: string `handler-tls` has 20 occurrences, make it a constant (goconst)
		if e.name == "handler-tls" {
		             ^
test/end2end_test.go:412:47: string `unix` has 7 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" && e.network == "unix" {
	                                             ^
test/end2end_test.go:621:22: string `tls` has 7 occurrences, make it a constant (goconst)
	if te.e.security == "tls" {
	                    ^
xds/internal/balancer/clustermanager/clustermanager_test.go:82:17: string `{
"children": {
	"cds:cluster_1":{ "childPolicy": [{"round_robin":""}] },
	"cds:cluster_2":{ "childPolicy": [{"round_robin":""}] }
}
}` has 3 occurrences, make it a constant (goconst)
	configJSON1 := `{
	               ^
v1.61.0
credentials/xds/xds_client_test.go:244:22: string `tls` has 3 occurrences, make it a constant (goconst)
	if ai.AuthType() != "tls" {
	                    ^
balancer/leastrequest/balancer_test.go:214:14: string `
{
  "loadBalancingConfig": [
    {
      "least_request_experimental": {
        "choiceCount": 2
      }
    }
  ]
}` has 3 occurrences, make it a constant (goconst)
	lrscJSON := `
	            ^
xds/internal/balancer/clustermanager/clustermanager_test.go:82:17: string `{
"children": {
	"cds:cluster_1":{ "childPolicy": [{"round_robin":""}] },
	"cds:cluster_2":{ "childPolicy": [{"round_robin":""}] }
}
}` has 3 occurrences, make it a constant (goconst)
	configJSON1 := `{
	               ^
internal/transport/grpchttp2/http2bridge_test.go:76:14: string `test data` has 5 occurrences, make it a constant (goconst)
	recvData := "test data"
	            ^
balancer/rls/picker.go:174:10: string `queue` has 3 occurrences, make it a constant (goconst)
		return "queue"
		       ^
stats/opentelemetry/client_metrics.go:102:9: string `other` has 4 occurrences, make it a constant (goconst)
	return "other"
	       ^
status/status_test.go:113:31: string `test description` has 4 occurrences, but such constant `message` already exists (goconst)
	if got, want := s.Message(), "test description"; got != want {
	                             ^
internal/transport/http2_client.go:1491:8: string `grpc-encoding` has 3 occurrences, make it a constant (goconst)
		case "grpc-encoding":
		     ^
internal/transport/http2_client.go:1493:8: string `grpc-status` has 3 occurrences, make it a constant (goconst)
		case "grpc-status":
		     ^
internal/transport/handler_server.go:211:10: string `tcp` has 3 occurrences, make it a constant (goconst)
		return "tcp"
		       ^
internal/transport/http2_client.go:1501:8: string `grpc-message` has 3 occurrences, make it a constant (goconst)
		case "grpc-message":
		     ^
internal/transport/handler_server_test.go:278:14: string `/service/foo.bar` has 3 occurrences, make it a constant (goconst)
		if want := "/service/foo.bar"; s.method != want {
		           ^
internal/transport/http2_client.go:167:21: string `unix` has 3 occurrences, make it a constant (goconst)
		if networkType == "unix" && !strings.HasPrefix(address, "\x00") {
		                  ^
internal/transport/http2_client.go:1483:8: string `content-type` has 3 occurrences, make it a constant (goconst)
		case "content-type":
		     ^
credentials/alts/alts_test.go:78:20: string `server.name` has 3 occurrences, make it a constant (goconst)
	wantServerName := "server.name"
	                  ^
stats/opentelemetry/csm/pluginoption.go:121:64: string `gcp_compute_engine` has 4 occurrences, make it a constant (goconst)
	if workloadType != "gcp_kubernetes_engine" && workloadType != "gcp_compute_engine" {
	                                                              ^
stats/opentelemetry/csm/pluginoption.go:150:9: string `unknown` has 4 occurrences, make it a constant (goconst)
	return "unknown"
	       ^
xds/googledirectpath/googlec2p_test.go:360:13: string `already set` has 3 occurrences, make it a constant (goconst)
	wantErr := "already set"
	           ^
xds/googledirectpath/googlec2p_test.go:177:48: string `test-zone` has 3 occurrences, make it a constant (goconst)
	getZone = func(time.Duration) string { return "test-zone" }
	                                              ^
test/end2end_test.go:412:47: string `unix` has 7 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" && e.network == "unix" {
	                                             ^
test/end2end_test.go:991:16: string `handler-tls` has 20 occurrences, make it a constant (goconst)
		if e.name == "handler-tls" {
		             ^
test/config_selector_test.go:176:15: string `/grpc.testing.TestService/EmptyCall` has 3 occurrences, but such constant `wantMethod` already exists (goconst)
			if want := "/grpc.testing.TestService/EmptyCall"; gotInfo.Method != want {
			           ^
test/end2end_test.go:621:22: string `tls` has 7 occurrences, make it a constant (goconst)
	if te.e.security == "tls" {
	                    ^
Command Mean [ms] Min [ms] Max [ms] Relative
local 915.1 ± 9.0 903.3 931.6 1.04 ± 0.02
v1.61.0 879.9 ± 9.6 867.8 898.6 1.00

gohugoio/hugo

local
common/hreflect/helpers_test.go:94:9: string `Hugo` has 5 occurrences, make it a constant (goconst)
	return "Hugo"
	       ^
config/commonConfig.go:135:31: string `never` has 3 occurrences, make it a constant (goconst)
	if b.UseResourceCacheWhen == "never" {
	                             ^
config/commonConfig.go:139:31: string `fallback` has 3 occurrences, make it a constant (goconst)
	if b.UseResourceCacheWhen == "fallback" {
	                             ^
tpl/internal/go_templates/texttemplate/exec_test.go:1825:19: string `result` has 3 occurrences, make it a constant (goconst)
	if b.String() != "result" {
	                 ^
tpl/internal/go_templates/texttemplate/exec.go:749:27: string `and` has 3 occurrences, make it a constant (goconst)
	if isBuiltin && (name == "and" || name == "or") {
	                         ^
tpl/internal/go_templates/htmltemplate/exec_test.go:1715:19: string `result` has 3 occurrences, make it a constant (goconst)
	if b.String() != "result" {
	                 ^
resources/page/pagegroup.go:119:15: string `asc` has 3 occurrences, make it a constant (goconst)
	direction := "asc"
	             ^
resources/page/permalinks_test.go:74:14: string `page` has 5 occurrences, make it a constant (goconst)
	page.kind = "page"
	            ^
resources/page/pagegroup.go:76:15: string `desc` has 6 occurrences, make it a constant (goconst)
		if order == "desc" {
		            ^
resources/page/pagegroup.go:121:92: string `rev` has 3 occurrences, make it a constant (goconst)
	if len(order) > 0 && (strings.ToLower(order[0]) == "desc" || strings.ToLower(order[0]) == "rev" || strings.ToLower(order[0]) == "reverse") {
	                                                                                          ^
tpl/internal/go_templates/texttemplate/parse/node.go:866:10: string `range` has 4 occurrences, make it a constant (goconst)
		name = "range"
		       ^
tpl/internal/go_templates/texttemplate/parse/lex.go:499:17: string `true` has 3 occurrences, make it a constant (goconst)
			case word == "true", word == "false":
			             ^
output/layouts/layout.go:53:78: string `sitemap` has 3 occurrences, make it a constant (goconst)
	return !d.RenderingHook && d.Kind != "page" && d.Kind != "404" && d.Kind != "sitemap" && d.Kind != "sitemapindex"
	                                                                            ^
tpl/internal/go_templates/testenv/exec.go:49:7: string `wasip1` has 5 occurrences, make it a constant (goconst)
	case "wasip1", "js", "ios":
	     ^
common/paths/path.go:232:13: string `index` has 3 occurrences, make it a constant (goconst)
	if name == "index" {
	           ^
common/hashing/hashing_test.go:28:7: string `Hello World` has 3 occurrences, make it a constant (goconst)
	s := "Hello World"
	     ^
hugolib/site_test.go:645:154: string `Four` has 4 occurrences, make it a constant (goconst)
	if s.getPageOldVersion(kinds.KindSection, "sect").Pages()[1].Title() != "Three" || s.getPageOldVersion(kinds.KindSection, "sect").Pages()[2].Title() != "Four" {
	                                                                                                                                                        ^
hugolib/collections_test.go:51:17: string `
---
title: "Page"
tags: ["blue", "green"]
tags_weight: %d
---

` has 3 occurrences, make it a constant (goconst)
	pageContent := `
	               ^
hugolib/page.go:609:16: string `html` has 3 occurrences, make it a constant (goconst)
		if markup == "html" {
		             ^
hugolib/page.go:611:13: string `markdown` has 3 occurrences, make it a constant (goconst)
			markup = "markdown"
			         ^
hugolib/alias.go:153:22: string `windows` has 4 occurrences, make it a constant (goconst)
		if runtime.GOOS == "windows" {
		                   ^
hugolib/page_test.go:354:7: string `rst` has 3 occurrences, make it a constant (goconst)
	case "rst":
	     ^
hugolib/site_test.go:651:26: string `One` has 4 occurrences, make it a constant (goconst)
	if bydate[0].Title() != "One" {
	                        ^
hugolib/config_test.go:1372:12: string `
-- hugo.toml --
baseURL = "https://example.com"
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
[outputs]
home = ["html"]

		` has 3 occurrences, make it a constant (goconst)
		files := `
		         ^
hugolib/site_render.go:312:12: string `.html` has 4 occurrences, make it a constant (goconst)
						a += ".html"
						     ^
v1.61.0
config/commonConfig.go:135:31: string `never` has 3 occurrences, make it a constant (goconst)
	if b.UseResourceCacheWhen == "never" {
	                             ^
config/commonConfig.go:139:31: string `fallback` has 3 occurrences, make it a constant (goconst)
	if b.UseResourceCacheWhen == "fallback" {
	                             ^
output/layouts/layout.go:53:78: string `sitemap` has 3 occurrences, make it a constant (goconst)
	return !d.RenderingHook && d.Kind != "page" && d.Kind != "404" && d.Kind != "sitemap" && d.Kind != "sitemapindex"
	                                                                            ^
tpl/internal/go_templates/texttemplate/parse/lex.go:499:17: string `true` has 3 occurrences, make it a constant (goconst)
			case word == "true", word == "false":
			             ^
tpl/internal/go_templates/texttemplate/parse/node.go:866:10: string `range` has 4 occurrences, make it a constant (goconst)
		name = "range"
		       ^
common/paths/path.go:232:13: string `index` has 3 occurrences, make it a constant (goconst)
	if name == "index" {
	           ^
tpl/internal/go_templates/testenv/exec.go:49:7: string `wasip1` has 5 occurrences, make it a constant (goconst)
	case "wasip1", "js", "ios":
	     ^
common/hashing/hashing_test.go:28:7: string `Hello World` has 3 occurrences, make it a constant (goconst)
	s := "Hello World"
	     ^
tpl/internal/go_templates/htmltemplate/exec_test.go:1715:19: string `result` has 3 occurrences, make it a constant (goconst)
	if b.String() != "result" {
	                 ^
resources/page/pagegroup.go:121:130: string `reverse` has 3 occurrences, make it a constant (goconst)
	if len(order) > 0 && (strings.ToLower(order[0]) == "desc" || strings.ToLower(order[0]) == "rev" || strings.ToLower(order[0]) == "reverse") {
	                                                                                                                                ^
resources/page/pagegroup.go:76:15: string `desc` has 6 occurrences, make it a constant (goconst)
		if order == "desc" {
		            ^
resources/page/pagegroup.go:119:15: string `asc` has 3 occurrences, make it a constant (goconst)
	direction := "asc"
	             ^
resources/page/permalinks_test.go:74:14: string `page` has 5 occurrences, make it a constant (goconst)
	page.kind = "page"
	            ^
common/hreflect/helpers_test.go:94:9: string `Hugo` has 5 occurrences, make it a constant (goconst)
	return "Hugo"
	       ^
tpl/internal/go_templates/texttemplate/exec_test.go:1825:19: string `result` has 3 occurrences, make it a constant (goconst)
	if b.String() != "result" {
	                 ^
tpl/internal/go_templates/texttemplate/exec.go:749:27: string `and` has 3 occurrences, make it a constant (goconst)
	if isBuiltin && (name == "and" || name == "or") {
	                         ^
hugolib/page.go:609:16: string `html` has 3 occurrences, make it a constant (goconst)
		if markup == "html" {
		             ^
hugolib/page.go:611:13: string `markdown` has 3 occurrences, make it a constant (goconst)
			markup = "markdown"
			         ^
hugolib/collections_test.go:51:17: string `
---
title: "Page"
tags: ["blue", "green"]
tags_weight: %d
---

` has 3 occurrences, make it a constant (goconst)
	pageContent := `
	               ^
hugolib/alias.go:153:22: string `windows` has 4 occurrences, make it a constant (goconst)
		if runtime.GOOS == "windows" {
		                   ^
hugolib/site_test.go:651:26: string `One` has 4 occurrences, make it a constant (goconst)
	if bydate[0].Title() != "One" {
	                        ^
hugolib/site_render.go:312:12: string `.html` has 4 occurrences, make it a constant (goconst)
						a += ".html"
						     ^
hugolib/config_test.go:1372:12: string `
-- hugo.toml --
baseURL = "https://example.com"
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
[outputs]
home = ["html"]

		` has 3 occurrences, make it a constant (goconst)
		files := `
		         ^
hugolib/site_test.go:645:154: string `Four` has 4 occurrences, make it a constant (goconst)
	if s.getPageOldVersion(kinds.KindSection, "sect").Pages()[1].Title() != "Three" || s.getPageOldVersion(kinds.KindSection, "sect").Pages()[2].Title() != "Four" {
	                                                                                                                                                        ^
hugolib/page_test.go:354:7: string `rst` has 3 occurrences, make it a constant (goconst)
	case "rst":
	     ^
Command Mean [ms] Min [ms] Max [ms] Relative
local 903.3 ± 59.5 857.8 1062.9 1.06 ± 0.07
v1.61.0 850.6 ± 13.2 830.6 866.8 1.00

kubernetes/kubernetes

local
test/integration/apiserver/tracing/tracing_test.go:440:37: string `GET` has 4 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "GET"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:344:37: string `application/vnd.kubernetes.protobuf, */*` has 6 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "application/vnd.kubernetes.protobuf, */*"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:370:37: string `*core.Node` has 3 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "*core.Node"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:347:37: string `HTTP/2.0` has 12 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "HTTP/2.0"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:367:37: string `/minions/fake` has 4 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "/minions/fake"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:412:37: string `{"encodeGV":"v1","encoder":"protobuf","name":"versioning"}` has 6 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "{\"encodeGV\":\"v1\",\"encoder\":\"protobuf\",\"name\":\"versioning\"}"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:373:37: string `nodes` has 4 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "nodes"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:388:37: string `grpc` has 5 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "grpc"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:409:37: string `application/vnd.kubernetes.protobuf` has 6 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "application/vnd.kubernetes.protobuf"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:437:37: string `/api/v1/nodes/fake` has 5 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "/api/v1/nodes/fake"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:318:37: string `/api/v1/nodes` has 4 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "/api/v1/nodes"
							                             ^
test/integration/apiserver/tracing/tracing_test.go:341:37: string `127.0.0.1` has 6 occurrences, make it a constant (goconst)
							return v.GetStringValue() == "127.0.0.1"
							                             ^
pkg/printers/internalversion/printers.go:821:10: string `<unknown>` has 16 occurrences, make it a constant (goconst)
		return "<unknown>"
		       ^
pkg/printers/internalversion/printers.go:717:10: string `<none>` has 24 occurrences, make it a constant (goconst)
		return "<none>"
		       ^
pkg/printers/internalversion/printers.go:812:9: string `<unset>` has 14 occurrences, make it a constant (goconst)
		ret = "<unset>"
		      ^
pkg/printers/internalversion/printers.go:997:12: string `Terminating` has 4 occurrences, make it a constant (goconst)
		reason = "Terminating"
		         ^
pkg/scheduler/metrics/resources/resources.go:139:17: string `bytes` has 4 occurrences, make it a constant (goconst)
					unitName = "bytes"
					           ^
pkg/proxy/servicechangetracker_test.go:171:26: string `172.16.55.4` has 7 occurrences, make it a constant (goconst)
				svc.Spec.ClusterIP = "172.16.55.4"
				                     ^
pkg/proxy/servicechangetracker_test.go:201:26: string `172.16.55.11` has 6 occurrences, make it a constant (goconst)
				svc.Spec.ClusterIP = "172.16.55.11"
				                     ^
pkg/proxy/servicechangetracker_test.go:202:31: string `5.6.7.8` has 9 occurrences, make it a constant (goconst)
				svc.Spec.LoadBalancerIP = "5.6.7.8"
				                          ^
test/images/agnhost/webhook/addlabel.go:64:21: string `yes` has 5 occurrences, make it a constant (goconst)
	case labelValue != "yes":
	                   ^
test/images/agnhost/webhook/configmap.go:59:11: string `webhook-e2e-test` has 4 occurrences, make it a constant (goconst)
		if k == "webhook-e2e-test" && v == "webhook-disallow" &&
		        ^
pkg/apis/apiserverinternal/validation/validation_test.go:257:49: string `v1alpha1` has 4 occurrences, make it a constant (goconst)
			CommonEncodingVersion: func() *string { a := "v1alpha1"; return &a }(),
			                                             ^
test/integration/apiserver/admissionwebhook/match_conditions_test.go:337:16: string `marker` has 4 occurrences, make it a constant (goconst)
			markerNs := "marker"
			            ^
test/integration/apiserver/admissionwebhook/match_conditions_test.go:104:8: string `/marker` has 3 occurrences, make it a constant (goconst)
		case "/marker":
		     ^
test/integration/scheduler/plugins/plugins_test.go:1288:15: string `test-pod` has 6 occurrences, make it a constant (goconst)
			podName := "test-pod"
			           ^
pkg/apis/core/v1/conversion.go:40:5: string `metadata.namespace` has 5 occurrences, make it a constant (goconst)
				"metadata.namespace",
				^
pkg/apis/core/v1/conversion.go:39:9: string `metadata.name` has 7 occurrences, make it a constant (goconst)
			case "metadata.name",
			     ^
test/integration/daemonset/daemonset_test.go:294:40: string `DaemonSet` has 6 occurrences, make it a constant (goconst)
			if got, want := controllerRef.Kind, "DaemonSet"; got != want {
			                                    ^
pkg/apis/core/v1/defaults_test.go:1887:78: string `100m` has 4 occurrences, make it a constant (goconst)
	if requestValue := defaultRequest[v1.ResourceCPU]; requestValue.String() != "100m" {
	                                                                            ^
pkg/apis/resource/validation/validation_deviceclass_test.go:38:14: string `foo` has 4 occurrences, but such constant `goodName` already exists (goconst)
	goodName := "foo"
	            ^
pkg/apis/resource/validation/validation_deviceclass_test.go:68:17: string `ac051fac-2ead-46d9-b8b4-4e0fbeb7455d` has 4 occurrences, make it a constant (goconst)
				class.UID = "ac051fac-2ead-46d9-b8b4-4e0fbeb7455d"
				            ^
pkg/apis/resource/validation/validation_resourceslice_test.go:468:28: string `-updated` has 3 occurrences, make it a constant (goconst)
				slice.Spec.NodeName += "-updated"
				                       ^
pkg/apis/resource/validation/validation_deviceclass_test.go:41:14: string `spaces not allowed` has 4 occurrences, make it a constant (goconst)
	badValue := "spaces not allowed"
	            ^
pkg/apis/resource/validation/validation_deviceclass_test.go:61:26: string `pvc-` has 3 occurrences, make it a constant (goconst)
				class.GenerateName = "pvc-"
				                     ^
test/integration/job/job_test.go:2036:26: string `example.com/custom-job-controller` has 4 occurrences, make it a constant (goconst)
	customControllerName := "example.com/custom-job-controller"
	                        ^
test/e2e/network/dns.go:438:19: string `1.1.1.1` has 3 occurrences, make it a constant (goconst)
		testServerIP := "1.1.1.1"
		                ^
test/e2e/network/service.go:2764:18: string `svc-proxy-terminating` has 5 occurrences, make it a constant (goconst)
		serviceName := "svc-proxy-terminating"
		               ^
test/e2e/network/service.go:832:15: string `svc1` has 3 occurrences, make it a constant (goconst)
		svc1port := "svc1"
		            ^
test/e2e/network/service.go:833:15: string `svc2` has 3 occurrences, make it a constant (goconst)
		svc2port := "svc2"
		            ^
test/e2e/network/endpointslice.go:209:16: string `pod1` has 7 occurrences, make it a constant (goconst)
		labelPod1 := "pod1"
		             ^
test/e2e/network/endpointslice.go:210:16: string `pod2` has 4 occurrences, make it a constant (goconst)
		labelPod2 := "pod2"
		             ^
test/e2e/network/dns_common.go:87:12: string `coredns` has 7 occurrences, make it a constant (goconst)
		t.name = "coredns"
		         ^
test/e2e/network/service.go:2474:18: string `svc-itp` has 3 occurrences, make it a constant (goconst)
		serviceName := "svc-itp"
		               ^
test/e2e/network/dns.go:167:25: string `test-service-2` has 3 occurrences, make it a constant (goconst)
		regularServiceName := "test-service-2"
		                      ^
test/e2e/network/endpointslice.go:475:41: string `true` has 15 occurrences, make it a constant (goconst)
			epsToUpdate.Annotations["updated"] = "true"
			                                     ^
pkg/kubelet/network/dns/dns_test.go:142:26: string `TEST` has 3 occurrences, make it a constant (goconst)
	testClusterDNSDomain := "TEST"
	                        ^
pkg/proxy/apis/config/validation/validation.go:165:21: string `windows` has 4 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
plugin/pkg/admission/gc/gc_admission_test.go:49:21: string `delete` has 4 occurrences, make it a constant (goconst)
		if a.GetVerb() == "delete" {
		                  ^
plugin/pkg/admission/gc/gc_admission_test.go:52:21: string `update` has 4 occurrences, make it a constant (goconst)
		if a.GetVerb() == "update" && a.GetSubresource() == "finalizers" {
		                  ^
v1.61.0
pkg/registry/core/service/ipallocator/bitmap_test.go:436:14: string `10.0.0.0/24` has 3 occurrences, make it a constant (goconst)
	cidrIPv4 := "10.0.0.0/24"
	            ^
pkg/controller/volume/persistentvolume/pv_controller.go:1997:10: string `N/A` has 4 occurrences, make it a constant (goconst)
		return "N/A"
		       ^
pkg/controller/volume/persistentvolume/delete_test.go:160:76: string `external.io/test` has 4 occurrences, make it a constant (goconst)
				test.initialVolumes[0].Annotations[volume.AnnDynamicallyProvisioned] = "external.io/test"
				                                                                       ^
pkg/controller/volume/persistentvolume/framework_test.go:292:29: string `yes` has 3 occurrences, make it a constant (goconst)
				volume.Annotations[a] = "yes"
				                        ^
test/integration/daemonset/daemonset_test.go:294:40: string `DaemonSet` has 6 occurrences, make it a constant (goconst)
			if got, want := controllerRef.Kind, "DaemonSet"; got != want {
			                                    ^
pkg/kubelet/cm/cgroup_manager_linux.go:166:31: string `systemd` has 3 occurrences, make it a constant (goconst)
		useSystemd: cgroupDriver == "systemd",
		                            ^
test/e2e/apps/replica_set.go:411:12: string `test-rs` has 4 occurrences, make it a constant (goconst)
	rsName := "test-rs"
	          ^
test/e2e/apps/daemon_set.go:963:22: string `E2E` has 4 occurrences, make it a constant (goconst)
						cond.Reason == "E2E" &&
						               ^
test/e2e/apps/daemon_set.go:964:23: string `Set from e2e test` has 4 occurrences, make it a constant (goconst)
						cond.Message == "Set from e2e test" {
						                ^
test/e2e/apps/statefulset.go:973:14: string `test-ss` has 3 occurrences, make it a constant (goconst)
			ssName := "test-ss"
			          ^
test/e2e/apps/daemon_set.go:1008:22: string `StatusPatched` has 4 occurrences, make it a constant (goconst)
					if cond.Type == "StatusPatched" {
					                ^
test/e2e/apps/statefulset.go:119:22: string `test` has 6 occurrences, make it a constant (goconst)
		headlessSvcName := "test"
		                   ^
test/e2e/apps/daemon_set.go:962:22: string `StatusUpdate` has 4 occurrences, make it a constant (goconst)
					if cond.Type == "StatusUpdate" &&
					                ^
test/e2e/apps/cronjob.go:424:40: string `true` has 14 occurrences, make it a constant (goconst)
			cjToUpdate.Annotations["updated"] = "true"
			                                    ^
pkg/apis/core/v1/defaults_test.go:1887:78: string `100m` has 4 occurrences, make it a constant (goconst)
	if requestValue := defaultRequest[v1.ResourceCPU]; requestValue.String() != "100m" {
	                                                                            ^
plugin/pkg/admission/imagepolicy/admission.go:122:48: string `true` has 5 occurrences, make it a constant (goconst)
			annotations[api.ImagePolicyFailedOpenKey] = "true"
			                                            ^
pkg/registry/admissionregistration/mutatingadmissionpolicybinding/authz_test.go:56:27: string `configmaps` has 5 occurrences, make it a constant (goconst)
				if a.GetResource() == "configmaps" {
				                      ^
pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go:140:14: string `pod1-uid` has 7 occurrences, make it a constant (goconst)
	pod1Name := "pod1-uid"
	            ^
pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go:141:14: string `pod2-uid` has 6 occurrences, make it a constant (goconst)
	pod2Name := "pod2-uid"
	            ^
pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go:41:16: string `fake/device/path` has 30 occurrences, make it a constant (goconst)
	devicePath := "fake/device/path"
	              ^
pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go:91:13: string `pod-uid` has 9 occurrences, make it a constant (goconst)
	podName := "pod-uid"
	           ^
pkg/volume/local/local.go:565:21: string `windows` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS != "windows" {
	                   ^
plugin/pkg/admission/gc/gc_admission_test.go:52:21: string `update` has 4 occurrences, make it a constant (goconst)
		if a.GetVerb() == "update" && a.GetSubresource() == "finalizers" {
		                  ^
plugin/pkg/admission/gc/gc_admission_test.go:49:21: string `delete` has 4 occurrences, make it a constant (goconst)
		if a.GetVerb() == "delete" {
		                  ^
pkg/volume/projected/projected_test.go:257:21: string `test_projected_namespace` has 4 occurrences, make it a constant (goconst)
			testNamespace := "test_projected_namespace"
			                 ^
test/e2e/apimachinery/apply.go:656:11: string `mytest` has 6 occurrences, make it a constant (goconst)
		name := "mytest"
		        ^
test/e2e/apimachinery/namespace.go:105:13: string `test-pod` has 4 occurrences, make it a constant (goconst)
	podName := "test-pod"
	           ^
test/e2e/apimachinery/crd_conversion_webhook.go:384:10: string `cr-instance-1` has 5 occurrences, make it a constant (goconst)
	name := "cr-instance-1"
	        ^
test/e2e/apimachinery/resource_quota.go:85:16: string `test-quota` has 12 occurrences, make it a constant (goconst)
		quotaName := "test-quota"
		             ^
test/e2e/apimachinery/flowcontrol.go:412:40: string `true` has 12 occurrences, make it a constant (goconst)
			fsToUpdate.Annotations["updated"] = "true"
			                                    ^
test/e2e/apimachinery/garbage_collector.go:326:13: string `simpletest.rc` has 4 occurrences, make it a constant (goconst)
		rcName := "simpletest.rc"
		          ^
test/e2e/apimachinery/aggregated_discovery.go:201:19: string `testcrd` has 3 occurrences, make it a constant (goconst)
		resourceName := "testcrd"
		                ^
pkg/proxy/nftables/proxier_test.go:2344:17: string `svc1` has 3 occurrences, make it a constant (goconst)
	serviceName := "svc1"
	               ^
pkg/proxy/nftables/proxier_test.go:220:20: string `LoadBalancer` has 8 occurrences, make it a constant (goconst)
			svc.Spec.Type = "LoadBalancer"
			                ^
pkg/proxy/nftables/proxier_test.go:473:20: string `192.168.99.11` has 3 occurrences, but such constant `testExternalIP` already exists (goconst)
	svcExternalIPs := "192.168.99.11"
	                  ^
pkg/proxy/nftables/proxier_test.go:2345:19: string `ns1` has 3 occurrences, make it a constant (goconst)
	namespaceName := "ns1"
	                 ^
pkg/proxy/nftables/proxier.go:462:9: string `ip6` has 3 occurrences, make it a constant (goconst)
		ipX = "ip6"
		      ^
pkg/proxy/nftables/proxier_test.go:771:10: string `10.180.0.1` has 4 occurrences, make it a constant (goconst)
	epIP := "10.180.0.1"
	        ^
pkg/proxy/nftables/proxier_test.go:238:25: string `172.30.0.43` has 3 occurrences, make it a constant (goconst)
			svc.Spec.ClusterIP = "172.30.0.43"
			                     ^
pkg/proxy/nftables/helpers_test.go:357:35: string `!= ` has 4 occurrences, make it a constant (goconst)
				wantMatch, set := match[1] != "!= ", match[2]
				                              ^
pkg/proxy/nftables/proxier_test.go:953:13: string `10.180.2.1` has 3 occurrences, make it a constant (goconst)
				epIP2 = "10.180.2.1"
				        ^
pkg/proxy/nftables/proxier_test.go:474:13: string `1.2.3.4` has 6 occurrences, make it a constant (goconst)
	svcLBIP := "1.2.3.4"
	           ^
pkg/proxy/nftables/proxier_test.go:211:25: string `172.30.0.41` has 9 occurrences, make it a constant (goconst)
			svc.Spec.ClusterIP = "172.30.0.41"
			                     ^
pkg/proxy/nftables/proxier_test.go:222:25: string `172.30.0.42` has 4 occurrences, make it a constant (goconst)
			svc.Spec.ClusterIP = "172.30.0.42"
			                     ^
pkg/proxy/nftables/proxier_test.go:1334:25: string `172.30.55.4` has 5 occurrences, make it a constant (goconst)
			svc.Spec.ClusterIP = "172.30.55.4"
			                     ^
pkg/registry/batch/job/strategy_test.go:1120:32: string `world` has 4 occurrences, make it a constant (goconst)
				job.Annotations["hello"] = "world"
				                           ^
test/integration/scheduler/plugins/plugins_test.go:1288:15: string `test-pod` has 6 occurrences, make it a constant (goconst)
			podName := "test-pod"
			           ^
test/instrumentation/decode_metric.go:486:11: string `ExponentialBuckets` has 3 occurrences, make it a constant (goconst)
					case "ExponentialBuckets":
					     ^
test/instrumentation/decode_metric.go:87:7: string `NewDesc` has 3 occurrences, make it a constant (goconst)
	case "NewDesc":
	     ^
test/instrumentation/decode_metric.go:484:11: string `LinearBuckets` has 3 occurrences, make it a constant (goconst)
					case "LinearBuckets":
					     ^
Command Mean [s] Min [s] Max [s] Relative
local 5.714 ± 0.080 5.598 5.883 1.01 ± 0.02
v1.61.0 5.639 ± 0.042 5.601 5.717 1.00

go-acme/lego

Command Mean [ms] Min [ms] Max [ms] Relative
local 868.2 ± 6.6 856.2 878.7 1.01 ± 0.05
v1.61.0 856.4 ± 39.0 819.1 931.6 1.00

pact-foundation/pact-go

Command Mean [ms] Min [ms] Max [ms] Relative
local 273.6 ± 3.5 268.0 277.7 1.11 ± 0.03
v1.61.0 246.3 ± 5.6 240.9 260.6 1.00

rclone/rclone

local
cmd/selfupdate/selfupdate.go:76:18: string `zip` has 3 occurrences, make it a constant (goconst)
			Opt.Package = "zip"
			              ^
cmd/selfupdate/selfupdate.go:207:21: string `windows` has 5 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
cmd/selfupdate/selfupdate.go:84:22: string `deb` has 3 occurrences, make it a constant (goconst)
			if Opt.Package != "deb" && Opt.Package != "rpm" {
			                  ^
cmd/lsf/lsf_test.go:195:14: string `_+_` has 3 occurrences, make it a constant (goconst)
	separator = "_+_"
	            ^
cmd/lsf/lsf_test.go:194:11: string `pst` has 3 occurrences, make it a constant (goconst)
	format = "pst"
	         ^
cmd/bisync/bisync_test.go:1468:28: string `lock` has 3 occurrences, make it a constant (goconst)
		if fileType(fileName) == "lock" {
		                         ^
cmd/bisync/bisync_test.go:1471:18: string `backupdirs` has 3 occurrences, make it a constant (goconst)
		if fileName == "backupdirs" {
		               ^
cmd/bisync/bisync_test.go:1166:19: string `queue` has 3 occurrences, make it a constant (goconst)
		case "listing", "queue", "filters":
		                ^
cmd/bisync/bisync_test.go:1420:24: string `log` has 4 occurrences, make it a constant (goconst)
		if fileType(file) == "log" {
		                     ^
cmd/bisync/bisync_test.go:956:20: string `nomodtime` has 3 occurrences, make it a constant (goconst)
		if b.testCase != "nomodtime" {
		                 ^
backend/pixeldrain/pixeldrain.go:171:45: string `file` has 3 occurrences, make it a constant (goconst)
	} else if err == nil && fsp.Base().Type == "file" {
	                                           ^
backend/pixeldrain/pixeldrain.go:203:30: string `dir` has 3 occurrences, make it a constant (goconst)
		if fsp.Children[i].Type == "dir" {
		                           ^
backend/sftp/sftp.go:1163:21: string `powershell` has 5 occurrences, make it a constant (goconst)
						f.shellType = "powershell"
						              ^
backend/sftp/sftp.go:1168:22: string `cmd` has 4 occurrences, make it a constant (goconst)
							f.shellType = "cmd"
							              ^
fs/operations/operations.go:910:11: string `ERROR` has 3 occurrences, make it a constant (goconst)
			return "ERROR", fmt.Errorf("failed to open file %v: %w", o, err)
			       ^
fs/operations/logger.go:204:18: string `src` has 4 occurrences, make it a constant (goconst)
			winner.Side = "src"
			              ^
fs/operations/operations.go:2157:16: string `2006-01-02 15:04:05` has 3 occurrences, make it a constant (goconst)
		timeFormat = "2006-01-02 15:04:05"
		             ^
fs/operations/logger.go:192:19: string `dst` has 7 occurrences, make it a constant (goconst)
				winner.Side = "dst" // whatever's on dst will remain so after DryRun
				              ^
fs/operations/copy_test.go:209:18: string `dst/one` has 5 occurrences, make it a constant (goconst)
	file1dst.Path = "dst/one"
	                ^
fs/operations/copy_test.go:110:15: string `sub/file2` has 4 occurrences, make it a constant (goconst)
	file2.Path = "sub/file2"
	             ^
backend/pikpak/pikpak.go:376:14: string `root` has 3 occurrences, make it a constant (goconst)
	if dirID == "root" {
	            ^
backend/pikpak/pikpak.go:165:25: string `false` has 4 occurrences, make it a constant (goconst)
				if config.Result == "false" {
				                    ^
fs/config/config.go:223:21: string `windows` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
fs/config/rc.go:116:14: string `create` has 3 occurrences, make it a constant (goconst)
		if name == "create" {
		           ^
fs/config/authorize.go:39:25: string `true` has 4 occurrences, make it a constant (goconst)
	inM[ConfigAuthorize] = "true"
	                       ^
fs/sync/pipe.go:196:7: string `size` has 3 occurrences, make it a constant (goconst)
	case "size":
	     ^
fs/sync/pipe.go:200:7: string `modtime` has 3 occurrences, make it a constant (goconst)
	case "modtime":
	     ^
fs/sync/sync_test.go:1487:21: string `darwin` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "darwin" {
	                   ^
fs/sync/sync_test.go:2088:18: string `dst/one` has 9 occurrences, make it a constant (goconst)
	file1dst.Path = "dst/one"
	                ^
cmd/serve/docker/serve.go:84:38: string `windows` has 3 occurrences, make it a constant (goconst)
	if specDir == "" && runtime.GOOS == "windows" {
	                                    ^
backend/jottacloud/jottacloud.go:1515:64: string `COMPLETED` has 3 occurrences, make it a constant (goconst)
		if bool(info.Deleted) && !f.opt.TrashedOnly && info.State == "COMPLETED" {
		                                                             ^
backend/local/local.go:38:32: string `windows` has 10 occurrences, make it a constant (goconst)
	useReadDir = (runtime.GOOS == "windows" || runtime.GOOS == "plan9") // these OSes read FileInfos directly
	                              ^
cmd/serve/dlna/cds_test.go:35:27: string `video.mp4` has 3 occurrences, make it a constant (goconst)
			if mediaItem.Name() == "video.mp4" {
			                       ^
cmdtest/cmdtest_test.go:182:9: string `RCLONE_LOG_LEVEL=DEBUG` has 3 occurrences, make it a constant (goconst)
	env := "RCLONE_LOG_LEVEL=DEBUG"
	       ^
cmdtest/environment_test.go:161:8: string `RCLONE_SKIP_LINKS=false;RCLONE_LOCAL_SKIP_LINKS=false;RCLONE_CONFIG_MYLOCAL_SKIP_LINKS=false` has 3 occurrences, make it a constant (goconst)
	env = "RCLONE_SKIP_LINKS=false;RCLONE_LOCAL_SKIP_LINKS=false;RCLONE_CONFIG_MYLOCAL_SKIP_LINKS=false"
	      ^
backend/oracleobjectstorage/multipart.go:307:8: string `cache-control` has 3 occurrences, make it a constant (goconst)
		case "cache-control":
		     ^
backend/oracleobjectstorage/multipart.go:309:8: string `content-disposition` has 3 occurrences, make it a constant (goconst)
		case "content-disposition":
		     ^
backend/oracleobjectstorage/multipart.go:311:8: string `content-encoding` has 3 occurrences, make it a constant (goconst)
		case "content-encoding":
		     ^
backend/oracleobjectstorage/multipart.go:315:8: string `content-type` has 3 occurrences, make it a constant (goconst)
		case "content-type":
		     ^
backend/oracleobjectstorage/multipart.go:313:8: string `content-language` has 3 occurrences, make it a constant (goconst)
		case "content-language":
		     ^
backend/netstorage/netstorage.go:282:7: string `symlink` has 7 occurrences, make it a constant (goconst)
	case "symlink":
	     ^
backend/netstorage/netstorage.go:340:3: string `file` has 4 occurrences, make it a constant (goconst)
		"file",
		^
backend/netstorage/netstorage.go:343:7: string `dir` has 8 occurrences, make it a constant (goconst)
	case "dir":
	     ^
vfs/vfstest/edge_cases.go:26:21: string `windows` has 6 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
lib/http/middleware.go:61:19: string `OPTIONS` has 3 occurrences, make it a constant (goconst)
			if r.Method == "OPTIONS" {
			               ^
lib/http/middleware_test.go:80:17: string `custom` has 4 occurrences, make it a constant (goconst)
					if user == "custom" && pass == "custom" {
					           ^
backend/crypt/crypt_test.go:38:10: string `TestCrypt` has 3 occurrences, make it a constant (goconst)
	name := "TestCrypt"
	        ^
cmd/mountlib/mount.go:67:22: string `darwin` has 3 occurrences, make it a constant (goconst)
		if runtime.GOOS == "darwin" {
		                   ^
cmd/mountlib/mount.go:292:50: string `windows` has 4 occurrences, make it a constant (goconst)
			if os.Getenv("PATH") == "" && runtime.GOOS != "windows" {
			                                              ^
fs/config/configfile/configfile_test.go:264:22: string `linux` has 4 occurrences, make it a constant (goconst)
		if runtime.GOOS != "linux" {
		                   ^
v1.61.0
lib/batcher/batcher.go:79:7: string `sync` has 3 occurrences, make it a constant (goconst)
	case "sync":
	     ^
lib/batcher/batcher.go:87:7: string `async` has 3 occurrences, make it a constant (goconst)
	case "async":
	     ^
backend/iclouddrive/api/drive.go:311:39: string `ETAG_CONFLICT` has 3 occurrences, but such constant `statusEtagConflict` already exists (goconst)
		if force && item.Items[0].Status == "ETAG_CONFLICT" {
		                                    ^
cmdtest/environment_test.go:161:8: string `RCLONE_SKIP_LINKS=false;RCLONE_LOCAL_SKIP_LINKS=false;RCLONE_CONFIG_MYLOCAL_SKIP_LINKS=false` has 3 occurrences, make it a constant (goconst)
	env = "RCLONE_SKIP_LINKS=false;RCLONE_LOCAL_SKIP_LINKS=false;RCLONE_CONFIG_MYLOCAL_SKIP_LINKS=false"
	      ^
cmdtest/cmdtest_test.go:182:9: string `RCLONE_LOG_LEVEL=DEBUG` has 3 occurrences, make it a constant (goconst)
	env := "RCLONE_LOG_LEVEL=DEBUG"
	       ^
fs/operations/operations.go:2157:16: string `2006-01-02 15:04:05` has 3 occurrences, make it a constant (goconst)
		timeFormat = "2006-01-02 15:04:05"
		             ^
fs/operations/logger.go:192:19: string `dst` has 7 occurrences, make it a constant (goconst)
				winner.Side = "dst" // whatever's on dst will remain so after DryRun
				              ^
fs/operations/logger.go:204:18: string `src` has 4 occurrences, make it a constant (goconst)
			winner.Side = "src"
			              ^
fs/operations/operations.go:910:11: string `ERROR` has 3 occurrences, make it a constant (goconst)
			return "ERROR", fmt.Errorf("failed to open file %v: %w", o, err)
			       ^
cmd/serve/dlna/cds_test.go:35:27: string `video.mp4` has 3 occurrences, make it a constant (goconst)
			if mediaItem.Name() == "video.mp4" {
			                       ^
backend/jottacloud/jottacloud.go:1515:64: string `COMPLETED` has 3 occurrences, make it a constant (goconst)
		if bool(info.Deleted) && !f.opt.TrashedOnly && info.State == "COMPLETED" {
		                                                             ^
backend/crypt/crypt_test.go:38:10: string `TestCrypt` has 3 occurrences, make it a constant (goconst)
	name := "TestCrypt"
	        ^
backend/s3/s3.go:6383:8: string `content-type` has 3 occurrences, make it a constant (goconst)
		case "content-type":
		     ^
backend/s3/s3.go:3306:21: string `IDrive` has 3 occurrences, make it a constant (goconst)
	if !ok || value != "IDrive" {
	                   ^
vfs/vfstest/edge_cases.go:26:21: string `windows` has 6 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
backend/iclouddrive/iclouddrive.go:609:30: string `unknown` has 3 occurrences, make it a constant (goconst)
			if requestError.Status == "unknown" {
			                          ^
cmd/bisync/cmd.go:88:10: string `true` has 3 occurrences, make it a constant (goconst)
		return "true"
		       ^
cmd/bisync/listing.go:525:47: string `none` has 3 occurrences, make it a constant (goconst)
		if result.IsWinner && result.Winner.Side != "none" && (result.Winner.Err == nil || result.Flags == "d") {
		                                            ^
fs/sync/pipe.go:196:7: string `size` has 3 occurrences, make it a constant (goconst)
	case "size":
	     ^
fs/sync/sync_test.go:2088:18: string `dst/one` has 9 occurrences, make it a constant (goconst)
	file1dst.Path = "dst/one"
	                ^
fs/sync/pipe.go:200:7: string `modtime` has 3 occurrences, make it a constant (goconst)
	case "modtime":
	     ^
fs/sync/sync_test.go:1487:21: string `darwin` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "darwin" {
	                   ^
fs/config/authorize.go:39:25: string `true` has 4 occurrences, make it a constant (goconst)
	inM[ConfigAuthorize] = "true"
	                       ^
fs/config/config.go:223:21: string `windows` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
fs/config/rc.go:116:14: string `create` has 3 occurrences, make it a constant (goconst)
		if name == "create" {
		           ^
backend/pikpak/pikpak.go:376:14: string `root` has 3 occurrences, make it a constant (goconst)
	if dirID == "root" {
	            ^
backend/pikpak/pikpak.go:165:25: string `false` has 4 occurrences, make it a constant (goconst)
				if config.Result == "false" {
				                    ^
backend/yandex/yandex.go:202:14: string `disk:/` has 3 occurrences, make it a constant (goconst)
		diskRoot = "disk:/"
		           ^
backend/yandex/yandex.go:313:33: string `file` has 4 occurrences, make it a constant (goconst)
	} else if info.ResourceType == "file" {
	                               ^
backend/yandex/yandex.go:328:7: string `dir` has 3 occurrences, make it a constant (goconst)
	case "dir":
	     ^
backend/yandex/yandex.go:373:28: string `DiskNotFoundError` has 4 occurrences, make it a constant (goconst)
				if apiErr.ErrorName == "DiskNotFoundError" {
				                       ^
backend/pixeldrain/pixeldrain.go:171:45: string `file` has 3 occurrences, make it a constant (goconst)
	} else if err == nil && fsp.Base().Type == "file" {
	                                           ^
backend/pixeldrain/pixeldrain.go:203:30: string `dir` has 3 occurrences, make it a constant (goconst)
		if fsp.Children[i].Type == "dir" {
		                           ^
cmd/lsf/lsf_test.go:194:11: string `pst` has 3 occurrences, make it a constant (goconst)
	format = "pst"
	         ^
cmd/lsf/lsf_test.go:195:14: string `_+_` has 3 occurrences, make it a constant (goconst)
	separator = "_+_"
	            ^
cmd/serve/docker/serve.go:84:38: string `windows` has 3 occurrences, make it a constant (goconst)
	if specDir == "" && runtime.GOOS == "windows" {
	                                    ^
cmd/mountlib/mount.go:67:22: string `darwin` has 3 occurrences, make it a constant (goconst)
		if runtime.GOOS == "darwin" {
		                   ^
cmd/mountlib/mount.go:292:50: string `windows` has 4 occurrences, make it a constant (goconst)
			if os.Getenv("PATH") == "" && runtime.GOOS != "windows" {
			                                              ^
backend/chunker/chunker.go:423:7: string `none` has 3 occurrences, make it a constant (goconst)
	case "none":
	     ^
backend/chunker/chunker.go:425:7: string `simplejson` has 6 occurrences, make it a constant (goconst)
	case "simplejson":
	     ^
fs/config/configfile/configfile_test.go:264:22: string `linux` has 4 occurrences, make it a constant (goconst)
		if runtime.GOOS != "linux" {
		                   ^
backend/sftp/sftp.go:1163:21: string `powershell` has 5 occurrences, make it a constant (goconst)
						f.shellType = "powershell"
						              ^
backend/sftp/sftp.go:1168:22: string `cmd` has 4 occurrences, make it a constant (goconst)
							f.shellType = "cmd"
							              ^
backend/webdav/webdav.go:444:52: string `sharepoint-ntlm` has 3 occurrences, make it a constant (goconst)
	if opt.Enc == encoder.EncodeZero && opt.Vendor == "sharepoint-ntlm" {
	                                                  ^
fs/rc/internal.go:504:16: string `COMBINED_OUTPUT` has 3 occurrences, make it a constant (goconst)
		returnType = "COMBINED_OUTPUT"
		             ^
cmd/bisync/bisync_test.go:1166:19: string `queue` has 3 occurrences, make it a constant (goconst)
		case "listing", "queue", "filters":
		                ^
cmd/bisync/bisync_test.go:1420:24: string `log` has 4 occurrences, make it a constant (goconst)
		if fileType(file) == "log" {
		                     ^
cmd/bisync/bisync_test.go:956:20: string `nomodtime` has 3 occurrences, make it a constant (goconst)
		if b.testCase != "nomodtime" {
		                 ^
cmd/bisync/bisync_test.go:1468:28: string `lock` has 3 occurrences, make it a constant (goconst)
		if fileType(fileName) == "lock" {
		                         ^
cmd/bisync/bisync_test.go:1471:18: string `backupdirs` has 3 occurrences, make it a constant (goconst)
		if fileName == "backupdirs" {
		               ^
Command Mean [s] Min [s] Max [s] Relative
local 1.246 ± 0.012 1.222 1.269 1.02 ± 0.03
v1.61.0 1.223 ± 0.037 1.197 1.326 1.00

hashicorp/terraform

local
internal/getmodules/moduleaddrs/source_parsing_test.go:369:25: string `bar` has 3 occurrences, make it a constant (goconst)
		if registry.Subdir != "bar" {
		                      ^
internal/getmodules/moduleaddrs/source_parsing_test.go:366:23: string `foo` has 3 occurrences, make it a constant (goconst)
		if remote.Subdir != "foo" {
		                    ^
internal/getproviders/http_mirror_source.go:62:23: string `https` has 4 occurrences, make it a constant (goconst)
	if baseURL.Scheme != "https" {
	                     ^
internal/getproviders/registry_client.go:288:27: string `http` has 3 occurrences, make it a constant (goconst)
	if downloadURL.Scheme != "http" && downloadURL.Scheme != "https" {
	                         ^
internal/states/statefile/version3_upgrade.go:92:16: string `data` has 4 occurrences, make it a constant (goconst)
					modeStr = "data"
					          ^
internal/states/statefile/version3_upgrade.go:303:12: string `tainted` has 3 occurrences, make it a constant (goconst)
		status = "tainted"
		         ^
internal/states/statefile/version3_upgrade.go:90:16: string `managed` has 3 occurrences, make it a constant (goconst)
					modeStr = "managed"
					          ^
internal/command/e2etest/init_test.go:273:21: string `windows` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
internal/command/e2etest/providers_tamper_test.go:72:14: string `terraform init` has 4 occurrences, make it a constant (goconst)
		if want := `terraform init`; !strings.Contains(stderr, want) {
		           ^
internal/command/arguments/apply_test.go:147:39: string `flag provided but not defined` has 3 occurrences, make it a constant (goconst)
	if got, want := diags.Err().Error(), "flag provided but not defined"; !strings.Contains(got, want) {
	                                     ^
internal/command/arguments/apply_test.go:160:39: string `Too many command line arguments` has 3 occurrences, make it a constant (goconst)
	if got, want := diags.Err().Error(), "Too many command line arguments"; !strings.Contains(got, want) {
	                                     ^
internal/cloud/backend.go:358:15: string `HCP Terraform` has 4 occurrences, make it a constant (goconst)
		b.appName = "HCP Terraform"
		            ^
internal/cloud/tfe_client_mock.go:2036:22: string `unavailable-terraform-version` has 3 occurrences, make it a constant (goconst)
	if *options.Name == "unavailable-terraform-version" && options.TerraformVersion != nil {
	                    ^
internal/cloud/backend_taskStage_policyEvaluation.go:90:8: string `passed` has 3 occurrences, make it a constant (goconst)
		case "passed":
		     ^
internal/cloud/backend_apply_test.go:320:17: string `prod` has 5 occurrences, make it a constant (goconst)
	op.Workspace = "prod"
	               ^
internal/copy/copy_value_test.go:28:17: string `hello` has 8 occurrences, make it a constant (goconst)
		if input.S != "hello" {
		              ^
internal/configs/parser_config_dir.go:255:37: string `.tftest.json` has 3 occurrences, make it a constant (goconst)
		if ext == ".tftest.hcl" || ext == ".tftest.json" {
		                                  ^
internal/configs/provisioner.go:115:8: string `connection` has 3 occurrences, make it a constant (goconst)
		case "connection":
		     ^
internal/configs/removed.go:68:8: string `lifecycle` has 4 occurrences, make it a constant (goconst)
		case "lifecycle":
		     ^
internal/configs/mock_provider.go:245:8: string `override_data` has 3 occurrences, make it a constant (goconst)
		case "override_data":
		     ^
internal/configs/parser_config.go:95:8: string `terraform` has 3 occurrences, make it a constant (goconst)
		case "terraform":
		     ^
internal/configs/named_values.go:417:8: string `postcondition` has 7 occurrences, make it a constant (goconst)
		case "postcondition":
		     ^
internal/configs/named_values.go:413:8: string `precondition` has 7 occurrences, make it a constant (goconst)
		case "precondition":
		     ^
internal/configs/mock_provider.go:228:8: string `override_resource` has 3 occurrences, make it a constant (goconst)
		case "override_resource":
		     ^
internal/configs/module_merge_body.go:98:20: string `dynamic` has 3 occurrences, make it a constant (goconst)
		if block.Type == "dynamic" {
		                 ^
internal/registry/client_test.go:300:9: string `example.com/test-versions/name/provider` has 3 occurrences, make it a constant (goconst)
	src := "example.com/test-versions/name/provider"
	       ^
internal/backend/remote-state/http/client_test.go:130:7: string `DELETE` has 3 occurrences, make it a constant (goconst)
	case "DELETE":
	     ^
internal/backend/remote-state/http/backend_test.go:42:55: string `UNLOCK` has 3 occurrences, make it a constant (goconst)
	if client.UnlockURL != nil || client.UnlockMethod != "UNLOCK" {
	                                                     ^
internal/backend/remote-state/http/client_test.go:107:7: string `GET` has 3 occurrences, make it a constant (goconst)
	case "GET":
	     ^
internal/backend/remote-state/http/backend_test.go:36:28: string `POST` has 3 occurrences, make it a constant (goconst)
	if client.UpdateMethod != "POST" {
	                          ^
internal/backend/remote-state/http/backend_test.go:39:51: string `LOCK` has 3 occurrences, make it a constant (goconst)
	if client.LockURL != nil || client.LockMethod != "LOCK" {
	                                                 ^
internal/backend/remote-state/http/backend.go:136:25: string `http` has 3 occurrences, make it a constant (goconst)
	if updateURL.Scheme != "http" && updateURL.Scheme != "https" {
	                       ^
internal/command/jsonplan/plan.go:923:46: string `delete` has 3 occurrences, make it a constant (goconst)
		if actions[0] == "create" && actions[1] == "delete" {
		                                           ^
internal/states/statemgr/statemgr_fake.go:89:9: string `placeholder` has 3 occurrences, make it a constant (goconst)
	return "placeholder", nil
	       ^
internal/states/statemgr/filesystem_test.go:58:19: string `test` has 5 occurrences, make it a constant (goconst)
	info.Operation = "test"
	                 ^
internal/command/jsonformat/renderer.go:219:9: string `error` has 3 occurrences, make it a constant (goconst)
			case "error", "fail":
			     ^
internal/command/jsonformat/renderer.go:221:9: string `pass` has 3 occurrences, make it a constant (goconst)
			case "pass":
			     ^
internal/command/jsonformat/renderer.go:223:9: string `skip` has 3 occurrences, make it a constant (goconst)
			case "skip", "pending":
			     ^
internal/plugin/ui_input_test.go:24:24: string `foo` has 3 occurrences, make it a constant (goconst)
	i.InputReturnString = "foo"
	                      ^
internal/communicator/winrm/provisioner_test.go:68:21: string `30s` has 4 occurrences, make it a constant (goconst)
	if conf.Timeout != "30s" {
	                   ^
internal/communicator/winrm/provisioner_test.go:53:22: string `supersecret` has 4 occurrences, make it a constant (goconst)
	if conf.Password != "supersecret" {
	                    ^
internal/communicator/winrm/provisioner_test.go:50:18: string `Administrator` has 4 occurrences, but such constant `DefaultUser` already exists (goconst)
	if conf.User != "Administrator" {
	                ^
internal/communicator/ssh/communicator_test.go:186:16: string `echo foo` has 5 occurrences, make it a constant (goconst)
	cmd.Command = "echo foo"
	              ^
internal/communicator/ssh/provisioner_test.go:118:18: string `example.com` has 3 occurrences, make it a constant (goconst)
	if conf.Host != "example.com" {
	                ^
internal/tfdiags/diagnostics_test.go:274:32: string `didn't work` has 3 occurrences, make it a constant (goconst)
		if got, want := err.Error(), "didn't work"; got != want {
		                             ^
internal/lang/globalref/analyzer_meta_references.go:451:8: string `dynamic` has 4 occurrences, make it a constant (goconst)
		case "dynamic":
		     ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:48:7: string `list` has 3 occurrences, make it a constant (goconst)
	case "list", "map", "set":
	     ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:62:7: string `tuple` has 3 occurrences, make it a constant (goconst)
	case "tuple":
	     ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:69:7: string `providerconfig` has 3 occurrences, make it a constant (goconst)
	case "providerconfig":
	     ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:55:7: string `object` has 3 occurrences, make it a constant (goconst)
	case "object":
	     ^
v1.61.0
internal/lang/globalref/analyzer_meta_references.go:451:8: string `dynamic` has 4 occurrences, make it a constant (goconst)
		case "dynamic":
		     ^
internal/copy/copy_value_test.go:28:17: string `hello` has 8 occurrences, make it a constant (goconst)
		if input.S != "hello" {
		              ^
internal/tfdiags/diagnostics_test.go:274:32: string `didn't work` has 3 occurrences, make it a constant (goconst)
		if got, want := err.Error(), "didn't work"; got != want {
		                             ^
internal/registry/client_test.go:300:9: string `example.com/test-versions/name/provider` has 3 occurrences, make it a constant (goconst)
	src := "example.com/test-versions/name/provider"
	       ^
internal/command/arguments/apply_test.go:147:39: string `flag provided but not defined` has 3 occurrences, make it a constant (goconst)
	if got, want := diags.Err().Error(), "flag provided but not defined"; !strings.Contains(got, want) {
	                                     ^
internal/command/arguments/apply_test.go:160:39: string `Too many command line arguments` has 3 occurrences, make it a constant (goconst)
	if got, want := diags.Err().Error(), "Too many command line arguments"; !strings.Contains(got, want) {
	                                     ^
internal/command/e2etest/providers_tamper_test.go:72:14: string `terraform init` has 4 occurrences, make it a constant (goconst)
		if want := `terraform init`; !strings.Contains(stderr, want) {
		           ^
internal/command/e2etest/init_test.go:273:21: string `windows` has 3 occurrences, make it a constant (goconst)
	if runtime.GOOS == "windows" {
	                   ^
internal/command/jsonstate/state_test.go:709:23: string `module.child` has 3 occurrences, make it a constant (goconst)
	if got[0].Address != "module.child" || got[1].Address != "module.submodule" {
	                     ^
internal/plugin/ui_input_test.go:24:24: string `foo` has 3 occurrences, make it a constant (goconst)
	i.InputReturnString = "foo"
	                      ^
internal/communicator/ssh/communicator_test.go:186:16: string `echo foo` has 5 occurrences, make it a constant (goconst)
	cmd.Command = "echo foo"
	              ^
internal/communicator/ssh/provisioner_test.go:118:18: string `example.com` has 3 occurrences, make it a constant (goconst)
	if conf.Host != "example.com" {
	                ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:62:7: string `tuple` has 3 occurrences, make it a constant (goconst)
	case "tuple":
	     ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:69:7: string `providerconfig` has 3 occurrences, make it a constant (goconst)
	case "providerconfig":
	     ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:48:15: string `map` has 3 occurrences, make it a constant (goconst)
	case "list", "map", "set":
	             ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:55:7: string `object` has 3 occurrences, make it a constant (goconst)
	case "object":
	     ^
internal/addrs/module.go:213:14: string `module` has 5 occurrences, make it a constant (goconst)
		if next != "module" {
		           ^
internal/addrs/parse_ref.go:229:7: string `resource` has 3 occurrences, make it a constant (goconst)
	case "resource":
	     ^
internal/addrs/parse_ref.go:216:7: string `data` has 4 occurrences, make it a constant (goconst)
	case "data":
	     ^
internal/addrs/parse_ref.go:352:7: string `self` has 3 occurrences, make it a constant (goconst)
	case "self":
	     ^
internal/addrs/parse_ref.go:359:7: string `terraform` has 4 occurrences, make it a constant (goconst)
	case "terraform":
	     ^
internal/states/statefile/version3_upgrade.go:303:12: string `tainted` has 3 occurrences, make it a constant (goconst)
		status = "tainted"
		         ^
internal/states/statefile/version3_upgrade.go:92:16: string `data` has 4 occurrences, make it a constant (goconst)
					modeStr = "data"
					          ^
internal/states/statefile/version3_upgrade.go:90:16: string `managed` has 3 occurrences, make it a constant (goconst)
					modeStr = "managed"
					          ^
internal/promising/once_test.go:49:30: string `hello` has 3 occurrences, make it a constant (goconst)
	if got, want := gotPtr.msg, "hello"; got != want {
	                            ^
internal/command/init.go:431:21: string `cloud` has 9 occurrences, make it a constant (goconst)
		if backendType == "cloud" {
		                  ^
internal/command/init_test.go:844:20: string `foo` has 8 occurrences, make it a constant (goconst)
	if cfg["path"] != "foo" {
	                  ^
internal/command/meta_backend_test.go:1150:38: string `backend-change-env2` has 3 occurrences, make it a constant (goconst)
	if testStateMgrCurrentLineage(s) != "backend-change-env2" {
	                                    ^
internal/command/login_test.go:124:34: string `good-token` has 4 occurrences, make it a constant (goconst)
		if got, want := creds.Token(), "good-token"; got != want {
		                               ^
internal/command/login.go:712:31: string `yes` has 4 occurrences, make it a constant (goconst)
	return strings.ToLower(v) == "yes", diags
	                             ^
internal/command/apply_test.go:1493:15: string `bar` has 8 occurrences, make it a constant (goconst)
	if actual != "bar" {
	             ^
internal/command/init_test.go:2732:15: string `Error: Unsupported block type` has 3 occurrences, make it a constant (goconst)
	if subStr := "Error: Unsupported block type"; !strings.Contains(errStr, subStr) {
	             ^
internal/command/meta_backend_migrate.go:465:14: string `HCP Terraform` has 6 occurrences, make it a constant (goconst)
		appName := "HCP Terraform"
		           ^
internal/command/meta_backend_test.go:915:38: string `backend-change` has 5 occurrences, make it a constant (goconst)
	if testStateMgrCurrentLineage(s) != "backend-change" {
	                                    ^
internal/command/login.go:72:19: string `app.terraform.io` has 4 occurrences, make it a constant (goconst)
	givenHostname := "app.terraform.io"
	                 ^
internal/command/init_test.go:2729:15: string `Terraform encountered problems during initialisation, including problems
with the configuration, described below.` has 4 occurrences, make it a constant (goconst)
	if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
	             ^
internal/command/init_test.go:780:20: string `test` has 4 occurrences, make it a constant (goconst)
	if cfg["path"] != "test" {
	                  ^
internal/command/state_mv_test.go:1505:15: string `local-state.tfstate` has 3 occurrences, make it a constant (goconst)
	statePath := "local-state.tfstate"
	             ^
internal/command/init_test.go:396:62: string `{"path":"hello","workspace_dir":null}` has 5 occurrences, make it a constant (goconst)
		if got, want := normalizeJSON(t, state.Backend.ConfigRaw), `{"path":"hello","workspace_dir":null}`; got != want {
		                                                           ^
internal/command/meta_backend_test.go:852:14: string `default` has 3 occurrences, make it a constant (goconst)
	expected := "default"
	            ^
internal/getproviders/http_mirror_source.go:62:23: string `https` has 4 occurrences, make it a constant (goconst)
	if baseURL.Scheme != "https" {
	                     ^
internal/getproviders/registry_client.go:288:27: string `http` has 3 occurrences, make it a constant (goconst)
	if downloadURL.Scheme != "http" && downloadURL.Scheme != "https" {
	                         ^
internal/cloud/tfe_client_mock.go:2036:22: string `unavailable-terraform-version` has 3 occurrences, make it a constant (goconst)
	if *options.Name == "unavailable-terraform-version" && options.TerraformVersion != nil {
	                    ^
internal/cloud/backend_taskStage_policyEvaluation.go:90:8: string `passed` has 3 occurrences, make it a constant (goconst)
		case "passed":
		     ^
internal/cloud/backend.go:358:15: string `HCP Terraform` has 4 occurrences, make it a constant (goconst)
		b.appName = "HCP Terraform"
		            ^
internal/cloud/backend_apply_test.go:320:17: string `prod` has 5 occurrences, make it a constant (goconst)
	op.Workspace = "prod"
	               ^
internal/backend/remote-state/http/client_test.go:130:7: string `DELETE` has 3 occurrences, make it a constant (goconst)
	case "DELETE":
	     ^
internal/backend/remote-state/http/backend_test.go:36:28: string `POST` has 3 occurrences, make it a constant (goconst)
	if client.UpdateMethod != "POST" {
	                          ^
internal/backend/remote-state/http/backend_test.go:42:55: string `UNLOCK` has 3 occurrences, make it a constant (goconst)
	if client.UnlockURL != nil || client.UnlockMethod != "UNLOCK" {
	                                                     ^
internal/backend/remote-state/http/backend.go:136:25: string `http` has 3 occurrences, make it a constant (goconst)
	if updateURL.Scheme != "http" && updateURL.Scheme != "https" {
	                       ^
Command Mean [s] Min [s] Max [s] Relative
local 1.588 ± 0.036 1.540 1.671 1.00 ± 0.04
v1.61.0 1.583 ± 0.046 1.540 1.670 1.00

traefik/traefik

Command Mean [s] Min [s] Max [s] Relative
local 1.152 ± 0.010 1.140 1.170 1.01 ± 0.05
v1.61.0 1.143 ± 0.057 1.107 1.300 1.00

You can find the workflow here:
https://github.com/ldez/golangci-lint-bench/actions/runs/11714431356

@ldez ldez closed this as completed Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant