Preparing report...

Report for github.com/minchao/go-cwb

A+    Excellent!    Found 8 issues across 15 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!


golint46%

Golint is a linter for Go source code.

    • go-cwb/cwb/forecasts.go
    • Line 3: warning: exported type ForecastsService should have comment or be unexported (golint)
    • Line 5: warning: exported type Parameter should have comment or be unexported (golint)
    • go-cwb/cwb/forecasts_tide.go
    • Line 11: warning: comment on exported const Tide1MonthId should be of the form "Tide1MonthId ..." (golint)
    • Line 15: warning: exported type TideForecastsService should have comment or be unexported (golint)
    • Line 17: warning: exported type TideForecast1MonthOptions should have comment or be unexported (golint)
    • Line 29: warning: exported type TideForecast1MonthResponse should have comment or be unexported (golint)
    • Line 39: warning: exported type TideForecastLocation should have comment or be unexported (golint)
    • Line 49: warning: exported type TideForecastWeatherElement should have comment or be unexported (golint)
    • Line 55: warning: exported type TideForecastTime should have comment or be unexported (golint)
    • Line 60: warning: exported type TideForecastParameter should have comment or be unexported (golint)
    • go-cwb/cwb/forecasts_weather.go
    • Line 11: warning: comment on exported const F36HW should be of the form "F36HW ..." (golint)
    • Line 15: warning: comment on exported const FTW2DayYilanCounty should be of the form "FTW2DayYilanCounty ..." (golint)
    • Line 17: warning: exported const FTW7DayYilanCounty should have comment (or a comment on this block) or be unexported (golint)
    • Line 67: warning: exported type Forecast36HourWeather should have comment or be unexported (golint)
    • Line 76: warning: exported type F36HWCountryLocation should have comment or be unexported (golint)
    • Line 92: warning: exported type F36HWTime should have comment or be unexported (golint)
    • Line 108: warning: exported type ForecastTownshipsWeather should have comment or be unexported (golint)
    • Line 116: warning: exported type FTWCountryLocation should have comment or be unexported (golint)
    • Line 123: warning: exported type FTWDatasetLocation should have comment or be unexported (golint)
    • Line 131: warning: exported type FTWWeatherElement should have comment or be unexported (golint)
    • Line 138: warning: exported type FTWTime should have comment or be unexported (golint)
    • Line 146: warning: exported type FTWElementValue should have comment or be unexported (golint)
    • go-cwb/cwb/location.go
    • Line 166: warning: exported type Location should have comment or be unexported (golint)
    • Line 171: warning: exported type DataSetType should have comment or be unexported (golint)
    • Line 174: warning: exported const DataSetTypeFTW should have comment (or a comment on this block) or be unexported (golint)
    • Line 178: warning: exported type DataSet should have comment or be unexported (golint)
    • Line 183: warning: exported function FindLocationByName should have comment or be unexported (golint)
    • go-cwb/cwb/result.go
    • Line 3: warning: exported type Result should have comment or be unexported (golint)
    • Line 8: warning: exported type Fields should have comment or be unexported (golint)
    • go-cwb/cwb/station_obs.go
    • Line 10: warning: comment on exported const StationObsWeatherId should be of the form "StationObsWeatherId ..." (golint)
    • Line 14: warning: comment on exported const StationObsRainfallId should be of the form "StationObsRainfallId ..." (golint)
    • Line 18: warning: exported type StationObsService should have comment or be unexported (golint)
    • Line 20: warning: exported type StationObsResponse should have comment or be unexported (golint)
    • Line 28: warning: exported type StationObsWeather should have comment or be unexported (golint)
    • Line 30: warning: exported type StationObsLocation should have comment or be unexported (golint)
    • Line 42: warning: exported type StationObsElement should have comment or be unexported (golint)
    • Line 47: warning: exported type StationObsElements should have comment or be unexported (golint)
    • Line 49: warning: exported method StationObsElements.GetByName should have comment or be unexported (golint)
    • Line 68: warning: exported type StationObsRainfall should have comment or be unexported (golint)
    • go-cwb/cwb/dataset.go
    • Line 8: warning: exported type DatasetService should have comment or be unexported (golint)
    • Line 10: warning: exported type Dataset should have comment or be unexported (golint)
    • Line 14: warning: exported type Data should have comment or be unexported (golint)
    • Line 45: warning: exported method DatasetService.GetIds should have comment or be unexported (golint)
    • Line 54: warning: exported method DatasetService.GetData 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!