Preparing report...

Report for github.com/fantasticmao/nginx-log-analyzer

(v1.0.0)

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


golint16%

Golint is a linter for Go source code.

    • nginx-log-analyzer/handler/most_match_field.go
    • Line 9: warning: exported type MostMatchFieldHandler should have comment or be unexported (golint)
    • Line 14: warning: exported function NewMostMatchFieldHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method MostMatchFieldHandler.Input should have comment or be unexported (golint)
    • Line 42: warning: exported method MostMatchFieldHandler.Output should have comment or be unexported (golint)
    • nginx-log-analyzer/handler/top_time_mean_cost_uris.go
    • Line 9: warning: exported type TopTimeMeanCostUrisHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewTopTimeMeanCostUrisHandler should have comment or be unexported (golint)
    • Line 19: warning: exported method TopTimeMeanCostUrisHandler.Input should have comment or be unexported (golint)
    • Line 28: warning: exported method TopTimeMeanCostUrisHandler.Output should have comment or be unexported (golint)
    • nginx-log-analyzer/handler/pv_uv.go
    • Line 8: warning: exported type PvAndUvHandler should have comment or be unexported (golint)
    • Line 14: warning: exported function NewPvAndUvHandler should have comment or be unexported (golint)
    • Line 22: warning: exported method PvAndUvHandler.Input should have comment or be unexported (golint)
    • Line 30: warning: exported method PvAndUvHandler.Output should have comment or be unexported (golint)
    • nginx-log-analyzer/handler/top_time_percent_cost_uris.go
    • Line 10: warning: exported type TopTimePercentCostUrisHandler should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTopTimePercentCostUrisHandler should have comment or be unexported (golint)
    • Line 26: warning: exported method TopTimePercentCostUrisHandler.Input should have comment or be unexported (golint)
    • Line 35: warning: exported method TopTimePercentCostUrisHandler.Output should have comment or be unexported (golint)
    • nginx-log-analyzer/ioutil/files.go
    • Line 11: warning: exported function OpenFile should have comment or be unexported (golint)
    • Line 22: warning: exported function ReadFile should have comment or be unexported (golint)
    • Line 30: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • nginx-log-analyzer/handler/most_frequent_status.go
    • Line 9: warning: exported type MostFrequentStatusHandler should have comment or be unexported (golint)
    • Line 16: warning: exported function NewMostFrequentStatusHandler should have comment or be unexported (golint)
    • Line 23: warning: exported method MostFrequentStatusHandler.Input should have comment or be unexported (golint)
    • Line 38: warning: exported method MostFrequentStatusHandler.Output should have comment or be unexported (golint)
    • nginx-log-analyzer/handler/most_visited_cities.go
    • Line 25: warning: exported type MostVisitedCities should have comment or be unexported (golint)
    • Line 36: warning: exported function NewMostVisitedCities should have comment or be unexported (golint)
    • Line 51: warning: exported method MostVisitedCities.Input should have comment or be unexported (golint)
    • Line 80: warning: exported method MostVisitedCities.Output 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!