Preparing report...

Report for github.com/AdikaStyle/go-report-builder

A+    Excellent!    Found 19 issues across 25 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!


golint24%

Golint is a linter for Go source code.

    • go-report-builder/pkg/client.go
    • Line 12: warning: exported type ExportType should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; const ExportType_HTML should be ExportTypeHTML (golint)
    • Line 15: warning: exported const ExportType_HTML should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: don't use underscores in Go names; const ExportType_PDF should be ExportTypePDF (golint)
    • Line 17: warning: don't use underscores in Go names; const ExportType_PNG should be ExportTypePNG (golint)
    • Line 20: warning: exported type ReportBuilderClient should have comment or be unexported (golint)
    • Line 24: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 28: warning: exported method ReportBuilderClient.Get should have comment or be unexported (golint)
    • go-report-builder/internal/models/print_options.go
    • Line 3: warning: exported type PrintOptions should have comment or be unexported (golint)
    • Line 9: warning: exported type PrintOrientation should have comment or be unexported (golint)
    • Line 12: warning: don't use underscores in Go names; const Orientation_Landscape should be OrientationLandscape (golint)
    • Line 12: warning: exported const Orientation_Landscape should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: don't use underscores in Go names; const Orientation_Portrait should be OrientationPortrait (golint)
    • go-report-builder/cmd/http_server.go
    • Line 11: warning: exported type Server should have comment or be unexported (golint)
    • Line 18: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 34: warning: exported method Server.Start should have comment or be unexported (golint)
    • go-report-builder/internal/data/index.go
    • Line 5: warning: exported type TemplateEngine should have comment or be unexported (golint)
    • Line 9: warning: exported type TemplateRepository should have comment or be unexported (golint)
    • Line 14: warning: exported type ReportExporter should have comment or be unexported (golint)
    • go-report-builder/cmd/config.go
    • Line 9: warning: exported type Config should have comment or be unexported (golint)
    • Line 19: warning: exported method Config.BaseUrl should have comment or be unexported (golint)
    • Line 23: warning: exported function ParseConfig 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!