Preparing report...

Report for github.com/sjsdfg/common-lang-in-go

A    Great!    Found 50 issues across 50 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!


gocyclo100%

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.

No problems detected. Good job!


golint0%

Golint is a linter for Go source code.

    • common-lang-in-go/BeanUtils/bean_utils.go
    • Line 1: warning: don't use MixedCaps in package name; BeanUtils should be beanutils (golint)
    • Line 5: warning: exported function IsNil should have comment or be unexported (golint)
    • Line 13: warning: exported function IsAnyNil should have comment or be unexported (golint)
    • Line 25: warning: exported function IsNonNil should have comment or be unexported (golint)
    • common-lang-in-go/Int64Utils/compare_int64.go
    • Line 1: warning: don't use MixedCaps in package name; Int64Utils should be int64utils (golint)
    • Line 3: warning: exported function Max should have comment or be unexported (golint)
    • Line 16: warning: exported function Min should have comment or be unexported (golint)
    • Line 29: warning: exported function If should have comment or be unexported (golint)
    • Line 36: warning: exported function Abs should have comment or be unexported (golint)
    • Line 40: warning: exported function Distinct should have comment or be unexported (golint)
    • common-lang-in-go/TimeUtils/constant.go
    • Line 1: warning: don't use MixedCaps in package name; TimeUtils should be timeutils (golint)
    • Line 5: warning: exported var Zero should have comment or be unexported (golint)
    • Line 8: warning: exported const MillsPerSecond should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported const NsPerMill should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported const SecondsPerMinutes should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported const MinutesPerHour should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const HoursPerDay should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported const DaysPerWeek should have comment (or a comment on this block) or be unexported (golint)
    • common-lang-in-go/TimeUtils/time_apart.go
    • Line 1: warning: don't use MixedCaps in package name; TimeUtils should be timeutils (golint)
    • Line 8: warning: exported function DaysApart should have comment or be unexported (golint)
    • Line 17: warning: exported function AbsDaysApart should have comment or be unexported (golint)
    • Line 21: warning: exported function MinutesApart should have comment or be unexported (golint)
    • Line 25: warning: exported function AbsMinutesApart should have comment or be unexported (golint)
    • Line 29: warning: exported function HoursApart should have comment or be unexported (golint)
    • Line 33: warning: exported function AbsHoursApart should have comment or be unexported (golint)
    • common-lang-in-go/DurationUtils/compare_duration.go
    • Line 1: warning: don't use MixedCaps in package name; DurationUtils should be durationutils (golint)
    • Line 5: warning: exported function Max should have comment or be unexported (golint)
    • Line 18: warning: exported function Min should have comment or be unexported (golint)
    • Line 31: warning: exported function If should have comment or be unexported (golint)
    • common-lang-in-go/IntUtils/ptr_int.go
    • Line 1: warning: don't use MixedCaps in package name; IntUtils should be intutils (golint)
    • Line 3: warning: exported function Ptr should have comment or be unexported (golint)
    • Line 7: warning: exported function GetPtrValue should have comment or be unexported (golint)
    • Line 14: warning: exported function GetPtrValueWithDefault should have comment or be unexported (golint)
    • common-lang-in-go/TimeUtils/timer.go
    • Line 1: warning: don't use MixedCaps in package name; TimeUtils should be timeutils (golint)
    • Line 7: warning: exported type Timer should have comment or be unexported (golint)
    • Line 11: warning: exported function NewTimer should have comment or be unexported (golint)
    • Line 15: warning: exported method Timer.GetDurationInSeconds should have comment or be unexported (golint)
    • Line 19: warning: exported method Timer.GetDurationInMills should have comment or be unexported (golint)
    • Line 23: warning: exported method Timer.GetDurationInNanos should have comment or be unexported (golint)
    • Line 27: warning: exported method Timer.Reset should have comment or be unexported (golint)
    • common-lang-in-go/StringUtils/string_utils.go
    • Line 1: warning: don't use MixedCaps in package name; StringUtils should be stringutils (golint)
    • Line 12: warning: exported function IsEmpty should have comment or be unexported (golint)
    • Line 16: warning: exported function IsNotEmpty should have comment or be unexported (golint)
    • Line 20: warning: exported function IsAllEmpty should have comment or be unexported (golint)
    • Line 32: warning: exported function IsAnyEmpty should have comment or be unexported (golint)
    • Line 44: warning: exported function IsAnyNoneEmpty should have comment or be unexported (golint)
    • Line 56: warning: exported function IsBlank should have comment or be unexported (golint)
    • Line 60: warning: exported function IsNotBlank should have comment or be unexported (golint)
    • Line 67: warning: exported function IsZero should have comment or be unexported (golint)
    • Line 74: warning: exported function IsNotZero should have comment or be unexported (golint)
    • Line 78: warning: exported function IsAnyZero should have comment or be unexported (golint)
    • Line 90: warning: exported function IsAllZero should have comment or be unexported (golint)
    • Line 102: warning: exported function IsAnyNoneZero should have comment or be unexported (golint)
    • Line 106: warning: exported function Equal should have comment or be unexported (golint)
    • Line 113: warning: exported function EqualIgnoreCase should have comment or be unexported (golint)
    • Line 120: warning: exported function EqualsAny should have comment or be unexported (golint)
    • Line 132: warning: exported function EqualsAnyIgnoreCase should have comment or be unexported (golint)
    • Line 144: warning: exported function EqualsNone should have comment or be unexported (golint)
    • Line 148: warning: exported function EqualsNoneIgnoreCase should have comment or be unexported (golint)
    • Line 152: warning: exported function IsDigital should have comment or be unexported (golint)
    • Line 164: warning: exported function IsNotDigital should have comment or be unexported (golint)
    • Line 168: warning: exported function DefaultIfEmpty should have comment or be unexported (golint)
    • Line 172: warning: exported function If should have comment or be unexported (golint)
    • Line 179: warning: comment on exported function Truncate should be of the form "Truncate ..." (golint)
    • Line 189: warning: exported function Distinct should have comment or be unexported (golint)
    • Line 205: warning: exported function ToInt64 should have comment or be unexported (golint)
    • Line 216: warning: comment on exported function Reverse should be of the form "Reverse ..." (golint)
    • common-lang-in-go/IntUtils/compare_int.go
    • Line 1: warning: don't use MixedCaps in package name; IntUtils should be intutils (golint)
    • Line 5: warning: exported function Max should have comment or be unexported (golint)
    • Line 18: warning: exported function Min should have comment or be unexported (golint)
    • Line 31: warning: exported function If should have comment or be unexported (golint)
    • Line 38: warning: exported function Abs should have comment or be unexported (golint)
    • Line 42: warning: exported function Distinct should have comment or be unexported (golint)
    • common-lang-in-go/DateUtils/date_utils.go
    • Line 1: warning: don't use MixedCaps in package name; DateUtils should be dateutils (golint)
    • Line 9: warning: exported function GetStartOfHour should have comment or be unexported (golint)
    • Line 13: warning: exported function GetEndOfHour should have comment or be unexported (golint)
    • Line 17: warning: exported function GetStartOfDay should have comment or be unexported (golint)
    • Line 21: warning: exported function GetEndOfDay should have comment or be unexported (golint)
    • Line 25: warning: exported function GetStartOfWeek should have comment or be unexported (golint)
    • Line 31: warning: exported function GetEndOfWeek should have comment or be unexported (golint)
    • Line 36: warning: exported function GetStartOfMonth should have comment or be unexported (golint)
    • Line 40: warning: exported function GetEndOfMonth should have comment or be unexported (golint)
    • Line 45: warning: exported function InRange should have comment or be unexported (golint)
    • Line 49: warning: exported function OutOfRange should have comment or be unexported (golint)
    • common-lang-in-go/CollectionUtils/collction_match_utils.go
    • Line 1: warning: don't use MixedCaps in package name; CollectionUtils should be collectionutils (golint)
    • Line 7: warning: exported function AllMatch should have comment or be unexported (golint)
    • Line 24: warning: exported function AnyMatch should have comment or be unexported (golint)
    • Line 41: warning: exported function NoneMatch should have comment or be unexported (golint)
    • common-lang-in-go/TimeUtils/time_utils.go
    • Line 1: warning: don't use MixedCaps in package name; TimeUtils should be timeutils (golint)
    • Line 7: warning: exported function GetCurrentMills should have comment or be unexported (golint)
    • Line 11: warning: exported function GetMills should have comment or be unexported (golint)
    • Line 15: warning: exported function Max should have comment or be unexported (golint)
    • Line 28: warning: exported function Min should have comment or be unexported (golint)
    • Line 41: warning: exported function If should have comment or be unexported (golint)
    • common-lang-in-go/JsonUtils/json_util.go
    • Line 1: warning: don't use MixedCaps in package name; JsonUtils should be jsonutils (golint)
    • Line 10: warning: exported function Marshal should have comment or be unexported (golint)
    • Line 14: warning: exported function MarshalToString should have comment or be unexported (golint)
    • Line 18: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 22: warning: exported function PrettyJson should have comment or be unexported (golint)
    • Line 26: warning: exported function Pretty should have comment or be unexported (golint)
    • Line 31: warning: exported function PrettyWithColor should have comment or be unexported (golint)
    • common-lang-in-go/Float32Utils/compare_float32.go
    • Line 1: warning: don't use MixedCaps in package name; Float32Utils should be float32utils (golint)
    • Line 3: warning: exported function Max should have comment or be unexported (golint)
    • Line 16: warning: exported function Min should have comment or be unexported (golint)
    • Line 29: warning: exported function If should have comment or be unexported (golint)
    • Line 36: warning: exported function Abs should have comment or be unexported (golint)
    • Line 40: warning: exported function Equal should have comment or be unexported (golint)
    • common-lang-in-go/Float32Utils/ptr_float32.go
    • Line 1: warning: don't use MixedCaps in package name; Float32Utils should be float32utils (golint)
    • Line 3: warning: exported function Ptr should have comment or be unexported (golint)
    • Line 7: warning: exported function GetPtrValue should have comment or be unexported (golint)
    • Line 14: warning: exported function GetPtrValueWithDefault should have comment or be unexported (golint)
    • common-lang-in-go/CollectionUtils/collection_utils.go
    • Line 1: warning: don't use MixedCaps in package name; CollectionUtils should be collectionutils (golint)
    • Line 5: warning: exported function IsEmpty should have comment or be unexported (golint)
    • Line 17: warning: exported function IsNotEmpty should have comment or be unexported (golint)
    • Line 21: warning: exported function ForEach should have comment or be unexported (golint)
    • common-lang-in-go/Int64Utils/formatter.go
    • Line 1: warning: don't use MixedCaps in package name; Int64Utils should be int64utils (golint)
    • Line 7: warning: comment on exported function FormatToFinancial should be of the form "FormatToFinancial ..." (golint)
    • Line 15: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • common-lang-in-go/Int64Utils/ptr_int64.go
    • Line 1: warning: don't use MixedCaps in package name; Int64Utils should be int64utils (golint)
    • Line 3: warning: exported function Ptr should have comment or be unexported (golint)
    • Line 7: warning: exported function GetPtrValue should have comment or be unexported (golint)
    • Line 14: warning: exported function GetPtrValueWithDefault should have comment or be unexported (golint)
    • common-lang-in-go/BoolUtils/bool_utils.go
    • Line 1: warning: don't use MixedCaps in package name; BoolUtils should be boolutils (golint)
    • Line 5: warning: exported function And should have comment or be unexported (golint)
    • Line 17: warning: exported function Or should have comment or be unexported (golint)
    • Line 29: warning: exported function Xor should have comment or be unexported (golint)
    • Line 48: warning: exported function IsFalse should have comment or be unexported (golint)
    • Line 52: warning: exported function FromString should have comment or be unexported (golint)
    • common-lang-in-go/Float64Utils/ptr_float64.go
    • Line 1: warning: don't use MixedCaps in package name; Float64Utils should be float64utils (golint)
    • Line 3: warning: exported function Ptr should have comment or be unexported (golint)
    • Line 7: warning: exported function GetPtrValue should have comment or be unexported (golint)
    • Line 14: warning: exported function GetPtrValueWithDefault should have comment or be unexported (golint)
    • common-lang-in-go/CollectionUtils/collection_map_utils.go
    • Line 1: warning: don't use MixedCaps in package name; CollectionUtils should be collectionutils (golint)
    • Line 7: warning: comment on exported function MapToStringSlice should be of the form "MapToStringSlice ..." (golint)
    • Line 23: warning: exported function MapToStringSliceIgnoreEmpty should have comment or be unexported (golint)
    • Line 42: warning: exported function MapToStringSliceIgnoreByCondition should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function MapToIntSlice should be of the form "MapToIntSlice ..." (golint)
    • Line 77: warning: comment on exported function MapToInt64Slice should be of the form "MapToInt64Slice ..." (golint)
    • Line 93: warning: comment on exported function MapToFloat64Slice should be of the form "MapToFloat64Slice ..." (golint)
    • Line 109: warning: comment on exported function MapToFloat32Slice should be of the form "MapToFloat32Slice ..." (golint)
    • common-lang-in-go/Float64Utils/compare_float64.go
    • Line 1: warning: don't use MixedCaps in package name; Float64Utils should be float64utils (golint)
    • Line 3: warning: exported function Max should have comment or be unexported (golint)
    • Line 16: warning: exported function Min should have comment or be unexported (golint)
    • Line 29: warning: exported function If should have comment or be unexported (golint)
    • Line 36: warning: exported function Abs should have comment or be unexported (golint)
    • Line 40: warning: exported function Equal 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!