copilot-swe-agent[bot]
f566e04888
chore: enable more linters and fix all critical issues
...
Enabled additional linters from fakemachine configuration:
- errorlint: Error wrapping with %w
- misspell: Spelling checks
- revive: Code quality checks
- whitespace: Formatting checks
Fixed all issues including:
- Error handling: Added proper error checks for all function returns
- Error wrapping: Changed %v to %w for proper error wrapping
- Type assertions: Used errors.As instead of direct type assertions
- Unused parameters: Renamed to underscore where appropriate
- Variable naming: Fixed ALL_CAPS constants and underscored names
- Whitespace: Removed unnecessary leading/trailing newlines
- Code flow: Removed unnecessary else blocks
Renamed types (breaking internal API changes):
- DebosState → State
- DebosContext → Context
- DownloadHttpUrl → DownloadHTTPURL
Fixed struct field naming with proper YAML tags:
- Url → URL (with yaml:"url" tag)
- TlsClientCertPath → TLSClientCertPath (kept yaml:"tls-client-cert-path")
- TlsClientKeyPath → TLSClientKeyPath (kept yaml:"tls-client-key-path")
- validateUrl → validateURL method
Co-authored-by: sjoerdsimons <22603932+sjoerdsimons@users.noreply.github.com >
2025-10-01 21:21:22 +02:00
Loïc Minier
ae9d5574cc
fix: Incorrectly formatted error string (ST1005)
...
Reported by staticcheck
Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com >
2025-09-05 09:24:07 +02:00
Christopher Obbard
158ed7c09a
chore: run go fmt
...
Signed-off-by: Christopher Obbard <christopher.obbard@linaro.org >
2025-08-11 14:33:38 +01:00
Denis Pynkin
6cece5a983
Add tests for archiver module
...
Add tests for Tar, Zip and Deb archive types.
go test -coverprofile=cover.out
....
PASS
coverage: 51.0% of statements
Coverage for archiver.go: 100%
Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com >
tests reworked
2017-10-05 19:15:12 +03:00