Preparing report...

Report for github.com/minecraftxwinp/twweather

A+    Excellent!    Found 6 issues across 9 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!


golint33%

Golint is a linter for Go source code.

    • twweather/forecast/forecast.go
    • Line 23: warning: exported function GetWeeklyForecast should have comment or be unexported (golint)
    • Line 32: warning: exported function OpenDataToWeeklyForecast should have comment or be unexported (golint)
    • Line 41: warning: exported type Forecast should have comment or be unexported (golint)
    • Line 50: warning: exported method Forecast.UnmarshalXML should have comment or be unexported (golint)
    • Line 75: warning: exported type WeeklyForecast should have comment or be unexported (golint)
    • Line 80: warning: exported method WeeklyForecast.UnmarshalXML should have comment or be unexported (golint)
    • Line 109: warning: exported type Location should have comment or be unexported (golint)
    • Line 116: warning: exported type LocationForecast should have comment or be unexported (golint)
    • Line 120: warning: exported type Timed should have comment or be unexported (golint)
    • Line 126: warning: exported method Timed.UnmarshalXML should have comment or be unexported (golint)
    • Line 170: warning: exported type Measurement should have comment or be unexported (golint)
    • Line 175: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 181: warning: exported type TimelineWeatherElement should have comment or be unexported (golint)
    • twweather/aqi/aqi.go
    • Line 12: warning: exported type AQI should have comment or be unexported (golint)
    • Line 40: warning: exported const APIUrl should have comment or be unexported (golint)
    • Line 42: warning: exported type Client should have comment or be unexported (golint)
    • Line 52: warning: exported function New should have comment or be unexported (golint)
    • twweather/cwbdata/cwb_data_source.go
    • Line 17: warning: exported const ApiUrl should have comment or be unexported (golint)
    • Line 18: warning: exported const CwbTimeFormat should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseTime should have comment or be unexported (golint)
    • Line 29: warning: exported function AssignTime should have comment or be unexported (golint)
    • Line 38: warning: exported type OpenDataSource should have comment or be unexported (golint)
    • Line 41: warning: exported type CwbDataSource should have comment or be unexported (golint)
    • Line 45: warning: exported type CwbDataSet should have comment or be unexported (golint)
    • Line 50: warning: exported type CwbOpenData should have comment or be unexported (golint)
    • Line 62: warning: exported method CwbOpenData.UnmarshalXML should have comment or be unexported (golint)
    • Line 117: warning: exported function SetAPIKey should have comment or be unexported (golint)
    • Line 121: warning: exported type Cache should have comment or be unexported (golint)
    • twweather/observation.go
    • Line 12: warning: exported const ObservationsDataID should have comment or be unexported (golint)
    • Line 14: warning: exported type Observations should have comment or be unexported (golint)
    • Line 16: warning: exported method Observations.UnmarshalXML should have comment or be unexported (golint)
    • Line 31: warning: exported type Observation should have comment or be unexported (golint)
    • Line 44: warning: exported method Observation.UnmarshalXML should have comment or be unexported (golint)
    • Line 92: warning: exported function GetObservations should have comment or be unexported (golint)
    • Line 137: warning: receiver name s should be consistent with previous receiver name o for Observation (golint)
    • Line 149: warning: receiver name s should be consistent with previous receiver name o for Observation (golint)
    • Line 157: warning: exported method Observation.GetTemperature should have comment or be unexported (golint)
    • Line 157: warning: receiver name s should be consistent with previous receiver name o for Observation (golint)
    • Line 171: warning: exported method Observation.GetPressure should have comment or be unexported (golint)
    • Line 171: warning: receiver name s should be consistent with previous receiver name o for Observation (golint)
    • Line 184: warning: receiver name s should be consistent with previous receiver name o for Observation (golint)
    • Line 197: warning: receiver name s should be consistent with previous receiver name o for Observation (golint)
    • Line 209: warning: receiver name s should be consistent with previous receiver name o for Observation (golint)
    • Line 221: warning: receiver name s should be consistent with previous receiver name o for Observation (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!