frostfs-node/pkg/services/object
Evgenii Stratonikov c98357606b
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 28s
DCO action / DCO (pull_request) Successful in 42s
Vulncheck / Vulncheck (pull_request) Successful in 1m0s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m33s
Build / Build Components (pull_request) Successful in 1m46s
Tests and linters / Staticcheck (pull_request) Successful in 2m0s
Tests and linters / Lint (pull_request) Successful in 2m55s
Tests and linters / Tests (pull_request) Successful in 4m17s
Tests and linters / Tests with -race (pull_request) Successful in 5m14s
Tests and linters / gopls check (pull_request) Successful in 5m17s
Tests and linters / Run gofumpt (push) Successful in 27s
Vulncheck / Vulncheck (push) Successful in 51s
Pre-commit hooks / Pre-commit (push) Successful in 1m25s
Build / Build Components (push) Successful in 2m10s
Tests and linters / Staticcheck (push) Successful in 2m25s
Tests and linters / Lint (push) Successful in 3m24s
Tests and linters / Tests (push) Successful in 4m4s
OCI image / Build container images (push) Successful in 4m21s
Tests and linters / Tests with -race (push) Successful in 4m25s
Tests and linters / gopls check (push) Successful in 4m49s
[#1606] Use slices.Clone()/bytes.Clone() where possible
gopatch:
```
@@
var from, to expression
@@
+import "bytes"
-to := make([]byte, len(from))
-copy(to, from)
+to := bytes.Clone(from)

@@
var from, to expression
@@
+import "bytes"
-to = make([]byte, len(from))
-copy(to, from)
+to = bytes.Clone(from)

@@
var from, to, typ expression
@@
+import "slices"
-to := make([]typ, len(from))
-copy(to, from)
+to := slices.Clone(from)

@@
var from, to, typ expression
@@
+import "slices"
-to = make([]typ, len(from))
-copy(to, from)
+to = slices.Clone(from)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-17 14:50:14 +03:00
..
acl [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
ape [#1243] object: Look for X-Headers within origin before APE check 2025-01-13 12:07:27 +00:00
common [#1606] Use slices.Clone()/bytes.Clone() where possible 2025-01-17 14:50:14 +03:00
delete [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
get [#1540] getSvc: Drop redundant returns 2024-12-05 12:39:49 +00:00
internal [#465] objsvc: Set NETMAP_EPOCH xheader for auxiliary requests 2024-12-26 09:17:58 +00:00
patch [#1479] go.mod: Bump frostfs-sdk-go version 2024-11-08 10:43:19 +03:00
put [#1598] golangci: Enable unconvert linters 2025-01-14 09:06:40 +03:00
search [#1606] Use slices.Clone()/bytes.Clone() where possible 2025-01-17 14:50:14 +03:00
util [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
audit.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
common.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
metrics.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
remote_reader.go [#1431] obj_storage/metabase: Delete unused variable 2024-10-15 08:53:59 +00:00
request_context.go [#1480] ape: Remove SoftAPECheck flag 2024-11-08 12:01:14 +00:00
response.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
server.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
sign.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
transport_splitter.go [#1586] objsvc: Allow to send search response in multiple messages 2024-12-28 12:29:22 +00:00