Preparing report...

Report for github.com/aosn/chartgen

A+    Excellent!    Found 12 issues across 14 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.


golint42%

Golint is a linter for Go source code.

    • chartgen/cmd/aosn2lambda/dataset.go
    • Line 7: warning: exported type DataSet should have comment or be unexported (golint)
    • Line 12: warning: exported type IntLabeledData should have comment or be unexported (golint)
    • Line 17: warning: exported type StringLabeledData should have comment or be unexported (golint)
    • Line 22: warning: exported function Convert should have comment or be unexported (golint)
    • chartgen/calc.go
    • Line 10: warning: exported type Entry should have comment or be unexported (golint)
    • Line 14: warning: exported type OrderedEntries should have comment or be unexported (golint)
    • Line 27: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 32: warning: exported type Ranking should have comment or be unexported (golint)
    • Line 39: warning: exported function AttendeeRanking should have comment or be unexported (golint)
    • chartgen/date.go
    • Line 7: warning: exported type SimpleDate should have comment or be unexported (golint)
    • Line 15: warning: exported method SimpleDate.MarshalJSON should have comment or be unexported (golint)
    • chartgen/entry.go
    • Line 14: warning: exported type Workshop should have comment or be unexported (golint)
    • Line 22: warning: exported type Record should have comment or be unexported (golint)
    • Line 52: warning: exported function FetchEntry should have comment or be unexported (golint)
    • Line 63: warning: exported function ParseEntry should have comment or be unexported (golint)
    • chartgen/index.go
    • Line 20: warning: exported function FetchIndex should have comment or be unexported (golint)
    • Line 31: warning: exported function ParseIndex should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign64%

IneffAssign detects ineffectual assignments in Go code.

    • chartgen/cmd/aosn/cmd.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/aosn/chartgen (invalid package name: "") (ineffassign)
    • chartgen/cmd/aosn2lambda/collect.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/aosn/chartgen (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/aosn/chartgen (invalid package name: "") (ineffassign)
    • chartgen/cmd/aosn2lambda/handler.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/aws/aws-lambda-go/lambda (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/aws/aws-lambda-go/lambda (invalid package name: "") (ineffassign)
    • chartgen/cmd/aosn2lambda/s3.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/aws/aws-sdk-go/aws (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/aws/aws-sdk-go/aws/endpoints (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/aws/aws-sdk-go/aws/session (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/aws/aws-sdk-go/service/s3 (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/aws/aws-sdk-go/aws (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/aws/aws-sdk-go/aws/endpoints (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/aws/aws-sdk-go/aws/session (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/aws/aws-sdk-go/service/s3 (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!