n3dr
n3dr copied to clipboard
gocritic
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
- nexus version:
- n3dr version (use
n3dr -v): - OS (e.g:
cat /etc/os-release): - Kernel (e.g.
uname -a): - Others:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Error: internal/app/n3dr/artifactsv2/count/artifacts.go:135:4: assignOp: replace `format = format + " "` with `format += " "` (gocritic)
format = format + " "
^
Error: internal/app/n3dr/artifactsv2/upload/upload.go:363:9: wrapperFunc: use strings.ReplaceAll method in `strings.Replace(filepath.Dir(path), localDiskRepoHome+"/", "", -1)` (gocritic)
dir := strings.Replace(filepath.Dir(path), localDiskRepoHome+"/", "", -1)
^
Error: cmd/n3dr/root.go:69:3: exitAfterDefer: os.Exit will exit, and `defer func(){...}(...)` will not run (gocritic)
os.Exit(1)