MCPcopy
hub / github.com/docker/compose / sortedSuspiciousKeys

Method sortedSuspiciousKeys

pkg/compose/publish.go:393–395  ·  view source on GitHub ↗

sortedSuspiciousKeys returns the suspicious env var names alphabetically sorted for stable output.

()

Source from the content-addressed store, hash-verified

391// sortedSuspiciousKeys returns the suspicious env var names alphabetically
392// sorted for stable output.
393func (f *serviceEnvFindings) sortedSuspiciousKeys() []string {
394 return sortedMapKeys(f.suspiciousKeys)
395}
396
397func sortedMapKeys[V any](m map[string]V) []string {
398 keys := make([]string, 0, len(m))

Callers 2

buildEnvPromptMessageFunction · 0.80

Calls 1

sortedMapKeysFunction · 0.85

Tested by 1