Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Org-wide linter #2943

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Org-wide linter #2943

wants to merge 2 commits into from

Conversation

End-rey
Copy link
Contributor

@End-rey End-rey commented Sep 19, 2024

Closes #2940.

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 32.69231% with 175 lines in your changes missing coverage. Please review.

Project coverage is 23.78%. Comparing base (b135a0e) to head (b721910).

Files with missing lines Patch % Lines
pkg/services/object/util/chain.go 0.00% 18 Missing ⚠️
cmd/neofs-cli/modules/object/head.go 0.00% 11 Missing ⚠️
pkg/core/object/fmt.go 47.05% 6 Missing and 3 partials ⚠️
cmd/neofs-lens/internal/printers.go 0.00% 8 Missing ⚠️
pkg/services/object/split/verify.go 0.00% 8 Missing ⚠️
pkg/services/object/put/local.go 0.00% 7 Missing ⚠️
cmd/neofs-cli/modules/util/acl.go 0.00% 5 Missing ⚠️
pkg/services/object/acl/acl.go 0.00% 5 Missing ⚠️
pkg/services/object/get/assembly_v2.go 0.00% 5 Missing ⚠️
cmd/neofs-lens/internal/meta/get.go 0.00% 4 Missing ⚠️
... and 62 more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2943   +/-   ##
=======================================
  Coverage   23.77%   23.78%           
=======================================
  Files         779      779           
  Lines       45995    45999    +4     
=======================================
+ Hits        10936    10941    +5     
+ Misses      34199    34198    -1     
  Partials      860      860           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@End-rey End-rey marked this pull request as draft September 19, 2024 17:10
pkg/local_object_storage/shard/metrics_test.go Outdated Show resolved Hide resolved
cmd/neofs-adm/internal/modules/config/config_test.go Outdated Show resolved Hide resolved
pkg/local_object_storage/metabase/delete_test.go Outdated Show resolved Hide resolved
pkg/local_object_storage/metabase/exists_test.go Outdated Show resolved Hide resolved
pkg/local_object_storage/pilorama/forest_test.go Outdated Show resolved Hide resolved
pkg/local_object_storage/shard/shutdown_test.go Outdated Show resolved Hide resolved
pkg/services/control/service_test.go Outdated Show resolved Hide resolved
pkg/local_object_storage/pilorama/forest_test.go Outdated Show resolved Hide resolved
Signed-off-by: Andrey Butusov <andrey@nspcc.io>
@End-rey End-rey mentioned this pull request Sep 23, 2024
Use:
- `eacl.Target.RawSubjects` instead of `eacl.Target.BinaryKeys`
- `eacl.NewTargetByRole` with `eacl.Target.SetRawSubjects` for targets with
public keys
- `eacl.ConstructTable` instead of `eacl.NewTable`
- `eacl.ConstructRecord` instead of `eacl.NewRecord`
- `*.Get*ID` instead of `*.*ID`
- comparing with == instead of `ID.Equals`
- `cid.NewFromMarshalledContainer(cnr.Marshal())` instead of
`cid.ID.CalculateID`
- `user.NewFromECDSAPublicKey` instead of `user.ResolveFromECDSAPublicKey`
- direct copy instead of `ID.Encode`
- direct assign instead of `ID.SetSHA256`

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt org-wide linter
2 participants