Preparing report...

Report for github.com/joaodias/hugito-app

A+    Excellent!    Found 17 issues across 37 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!


golint59%

Golint is a linter for Go source code.

    • hugito-app/infrastructure/github.go
    • Line 30: warning: exported type Github should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method Github.ValidateRepository should be of the form "ValidateRepository ..." (golint)
    • Line 178: warning: comment on exported method Github.DownloadContents should be of the form "DownloadContents ..." (golint)
    • Line 199: warning: comment on exported method Github.RemoveDownloadedContents should be of the form "RemoveDownloadedContents ..." (golint)
    • hugito-app/interfaces/mocks/repository.go
    • Line 9: warning: exported type RepositoryInteractor should have comment or be unexported (golint)
    • Line 17: warning: exported method RepositoryInteractor.New should have comment or be unexported (golint)
    • Line 25: warning: exported method RepositoryInteractor.Validate should have comment or be unexported (golint)
    • hugito-app/interfaces/mocks/storage.go
    • Line 8: warning: exported type DatabaseHandler should have comment or be unexported (golint)
    • Line 18: warning: exported method DatabaseHandler.Add should have comment or be unexported (golint)
    • Line 28: warning: exported method DatabaseHandler.Remove should have comment or be unexported (golint)
    • Line 37: warning: exported method DatabaseHandler.Update should have comment or be unexported (golint)
    • Line 46: warning: exported method DatabaseHandler.List should have comment or be unexported (golint)
    • hugito-app/usecases/mocks/repository.go
    • Line 9: warning: exported type RepositoryRepository should have comment or be unexported (golint)
    • Line 15: warning: exported method RepositoryRepository.New should have comment or be unexported (golint)
    • Line 23: warning: exported method RepositoryRepository.Validate should have comment or be unexported (golint)
    • hugito-app/usecases/content.go
    • Line 36: warning: exported method ContentInteractor.New should have comment or be unexported (golint)
    • Line 75: warning: exported method ContentInteractor.Remove should have comment or be unexported (golint)
    • Line 99: warning: exported method ContentInteractor.Update should have comment or be unexported (golint)
    • Line 126: warning: exported method ContentInteractor.List should have comment or be unexported (golint)
    • Line 163: warning: exported method ContentInteractor.Find should have comment or be unexported (golint)
    • Line 202: warning: exported method ContentInteractor.Publish should have comment or be unexported (golint)
    • hugito-app/interfaces/mocks/content.go
    • Line 9: warning: exported type ContentInteractor should have comment or be unexported (golint)
    • Line 24: warning: exported method ContentInteractor.New should have comment or be unexported (golint)
    • Line 32: warning: exported method ContentInteractor.Remove should have comment or be unexported (golint)
    • Line 40: warning: exported method ContentInteractor.Update should have comment or be unexported (golint)
    • Line 48: warning: exported method ContentInteractor.List should have comment or be unexported (golint)
    • Line 56: warning: exported method ContentInteractor.Find should have comment or be unexported (golint)
    • Line 64: warning: exported method ContentInteractor.Publish should have comment or be unexported (golint)
    • hugito-app/interfaces/mocks/sourcecontrol.go
    • Line 9: warning: exported type SourceControl should have comment or be unexported (golint)
    • Line 32: warning: exported method SourceControl.GetUser should have comment or be unexported (golint)
    • Line 40: warning: exported method SourceControl.ValidateRepository should have comment or be unexported (golint)
    • Line 48: warning: exported method SourceControl.ListContentTitles should have comment or be unexported (golint)
    • Line 56: warning: exported method SourceControl.CreateContentFile should have comment or be unexported (golint)
    • Line 64: warning: exported method SourceControl.RemoveContentFile should have comment or be unexported (golint)
    • Line 72: warning: exported method SourceControl.GetFileContent should have comment or be unexported (golint)
    • Line 81: warning: exported method SourceControl.UpdateFileContent should have comment or be unexported (golint)
    • Line 89: warning: exported method SourceControl.DownloadContents should have comment or be unexported (golint)
    • Line 98: warning: exported method SourceControl.PushFiles should have comment or be unexported (golint)
    • Line 106: warning: exported method SourceControl.RemoveDownloadedContents should have comment or be unexported (golint)
    • hugito-app/usecases/mocks/content.go
    • Line 9: warning: exported type ContentRepository should have comment or be unexported (golint)
    • Line 24: warning: exported method ContentRepository.New should have comment or be unexported (golint)
    • Line 32: warning: exported method ContentRepository.Remove should have comment or be unexported (golint)
    • Line 40: warning: exported method ContentRepository.Update should have comment or be unexported (golint)
    • Line 48: warning: exported method ContentRepository.List should have comment or be unexported (golint)
    • Line 56: warning: exported method ContentRepository.Find should have comment or be unexported (golint)
    • Line 64: warning: exported method ContentRepository.Publish should have comment or be unexported (golint)
    • hugito-app/interfaces/repository.go
    • Line 8: warning: exported type ExternalRepositoryRepository should have comment or be unexported (golint)
    • Line 10: warning: exported method ExternalRepositoryRepository.New should have comment or be unexported (golint)
    • Line 19: warning: exported method ExternalRepositoryRepository.Validate should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • hugito-app/interfaces/web_test.go
    • Line 77: warning: ineffectual assignment to err (ineffassign)
    • Line 93: warning: ineffectual assignment to err (ineffassign)
    • Line 112: warning: ineffectual assignment to err (ineffassign)
    • Line 135: warning: ineffectual assignment to err (ineffassign)
    • Line 436: warning: ineffectual assignment to err (ineffassign)
    • Line 452: warning: ineffectual assignment to err (ineffassign)
    • Line 473: warning: ineffectual assignment to err (ineffassign)
    • Line 509: warning: ineffectual assignment to err (ineffassign)
    • Line 525: warning: ineffectual assignment to err (ineffassign)
    • Line 549: warning: ineffectual assignment to err (ineffassign)
    • Line 584: warning: ineffectual assignment to err (ineffassign)
    • Line 600: warning: ineffectual assignment to err (ineffassign)
    • Line 621: warning: ineffectual assignment to err (ineffassign)
    • Line 653: warning: ineffectual assignment to err (ineffassign)
    • Line 669: warning: ineffectual assignment to err (ineffassign)
    • Line 690: warning: ineffectual assignment to err (ineffassign)

misspell91%

Misspell Finds commonly misspelled English words