Preparing report...

Report for gitoa.ru/go-4devs/console

A+    Excellent!    Found 52 issues across 72 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo97%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint27%

Golint is a linter for Go source code.

    • /gitoa.ru/go-4devs/console/input/value/bool.go
    • Line 9: warning: exported type Bool should have comment or be unexported (golint)
    • Line 15: warning: exported method Bool.Append should have comment or be unexported (golint)
    • Line 26: warning: exported method Bool.Bool should have comment or be unexported (golint)
    • Line 34: warning: exported method Bool.Bools should have comment or be unexported (golint)
    • Line 38: warning: exported method Bool.Any should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/errs/error.go
    • Line 9: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported type Error should have comment or be unexported (golint)
    • Line 36: warning: exported method Error.Is should have comment or be unexported (golint)
    • Line 44: warning: exported function Option should have comment or be unexported (golint)
    • Line 52: warning: exported function Argument should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/validator/error.go
    • Line 9: warning: exported var ErrInvalid should have comment or be unexported (golint)
    • Line 13: warning: exported function NewError should have comment or be unexported (golint)
    • Line 21: warning: exported type Error should have comment or be unexported (golint)
    • Line 31: warning: exported method Error.Is should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/argument/option.go
    • Line 8: warning: exported function Required should have comment or be unexported (golint)
    • Line 12: warning: exported function Default should have comment or be unexported (golint)
    • Line 18: warning: exported function Flag should have comment or be unexported (golint)
    • Line 24: warning: exported function Array should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/label/kv.go
    • Line 13: warning: exported type KeyValues should have comment or be unexported (golint)
    • Line 24: warning: exported type KeyValue should have comment or be unexported (golint)
    • Line 33: warning: exported function Any should have comment or be unexported (golint)
    • Line 37: warning: exported function Bool should have comment or be unexported (golint)
    • Line 41: warning: exported function Int should have comment or be unexported (golint)
    • Line 45: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 49: warning: exported function Uint should have comment or be unexported (golint)
    • Line 53: warning: exported function Uint64 should have comment or be unexported (golint)
    • Line 57: warning: exported function Float64 should have comment or be unexported (golint)
    • Line 61: warning: exported function String should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/formatter/formatter.go
    • Line 14: warning: exported function WithStyle should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 32: warning: exported type Formatter should have comment or be unexported (golint)
    • Line 36: warning: exported method Formatter.Format should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/value.go
    • Line 9: warning: exported type Value should have comment or be unexported (golint)
    • Line 32: warning: exported type Append should have comment or be unexported (golint)
    • Line 37: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 91: warning: exported function ByFlag should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/style/style.go
    • Line 23: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 27: warning: exported function Empty should have comment or be unexported (golint)
    • Line 31: warning: exported function Find should have comment or be unexported (golint)
    • Line 39: warning: exported function Register should have comment or be unexported (golint)
    • Line 52: warning: exported function MustRegister should have comment or be unexported (golint)
    • Line 58: warning: exported type Style should have comment or be unexported (golint)
    • Line 64: warning: exported method Style.Apply should have comment or be unexported (golint)
    • Line 68: warning: exported method Style.Set should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/writer.go
    • Line 17: warning: exported function Stderr should have comment or be unexported (golint)
    • Line 21: warning: exported function Stdout should have comment or be unexported (golint)
    • Line 25: warning: exported function Buffer should have comment or be unexported (golint)
    • Line 29: warning: exported function FormatString should have comment or be unexported (golint)
    • Line 42: warning: exported function New should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/duration.go
    • Line 9: warning: exported type Duration should have comment or be unexported (golint)
    • Line 15: warning: exported method Duration.Append should have comment or be unexported (golint)
    • Line 26: warning: exported method Duration.Duration should have comment or be unexported (golint)
    • Line 34: warning: exported method Duration.Durations should have comment or be unexported (golint)
    • Line 38: warning: exported method Duration.Any should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/time.go
    • Line 9: warning: exported type Time should have comment or be unexported (golint)
    • Line 15: warning: exported method Time.Append should have comment or be unexported (golint)
    • Line 26: warning: exported method Time.Time should have comment or be unexported (golint)
    • Line 34: warning: exported method Time.Times should have comment or be unexported (golint)
    • Line 38: warning: exported method Time.Amy should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/array.go
    • Line 10: warning: exported type Array should have comment or be unexported (golint)
    • Line 15: warning: exported method Array.Option should have comment or be unexported (golint)
    • Line 27: warning: exported method Array.Argument should have comment or be unexported (golint)
    • Line 39: warning: exported method Array.Bind should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/int64.go
    • Line 9: warning: exported type Int64 should have comment or be unexported (golint)
    • Line 15: warning: exported method Int64.Int64 should have comment or be unexported (golint)
    • Line 23: warning: exported method Int64.Int64s should have comment or be unexported (golint)
    • Line 27: warning: exported method Int64.Any should have comment or be unexported (golint)
    • Line 35: warning: exported method Int64.Append should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/style/color.go
    • Line 4: warning: exported const Black should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported const Bold should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported const ActionSet should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type Option should have comment or be unexported (golint)
    • Line 30: warning: exported method Option.Apply should have comment or be unexported (golint)
    • Line 43: warning: exported type Color should have comment or be unexported (golint)
    • Line 45: warning: exported method Color.Apply should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/option/option.go
    • Line 9: warning: exported function Required should have comment or be unexported (golint)
    • Line 13: warning: exported function Default should have comment or be unexported (golint)
    • Line 19: warning: exported function Short should have comment or be unexported (golint)
    • Line 25: warning: exported function Array should have comment or be unexported (golint)
    • Line 29: warning: exported function Value should have comment or be unexported (golint)
    • Line 35: warning: exported function Flag should have comment or be unexported (golint)
    • Line 41: warning: exported function Valid should have comment or be unexported (golint)
    • Line 47: warning: exported function New should have comment or be unexported (golint)
    • Line 60: warning: exported type Option should have comment or be unexported (golint)
    • Line 69: warning: exported method Option.HasShort should have comment or be unexported (golint)
    • Line 73: warning: exported method Option.HasDefault should have comment or be unexported (golint)
    • Line 77: warning: exported method Option.IsBool should have comment or be unexported (golint)
    • Line 81: warning: exported method Option.IsArray should have comment or be unexported (golint)
    • Line 85: warning: exported method Option.IsRequired should have comment or be unexported (golint)
    • Line 89: warning: exported method Option.Validate should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/uint.go
    • Line 9: warning: exported type Uint should have comment or be unexported (golint)
    • Line 15: warning: exported method Uint.Append should have comment or be unexported (golint)
    • Line 26: warning: exported method Uint.Uint should have comment or be unexported (golint)
    • Line 34: warning: exported method Uint.Uints should have comment or be unexported (golint)
    • Line 38: warning: exported method Uint.Any should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/register.go
    • Line 13: warning: exported const CommandHelp should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 30: warning: exported type ErrorAlternatives should have comment or be unexported (golint)
    • Line 39: warning: exported method ErrorAlternatives.Is should have comment or be unexported (golint)
    • Line 47: warning: exported method ErrorAlternatives.Alternatives should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/output.go
    • Line 19: warning: exported type Output should have comment or be unexported (golint)
    • Line 21: warning: exported method Output.Print should have comment or be unexported (golint)
    • Line 25: warning: exported method Output.PrintKV should have comment or be unexported (golint)
    • Line 29: warning: exported method Output.Printf should have comment or be unexported (golint)
    • Line 33: warning: exported method Output.Println should have comment or be unexported (golint)
    • Line 37: warning: exported method Output.Info should have comment or be unexported (golint)
    • Line 41: warning: exported method Output.InfoKV should have comment or be unexported (golint)
    • Line 45: warning: exported method Output.Debug should have comment or be unexported (golint)
    • Line 49: warning: exported method Output.DebugKV should have comment or be unexported (golint)
    • Line 53: warning: exported method Output.Trace should have comment or be unexported (golint)
    • Line 57: warning: exported method Output.TraceKV should have comment or be unexported (golint)
    • Line 65: warning: exported method Output.Writer should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/flag/flag.go
    • Line 5: warning: exported type Flag should have comment or be unexported (golint)
    • Line 8: warning: exported const String should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported method Flag.With should have comment or be unexported (golint)
    • Line 26: warning: exported method Flag.IsString should have comment or be unexported (golint)
    • Line 30: warning: exported method Flag.IsRequired should have comment or be unexported (golint)
    • Line 34: warning: exported method Flag.IsArray should have comment or be unexported (golint)
    • Line 38: warning: exported method Flag.IsInt should have comment or be unexported (golint)
    • Line 42: warning: exported method Flag.IsInt64 should have comment or be unexported (golint)
    • Line 46: warning: exported method Flag.IsUint should have comment or be unexported (golint)
    • Line 50: warning: exported method Flag.IsUint64 should have comment or be unexported (golint)
    • Line 54: warning: exported method Flag.IsFloat64 should have comment or be unexported (golint)
    • Line 58: warning: exported method Flag.IsBool should have comment or be unexported (golint)
    • Line 62: warning: exported method Flag.IsDuration should have comment or be unexported (golint)
    • Line 66: warning: exported method Flag.IsTime should have comment or be unexported (golint)
    • Line 70: warning: exported method Flag.IsAny should have comment or be unexported (golint)
    • Line 74: warning: exported method Flag.Type should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/map.go
    • Line 11: warning: exported type Map should have comment or be unexported (golint)
    • Line 17: warning: exported method Map.Option should have comment or be unexported (golint)
    • Line 24: warning: exported method Map.Argument should have comment or be unexported (golint)
    • Line 31: warning: exported method Map.Bind should have comment or be unexported (golint)
    • Line 35: warning: exported method Map.LenArguments should have comment or be unexported (golint)
    • Line 39: warning: exported method Map.HasOption should have comment or be unexported (golint)
    • Line 45: warning: exported method Map.SetOption should have comment or be unexported (golint)
    • Line 56: warning: exported method Map.HasArgument should have comment or be unexported (golint)
    • Line 62: warning: exported method Map.SetArgument should have comment or be unexported (golint)
    • Line 73: warning: exported method Map.AppendOption should have comment or be unexported (golint)
    • Line 81: warning: exported method Map.AppendArgument should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/command.go
    • Line 12: warning: exported type Action should have comment or be unexported (golint)
    • Line 13: warning: exported type Handle should have comment or be unexported (golint)
    • Line 14: warning: exported type Configure should have comment or be unexported (golint)
    • Line 15: warning: exported type Prepare should have comment or be unexported (golint)
    • Line 16: warning: exported type Option should have comment or be unexported (golint)
    • Line 55: warning: exported type Command should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/option/helpers.go
    • Line 7: warning: exported function Bool should have comment or be unexported (golint)
    • Line 11: warning: exported function Duration should have comment or be unexported (golint)
    • Line 15: warning: exported function Float64 should have comment or be unexported (golint)
    • Line 19: warning: exported function Int should have comment or be unexported (golint)
    • Line 23: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 27: warning: exported function Time should have comment or be unexported (golint)
    • Line 31: warning: exported function Uint should have comment or be unexported (golint)
    • Line 35: warning: exported function Uint64 should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/argument/argument.go
    • Line 9: warning: exported function New should have comment or be unexported (golint)
    • Line 22: warning: exported type Argument should have comment or be unexported (golint)
    • Line 30: warning: exported method Argument.HasDefault should have comment or be unexported (golint)
    • Line 34: warning: exported method Argument.IsBool should have comment or be unexported (golint)
    • Line 38: warning: exported method Argument.IsRequired should have comment or be unexported (golint)
    • Line 42: warning: exported method Argument.IsArray should have comment or be unexported (golint)
    • Line 46: warning: exported method Argument.Validate should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/label/key.go
    • Line 3: warning: exported type Key should have comment or be unexported (golint)
    • Line 5: warning: exported method Key.Any should have comment or be unexported (golint)
    • Line 12: warning: exported method Key.Bool should have comment or be unexported (golint)
    • Line 19: warning: exported method Key.Int should have comment or be unexported (golint)
    • Line 26: warning: exported method Key.Int64 should have comment or be unexported (golint)
    • Line 33: warning: exported method Key.Uint should have comment or be unexported (golint)
    • Line 40: warning: exported method Key.Uint64 should have comment or be unexported (golint)
    • Line 47: warning: exported method Key.Float64 should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/label/value.go
    • Line 5: warning: exported type Type should have comment or be unexported (golint)
    • Line 8: warning: exported const TypeAny should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Value should have comment or be unexported (golint)
    • Line 27: warning: exported function AnyValue should have comment or be unexported (golint)
    • Line 31: warning: exported function BoolValue should have comment or be unexported (golint)
    • Line 35: warning: exported function IntValue should have comment or be unexported (golint)
    • Line 39: warning: exported function Int64Value should have comment or be unexported (golint)
    • Line 43: warning: exported function UintValue should have comment or be unexported (golint)
    • Line 47: warning: exported function Uint64Value should have comment or be unexported (golint)
    • Line 51: warning: exported function Float64Value should have comment or be unexported (golint)
    • Line 55: warning: exported function StringValue should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/int.go
    • Line 9: warning: exported type Int should have comment or be unexported (golint)
    • Line 15: warning: exported method Int.Append should have comment or be unexported (golint)
    • Line 26: warning: exported method Int.Int should have comment or be unexported (golint)
    • Line 34: warning: exported method Int.Ints should have comment or be unexported (golint)
    • Line 38: warning: exported method Int.Any should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/string.go
    • Line 5: warning: exported type String should have comment or be unexported (golint)
    • Line 11: warning: exported method String.Append should have comment or be unexported (golint)
    • Line 29: warning: exported method String.Strings should have comment or be unexported (golint)
    • Line 33: warning: exported method String.Any should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/definition.go
    • Line 9: warning: exported function NewDefinition should have comment or be unexported (golint)
    • Line 17: warning: exported type Definition should have comment or be unexported (golint)
    • Line 25: warning: exported method Definition.Options should have comment or be unexported (golint)
    • Line 29: warning: exported method Definition.Arguments should have comment or be unexported (golint)
    • Line 33: warning: exported method Definition.SetOption should have comment or be unexported (golint)
    • Line 37: warning: exported method Definition.SetOptions should have comment or be unexported (golint)
    • Line 52: warning: exported method Definition.SetArgument should have comment or be unexported (golint)
    • Line 56: warning: exported method Definition.SetArguments should have comment or be unexported (golint)
    • Line 68: warning: exported method Definition.Argument should have comment or be unexported (golint)
    • Line 86: warning: exported method Definition.ShortOption should have comment or be unexported (golint)
    • Line 95: warning: exported method Definition.Option should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/output/descriptor/descriptor.go
    • Line 12: warning: exported var ErrDescriptorNotFound should have comment or be unexported (golint)
    • Line 22: warning: exported type Command should have comment or be unexported (golint)
    • Line 30: warning: exported type Commands should have comment or be unexported (golint)
    • Line 36: warning: exported type NSCommand should have comment or be unexported (golint)
    • Line 41: warning: exported method NSCommand.Append should have comment or be unexported (golint)
    • Line 45: warning: exported type ShortCommand should have comment or be unexported (golint)
    • Line 50: warning: exported type Descriptor should have comment or be unexported (golint)
    • Line 55: warning: exported function Find should have comment or be unexported (golint)
    • Line 66: warning: exported function Descriptors should have comment or be unexported (golint)
    • Line 76: warning: exported function Register should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/float64.go
    • Line 9: warning: exported type Float64 should have comment or be unexported (golint)
    • Line 15: warning: exported method Float64.Append should have comment or be unexported (golint)
    • Line 26: warning: exported method Float64.Float64 should have comment or be unexported (golint)
    • Line 34: warning: exported method Float64.Float64s should have comment or be unexported (golint)
    • Line 38: warning: exported method Float64.Any should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/console/input/value/uint64.go
    • Line 9: warning: exported type Uint64 should have comment or be unexported (golint)
    • Line 15: warning: exported method Uint64.Append should have comment or be unexported (golint)
    • Line 26: warning: exported method Uint64.Uint64 should have comment or be unexported (golint)
    • Line 34: warning: exported method Uint64.Uint64s should have comment or be unexported (golint)
    • Line 38: warning: exported method Uint64.Any should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!