[#1910] .golangci.yml: Add godot linker

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-10-17 15:03:55 +03:00 committed by fyrchik
parent 347912ea0b
commit d772e35aba
54 changed files with 90 additions and 107 deletions

View file

@ -6,7 +6,7 @@ import (
"github.com/spf13/viper"
)
// Cmd represents the accounting command
// Cmd represents the accounting command.
var Cmd = &cobra.Command{
Use: "accounting",
Short: "Operations with accounts and balances",

View file

@ -146,6 +146,8 @@ func getRulesFromFile(filename string) ([]string, error) {
//
// Examples:
// allow get req:X-Header=123 obj:Attr=value others:0xkey1,key2 system:key3 user:key4
//
//nolint:godot
func parseTable(tb *eacl.Table, args []string) error {
if len(args) < 2 {
return errors.New("at least 2 arguments must be provided")

View file

@ -12,13 +12,13 @@ import (
"github.com/spf13/cobra"
)
// flags of list command
// flags of list command.
const (
flagListPrintAttr = "with-attr"
flagListContainerOwner = "owner"
)
// flag vars of list command
// flag vars of list command.
var (
flagVarListPrintAttr bool
flagVarListContainerOwner string

View file

@ -15,12 +15,12 @@ import (
"github.com/spf13/cobra"
)
// flags of list-object command
// flags of list-object command.
const (
flagListObjectPrintAttr = "with-attr"
)
// flag vars of list-objects command
// flag vars of list-objects command.
var (
flagVarListObjectsPrintAttr bool
)

View file

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra"
)
// Cmd represents the container command
// Cmd represents the container command.
var Cmd = &cobra.Command{
Use: "container",
Short: "Operations with containers",

View file

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra"
)
// Cmd represents the object command
// Cmd represents the object command.
var Cmd = &cobra.Command{
Use: "object",
Short: "Operations with Objects",

View file

@ -33,7 +33,7 @@ var (
cfgFile string
)
// rootCmd represents the base command when called without any subcommands
// rootCmd represents the base command when called without any subcommands.
var rootCmd = &cobra.Command{
Use: "neofs-cli",
Short: "Command Line Tool to work with NeoFS",

View file

@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"
)
// Cmd represents the storagegroup command
// Cmd represents the storagegroup command.
var Cmd = &cobra.Command{
Use: "storagegroup",
Short: "Operations with Storage Groups",

View file

@ -4,7 +4,7 @@ import (
"github.com/spf13/cobra"
)
// locode section
// locode section.
var locodeCmd = &cobra.Command{
Use: "locode",
Short: "Working with NeoFS UN/LOCODE database",