forked from TrueCloudLab/frostfs-sdk-go
[#47] .golangci.yml: Unify with other FrostFS repos
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
4fa52312c7
commit
708d933fe3
9 changed files with 39 additions and 12 deletions
|
@ -9,6 +9,7 @@ import "strconv"
|
|||
// use corresponding constants and/or methods instead.
|
||||
type Op uint32
|
||||
|
||||
// nolint: unused
|
||||
const (
|
||||
opZero Op = iota // extreme value for testing
|
||||
|
||||
|
@ -53,6 +54,7 @@ func (x Op) String() string {
|
|||
// use corresponding constants and/or methods instead.
|
||||
type Role uint32
|
||||
|
||||
// nolint: unused
|
||||
const (
|
||||
roleZero Role = iota // extreme value for testing
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ func setBit(num *uint32, n uint8) {
|
|||
}
|
||||
|
||||
// resets n-th bit in num (starting at 0).
|
||||
//
|
||||
// nolint: unused
|
||||
func resetBit(num *uint32, n uint8) {
|
||||
var mask uint32
|
||||
setBit(&mask, n)
|
||||
|
|
|
@ -50,6 +50,8 @@ const (
|
|||
|
||||
// reads Container from the container.Container message. If checkFieldPresence is set,
|
||||
// returns an error on absence of any protocol-required field.
|
||||
//
|
||||
// nolint: funlen
|
||||
func (x *Container) readFromV2(m container.Container, checkFieldPresence bool) error {
|
||||
var err error
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue