mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
Add modernize and perfsprint to .golangci.yml and resolve all lint issues across 97 files: - Replace fmt.Errorf with errors.New where no format verbs are used - Replace fmt.Sprintf(%d) with strconv.Itoa for int conversions - Replace redundant fmt.Sprintf(%s) with direct string values - Use slices.Contains instead of manual loops (SkillsConfig.HasLocal) - Use omitzero instead of omitempty on struct fields (time.Time, SkillsConfig) - Inline boolPtr helpers to new(bool) and remove unused functions - Replace string concatenation in loops with strings.Builder - Use fmt.Fprintf instead of WriteString(fmt.Sprintf(...)) Assisted-By: docker-agent