[#1910] .golangci.yml: Add misspell
linker
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
9e46799cd4
commit
1cb892c579
7 changed files with 7 additions and 6 deletions
|
@ -47,6 +47,7 @@ linters:
|
||||||
- exportloopref
|
- exportloopref
|
||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
|
- misspell
|
||||||
- reassign
|
- reassign
|
||||||
- whitespace
|
- whitespace
|
||||||
disable-all: true
|
disable-all: true
|
||||||
|
|
|
@ -109,7 +109,7 @@ func readSession(cmd *cobra.Command, dst sessionPrm, key *ecdsa.PrivateKey, cnr
|
||||||
// - if session verb corresponds to given sessionPrm according to its type
|
// - if session verb corresponds to given sessionPrm according to its type
|
||||||
// - relation to the given container
|
// - relation to the given container
|
||||||
// - relation to the given object if non-nil
|
// - relation to the given object if non-nil
|
||||||
// - relation to the given private key used withing the command
|
// - relation to the given private key used within the command
|
||||||
// - session signature
|
// - session signature
|
||||||
//
|
//
|
||||||
// sessionPrm MUST be one of:
|
// sessionPrm MUST be one of:
|
||||||
|
|
|
@ -78,7 +78,7 @@ func (n *notificationSource) processAddress(
|
||||||
|
|
||||||
ni, err := res.Header().NotificationInfo()
|
ni, err := res.Header().NotificationInfo()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("could not retreive notification topic from object: %w", err)
|
return fmt.Errorf("could not retrieve notification topic from object: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
topic := ni.Topic()
|
topic := ni.Topic()
|
||||||
|
|
|
@ -89,7 +89,7 @@ func (c *Config) Compress(data []byte) []byte {
|
||||||
return c.encoder.EncodeAll(data, make([]byte, 0, len(data)))
|
return c.encoder.EncodeAll(data, make([]byte, 0, len(data)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close closes encoder and decoder, returns any error occured.
|
// Close closes encoder and decoder, returns any error occurred.
|
||||||
func (c *Config) Close() error {
|
func (c *Config) Close() error {
|
||||||
var err error
|
var err error
|
||||||
if c.encoder != nil {
|
if c.encoder != nil {
|
||||||
|
|
|
@ -34,7 +34,7 @@ func (b *BlobStor) Exists(prm common.ExistsPrm) (common.ExistsRes, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, err := range errors[:len(errors)-1] {
|
for _, err := range errors[:len(errors)-1] {
|
||||||
b.log.Warn("error occured during object existence checking",
|
b.log.Warn("error occurred during object existence checking",
|
||||||
zap.Stringer("address", prm.Address),
|
zap.Stringer("address", prm.Address),
|
||||||
zap.String("error", err.Error()))
|
zap.String("error", err.Error()))
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ func updateVersion(tx *bbolt.Tx, version uint64) error {
|
||||||
|
|
||||||
b, err := tx.CreateBucketIfNotExists(shardInfoBucket)
|
b, err := tx.CreateBucketIfNotExists(shardInfoBucket)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("can't create auxilliary bucket: %w", err)
|
return fmt.Errorf("can't create auxiliary bucket: %w", err)
|
||||||
}
|
}
|
||||||
return b.Put(versionKey, data)
|
return b.Put(versionKey, data)
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ func (s *TokenStore) decrypt(value []byte) ([]byte, error) {
|
||||||
nonceSize := s.gcm.NonceSize()
|
nonceSize := s.gcm.NonceSize()
|
||||||
if len(value) < nonceSize {
|
if len(value) < nonceSize {
|
||||||
return nil, fmt.Errorf(
|
return nil, fmt.Errorf(
|
||||||
"unexpected encrypted length: nonce length is %d, encrypted data lenght is %d",
|
"unexpected encrypted length: nonce length is %d, encrypted data length is %d",
|
||||||
nonceSize,
|
nonceSize,
|
||||||
len(value),
|
len(value),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue