Preparing report...

Report for github.com/tliron/puccini-language-server

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


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!


golint28%

Golint is a linter for Go source code.

    • puccini-language-server/tosca/general-messages.go
    • Line 11: warning: comment on exported function Initialize should be of the form "Initialize ..." (golint)
    • Line 33: warning: comment on exported function Initialized should be of the form "Initialized ..." (golint)
    • Line 38: warning: comment on exported function Shutdown should be of the form "Shutdown ..." (golint)
    • Line 45: warning: comment on exported function LogTrace should be of the form "LogTrace ..." (golint)
    • Line 50: warning: comment on exported function SetTrace should be of the form "SetTrace ..." (golint)
    • puccini-language-server/tosca/language-features.go
    • Line 12: warning: comment on exported function TextDocumentCompletion should be of the form "TextDocumentCompletion ..." (golint)
    • Line 29: warning: comment on exported function TextDocumentDocumentSymbol should be of the form "TextDocumentDocumentSymbol ..." (golint)
    • puccini-language-server/tosca/documents.go
    • Line 10: warning: exported const INTERNAL_PATH_PREFIX should have comment or be unexported (golint)
    • Line 17: warning: don't use underscores in Go names; var url_ should be url (golint)
    • Line 20: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • puccini-language-server/tosca/state.go
    • Line 21: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 54: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 68: warning: exported type DocumentState should have comment or be unexported (golint)
    • Line 78: warning: exported function NewDocumentState should have comment or be unexported (golint)
    • Line 127: warning: exported method DocumentState.Fill should have comment or be unexported (golint)
    • Line 127: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • puccini-language-server/tosca/text-document-synchronization.go
    • Line 8: warning: comment on exported function TextDocumentDidOpen should be of the form "TextDocumentDidOpen ..." (golint)
    • Line 18: warning: comment on exported function TextDocumentDidChange should be of the form "TextDocumentDidChange ..." (golint)
    • Line 22: warning: don't use underscores in Go names; var change_ should be change (golint)
    • Line 26: warning: don't use underscores in Go names; var change_ should be change (golint)
    • Line 36: warning: comment on exported function TextDocumentDidSave should be of the form "TextDocumentDidSave ..." (golint)
    • Line 41: warning: comment on exported function TextDocumentDidClose should be of the form "TextDocumentDidClose ..." (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!