-
Notifications
You must be signed in to change notification settings - Fork 38
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
base: master
Are you sure you want to change the base?
Org-wide linter #2943
Commits on Sep 19, 2024
-
workflows: reuse org-wide linter workflow
Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4f8062 - Browse repository at this point
Copy the full SHA b4f8062View commit details -
Error: `Non-wrapping format verb for fmt.Errorf. Use `%w` to format errors` and `comparing with != || == will fail on wrapped errors. Use errors.Is to check for a specific error`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6a4d903 - Browse repository at this point
Copy the full SHA 6a4d903View commit details -
Error: `Error return value is not checked`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b87f9dd - Browse repository at this point
Copy the full SHA b87f9ddView commit details -
Error: `for loop can be changed to use an integer range (Go 1.22+)`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 297e544 - Browse repository at this point
Copy the full SHA 297e544View commit details -
Errors: `unnecessary leading newline` and `unnecessary trailing newline`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0ddfb96 - Browse repository at this point
Copy the full SHA 0ddfb96View commit details -
*: fix
unused
andineffassign
lint errorsSigned-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d98abd2 - Browse repository at this point
Copy the full SHA d98abd2View commit details -
Error: `SA4004: the surrounding loop is unconditionally terminated`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7eec572 - Browse repository at this point
Copy the full SHA 7eec572View commit details -
*: suspend
contextcheck
lint errorError in `cmd/neofs-node/config.go`: `Function `Reload->Init->init->listenEvents` should pass the context parameter`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 660d542 - Browse repository at this point
Copy the full SHA 660d542View commit details -
Error: `Comment should end in a period`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4f4cbb1 - Browse repository at this point
Copy the full SHA 4f4cbb1View commit details -
Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 939bb4a - Browse repository at this point
Copy the full SHA 939bb4aView commit details -
Error: `duplicated-imports`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 656adb5 - Browse repository at this point
Copy the full SHA 656adb5View commit details -
Errors: `S1023: redundant `return` statement` and `S1019: should use make(chan *Move) instead`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 02aed6f - Browse repository at this point
Copy the full SHA 02aed6fView commit details -
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` - `object.Object.GetID` instead of `object.Object.ID` - `object.Object.GetContainerID` instead of `object.Object.ContainerID` - 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e003a68 - Browse repository at this point
Copy the full SHA e003a68View commit details -
Error: `struct literal uses unkeyed fields`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b948d79 - Browse repository at this point
Copy the full SHA b948d79View commit details -
*: fix
Receiver names are different
lint errorSigned-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5daae82 - Browse repository at this point
Copy the full SHA 5daae82View commit details -
Update to `math/rand/v2` and use `crypto/rand` for `rand.Read`. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 428dfe1 - Browse repository at this point
Copy the full SHA 428dfe1View commit details -
Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d411599 - Browse repository at this point
Copy the full SHA d411599View commit details -
*: fix
Variable collides with imported package name
lint errorCloses #2940. Signed-off-by: Andrey Butusov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7468c36 - Browse repository at this point
Copy the full SHA 7468c36View commit details