Preparing report...

Report for github.com/grokify/go-aha

(v0.2.5)

A+    Excellent!    Found 23 issues across 52 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!


gocyclo92%

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.

    • aha/client.go
    • Line 203: warning: cyclomatic complexity 35 of function (*APIClient).prepareRequest() is high (> 15) (gocyclo)
    • aha/api_features.go
    • Line 142: warning: cyclomatic complexity 23 of function (*FeaturesApiService).GetFeatures() is high (> 15) (gocyclo)

golint59%

Golint is a linter for Go source code.

    • examples/get_features_releases_by_products_quarters/main.go
    • Line 20: warning: exported type Options should have comment or be unexported (golint)
    • Line 28: warning: exported method Options.Verbose should have comment or be unexported (golint)
    • Line 36: warning: exported const ReleasesFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 100: warning: exported function WriteFile should have comment or be unexported (golint)
    • ahaslides/textboxes.go
    • Line 22: warning: exported var Unit should have comment or be unexported (golint)
    • Line 28: warning: exported function RoadmapTextBoxRequests should have comment or be unexported (golint)
    • Line 249: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 450: warning: exported function CenterRequest should have comment or be unexported (golint)
    • Line 462: warning: exported type AhaTagFeatures should have comment or be unexported (golint)
    • ahautil/ahaelasticsearch.go
    • Line 14: warning: exported type AhaElasticsearch should have comment or be unexported (golint)
    • Line 19: warning: exported method AhaElasticsearch.IndexFeaturesUpdatedSince should have comment or be unexported (golint)
    • Line 40: warning: exported method AhaElasticsearch.IndexFeatureId should have comment or be unexported (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ahautil/release_set.go
    • Line 16: warning: exported type ReleaseSet should have comment or be unexported (golint)
    • Line 21: warning: exported function NewReleaseSet should have comment or be unexported (golint)
    • Line 27: warning: exported method ReleaseSet.AddReleases should have comment or be unexported (golint)
    • Line 33: warning: exported method ReleaseSet.ReleaseCount should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method ReleaseSet.RefNums should be of the form "RefNums ..." (golint)
    • Line 50: warning: comment on exported method ReleaseSet.Ids should be of the form "Ids ..." (golint)
    • Line 76: warning: exported method ReleaseSet.LoadReleasesForProducts should have comment or be unexported (golint)
    • Line 86: warning: exported method ReleaseSet.LoadReleasesForProduct should have comment or be unexported (golint)
    • Line 119: warning: exported method ReleaseSet.GetReleasesForDates should have comment or be unexported (golint)
    • examples/create_roadmap_google_slides/google_slides.go
    • Line 32: warning: exported var GoogleSlideUnitPoint should have comment or be unexported (golint)
    • Line 35: warning: exported type Options should have comment or be unexported (golint)
    • Line 43: warning: exported method Options.NewToken should have comment or be unexported (golint)
    • Line 50: warning: exported function FilterFeatures should have comment or be unexported (golint)
    • Line 77: warning: exported function TagFilterFeatureMap should have comment or be unexported (golint)
    • Line 103: warning: exported function NewTagsFeatures should have comment or be unexported (golint)
    • Line 118: warning: exported type TagsFeaturesSet should have comment or be unexported (golint)
    • Line 123: warning: exported function NewTagsFeaturesSet should have comment or be unexported (golint)
    • Line 130: warning: exported type TagFeatures should have comment or be unexported (golint)
    • Line 135: warning: exported function NewRoadmapCanvasAha should have comment or be unexported (golint)
    • ahaslides/config.go
    • Line 16: warning: exported type RoadmapConfig should have comment or be unexported (golint)
    • Line 43: warning: exported function NewRoadmapConfigEnv should have comment or be unexported (golint)
    • ahautil/ahautil.go
    • Line 15: warning: exported const FeatureStatusShippedLc should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type ClientAPIs should have comment or be unexported (golint)
    • Line 24: warning: exported function NewClientAPIsHTTPClient should have comment or be unexported (golint)
    • Line 32: warning: exported function NewClientAPIs should have comment or be unexported (golint)
    • Line 37: warning: exported method ClientAPIs.GetReleaseById should have comment or be unexported (golint)
    • Line 49: warning: exported method ClientAPIs.GetFeatureById should have comment or be unexported (golint)
    • Line 61: warning: exported method ClientAPIs.GetFeaturesMetaByReleaseId should have comment or be unexported (golint)
    • Line 88: warning: exported method ClientAPIs.UpdateFeatureStartDueDatesToRelease should have comment or be unexported (golint)
    • Line 145: warning: exported method ClientAPIs.GetFeaturesFullByReleaseId should have comment or be unexported (golint)
    • ahaslides/config_new.go
    • Line 5: warning: exported type RoadmapConfig2 should have comment or be unexported (golint)
    • Line 12: warning: exported type RoadmapConfig2Aha should have comment or be unexported (golint)
    • Line 17: warning: exported type RoadmapConfig2Slides should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseConfig should have comment or be unexported (golint)
    • ahautil/ahaelasticsearchfeature.go
    • Line 46: warning: exported function AhaToEsFeature should have comment or be unexported (golint)
    • Line 62: warning: exported function ReferencePrefixFromReferenceNum should have comment or be unexported (golint)
    • Line 70: warning: exported function AhaFeatureSearch should have comment or be unexported (golint)
    • ahautil/feature_set.go
    • Line 14: warning: exported type FeatureSet should have comment or be unexported (golint)
    • Line 20: warning: exported function ReadFeatureSet should have comment or be unexported (golint)
    • Line 41: warning: exported function NewFeatureSet should have comment or be unexported (golint)
    • Line 57: warning: exported method FeatureSet.ReadFile should have comment or be unexported (golint)
    • Line 86: warning: exported method FeatureSet.TrimSpaceTagFilterMap should have comment or be unexported (golint)
    • Line 97: warning: exported method FeatureSet.LoadFeaturesForReleases should have comment or be unexported (golint)
    • Line 107: warning: exported method FeatureSet.LoadFeaturesForRelease should have comment or be unexported (golint)
    • Line 129: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 142: warning: exported method FeatureSet.LoadFeatureCheckTags should have comment or be unexported (golint)
    • Line 146: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • goaha.go
    • Line 4: warning: exported const VERSION should have comment (or a comment on this block) or be unexported (golint)
    • ahaslides/canvas.go
    • Line 10: warning: exported const CanvasMaxX should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type SlideCanvasInfo should have comment or be unexported (golint)
    • Line 22: warning: exported type CanvasFloat64 should have comment or be unexported (golint)
    • Line 29: warning: exported method CanvasFloat64.ThisX should have comment or be unexported (golint)
    • ahaslides/config_colors.go
    • Line 5: warning: exported var DefaultFormatting should have comment or be unexported (golint)
    • Line 47: warning: exported type RoadmapFormatting should have comment or be unexported (golint)
    • Line 56: warning: exported type ColumnFormatting should have comment or be unexported (golint)
    • Line 60: warning: exported type RowFormatting should have comment or be unexported (golint)
    • Line 67: warning: exported type LineFormatting should have comment or be unexported (golint)
    • Line 72: warning: exported type TextboxFormatting should have comment or be unexported (golint)
    • ahautil/feature_util.go
    • Line 12: warning: exported function GetBeginTimeForFeatureOrRelease should have comment or be unexported (golint)
    • Line 21: warning: exported function GetEndTimeForFeatureOrRelease should have comment or be unexported (golint)
    • aha/client.go
    • Line 196: warning: comment on exported method APIClient.GetConfig should be of the form "GetConfig ..." (golint)
    • Line 538: warning: exported method APIClient.HTTPClient should have comment or be unexported (golint)
    • Line 538: warning: receiver name apiClient should be consistent with previous receiver name c for APIClient (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!