Preparing report...

Report for github.com/sinlovgo/timezone

A    Great!    Found 8 issues across 16 files

Tweet

gofmt87%

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


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!


golint50%

Golint is a linter for Go source code.

    • timezone/zone.go
    • Line 9: warning: comment on exported const ZoneUTC should be of the form "ZoneUTC ..." (golint)
    • Line 11: warning: comment on exported const ZoneGMT should be of the form "ZoneGMT ..." (golint)
    • Line 13: warning: comment on exported const ZoneCET should be of the form "ZoneCET ..." (golint)
    • Line 16: warning: comment on exported const ZoneCEST should be of the form "ZoneCEST ..." (golint)
    • Line 21: warning: comment on exported const ZoneCST should be of the form "ZoneCST ..." (golint)
    • Line 27: warning: comment on exported const ZoneAsiaShanghai should be of the form "ZoneAsiaShanghai ..." (golint)
    • Line 36: warning: comment on exported function GetZoneLocal should be of the form "GetZoneLocal ..." (golint)
    • Line 41: warning: exported function SetZoneUTC should have comment or be unexported (golint)
    • Line 47: warning: comment on exported function SetZoneFix should be of the form "SetZoneFix ..." (golint)
    • Line 56: warning: comment on exported function SetZoneByName should be of the form "SetZoneByName ..." (golint)
    • Line 68: warning: comment on exported function SetZoneLocation should be of the form "SetZoneLocation ..." (golint)
    • timezone/timeparse/parsetime.go
    • Line 8: warning: comment on exported function Location should be of the form "Location ..." (golint)
    • Line 30: warning: exported function LocationISO8601TimeSecondUTC should have comment or be unexported (golint)
    • Line 34: warning: exported function LocationISO8601TimeSecond should have comment or be unexported (golint)
    • Line 38: warning: comment on exported function LocationSecond should be of the form "LocationSecond ..." (golint)
    • Line 43: warning: comment on exported function LocationMicro should be of the form "LocationMicro ..." (golint)
    • Line 48: warning: comment on exported function LocationFix should be of the form "LocationFix ..." (golint)
    • Line 65: warning: exported function LocationFixISO8601TimeSecondUTC should have comment or be unexported (golint)
    • Line 69: warning: exported function LocationFixISO8601TimeSecond should have comment or be unexported (golint)
    • Line 73: warning: comment on exported function LocationFixSecond should be of the form "LocationFixSecond ..." (golint)
    • Line 78: warning: comment on exported function LocationFixMicro should be of the form "LocationFixMicro ..." (golint)
    • timezone/calculate.go
    • Line 5: warning: comment on exported function CalcDuration should be of the form "CalcDuration ..." (golint)
    • Line 15: warning: comment on exported function CalcDurationUTC should be of the form "CalcDurationUTC ..." (golint)
    • Line 25: warning: comment on exported function CalcDurationSecondUTC should be of the form "CalcDurationSecondUTC ..." (golint)
    • Line 31: warning: comment on exported function CalcDurationMicroUTC should be of the form "CalcDurationMicroUTC ..." (golint)
    • Line 37: warning: comment on exported function CalcDate should be of the form "CalcDate ..." (golint)
    • Line 49: warning: comment on exported function CalcDateSecond should be of the form "CalcDateSecond ..." (golint)
    • Line 58: warning: comment on exported function CalcDateMicro should be of the form "CalcDateMicro ..." (golint)
    • Line 67: warning: comment on exported function CalcDay should be of the form "CalcDay ..." (golint)
    • Line 74: warning: comment on exported function CalcDaySecond should be of the form "CalcDaySecond ..." (golint)
    • Line 81: warning: comment on exported function CalcDayMicro should be of the form "CalcDayMicro ..." (golint)
    • Line 88: warning: comment on exported function CalcMonth should be of the form "CalcMonth ..." (golint)
    • Line 95: warning: comment on exported function CalcMonthSecond should be of the form "CalcMonthSecond ..." (golint)
    • Line 102: warning: comment on exported function CalcMonthMicro should be of the form "CalcMonthMicro ..." (golint)
    • Line 109: warning: comment on exported function CalcYear should be of the form "CalcYear ..." (golint)
    • Line 116: warning: comment on exported function CalcYearSecond should be of the form "CalcYearSecond ..." (golint)
    • Line 123: warning: comment on exported function CalcYearMicro should be of the form "CalcYearMicro ..." (golint)
    • timezone/compare.go
    • Line 5: warning: exported function CompareEQ should have comment or be unexported (golint)
    • Line 17: warning: exported function CompareSecondEQ should have comment or be unexported (golint)
    • Line 21: warning: exported function CompareMicroEQ should have comment or be unexported (golint)
    • Line 25: warning: exported function CompareLT should have comment or be unexported (golint)
    • Line 37: warning: exported function CompareSecondLT should have comment or be unexported (golint)
    • Line 41: warning: exported function CompareMicroLT should have comment or be unexported (golint)
    • Line 45: warning: exported function CompareGT should have comment or be unexported (golint)
    • Line 57: warning: exported function CompareSecondGT should have comment or be unexported (golint)
    • Line 61: warning: exported function CompareMicroGT should have comment or be unexported (golint)
    • timezone/layout.go
    • Line 4: warning: exported const LayoutYear should have comment (or a comment on this block) or be unexported (golint)
    • timezone/now.go
    • Line 5: warning: comment on exported function UTCSecond should be of the form "UTCSecond ..." (golint)
    • Line 10: warning: comment on exported function UTCMicro should be of the form "UTCMicro ..." (golint)
    • Line 15: warning: comment on exported function Second should be of the form "Second ..." (golint)
    • Line 21: warning: comment on exported function Micro should be of the form "Micro ..." (golint)
    • Line 27: warning: comment on exported function TimestampSecond should be of the form "TimestampSecond ..." (golint)
    • Line 33: warning: comment on exported function TimestampUnixNano should be of the form "TimestampUnixNano ..." (golint)
    • timezone/parse.go
    • Line 5: warning: comment on exported function ParseTimestamp should be of the form "ParseTimestamp ..." (golint)
    • Line 17: warning: comment on exported function ParseTimestampSecond should be of the form "ParseTimestampSecond ..." (golint)
    • Line 22: warning: comment on exported function ParesTimestampMicro should be of the form "ParesTimestampMicro ..." (golint)
    • timezone/starttime.go
    • Line 5: warning: comment on exported function StartDay should be of the form "StartDay ..." (golint)
    • Line 17: warning: comment on exported function StartDaySecond should be of the form "StartDaySecond ..." (golint)
    • Line 24: warning: comment on exported function StartDayMicro should be of the form "StartDayMicro ..." (golint)
    • Line 31: warning: comment on exported function StartMonth should be of the form "StartMonth ..." (golint)
    • Line 43: warning: comment on exported function StartMonthSecond should be of the form "StartMonthSecond ..." (golint)
    • Line 50: warning: comment on exported function StartMonthMicro should be of the form "StartMonthMicro ..." (golint)
    • Line 57: warning: comment on exported function StartYear should be of the form "StartYear ..." (golint)
    • Line 69: warning: comment on exported function StartYearSecond should be of the form "StartYearSecond ..." (golint)
    • Line 76: warning: comment on exported function StartYearMicro should be of the form "StartYearMicro ..." (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!