Preparing report...

Report for github.com/digineo/texd

(v0.2.0)

A+    Excellent!    Found 21 issues across 34 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!


gocyclo97%

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.


golint41%

Golint is a linter for Go source code.

    • tex/errors.go
    • Line 32: warning: exported type KV should have comment or be unexported (golint)
    • Line 34: warning: exported type ErrWithCategory should have comment or be unexported (golint)
    • Line 63: warning: exported function InputError should have comment or be unexported (golint)
    • Line 67: warning: exported function ReferenceError should have comment or be unexported (golint)
    • Line 73: warning: exported function CompilationError should have comment or be unexported (golint)
    • Line 77: warning: exported function QueueError should have comment or be unexported (golint)
    • Line 81: warning: exported function UnknownError should have comment or be unexported (golint)
    • Line 96: warning: exported method ErrWithCategory.MarshalJSON should have comment or be unexported (golint)
    • exec/docker.go
    • Line 15: warning: exported method DockerClient.Executor should have comment or be unexported (golint)
    • exec/exec.go
    • Line 10: warning: exported type Exec should have comment or be unexported (golint)
    • exec/local.go
    • Line 16: warning: exported function LocalExec should have comment or be unexported (golint)
    • tex/document.go
    • Line 38: warning: exported type File should have comment or be unexported (golint)
    • Line 182: warning: exported function NewDocument should have comment or be unexported (golint)
    • Line 252: 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)
    • tex/engine.go
    • Line 5: warning: exported type Engine should have comment or be unexported (golint)
    • Line 10: warning: exported function NewEngine should have comment or be unexported (golint)
    • Line 14: warning: exported method Engine.Name should have comment or be unexported (golint)
    • Line 16: warning: exported method Engine.Flags should have comment or be unexported (golint)
    • Line 24: warning: exported var DefaultEngine should have comment or be unexported (golint)
    • Line 27: warning: exported function SupportedEngines should have comment or be unexported (golint)
    • Line 34: warning: exported function SetDefaultEngine should have comment or be unexported (golint)
    • Line 43: warning: exported function ParseEngine should have comment or be unexported (golint)
    • Line 52: warning: exported type ErrUnsupportedEngine should have comment or be unexported (golint)
    • Line 58: warning: exported var LatexmkDefaultFlags should have comment or be unexported (golint)
    • Line 65: warning: receiver name engine should be consistent with previous receiver name e for Engine (golint)
    • refstore/identifier.go
    • Line 12: warning: exported type ErrInvalidIdentifier should have comment or be unexported (golint)
    • Line 28: warning: comment on exported type Identifier should be of the form "Identifier ..." (with optional leading article) (golint)
    • Line 42: warning: exported method Identifier.Raw should have comment or be unexported (golint)
    • Line 89: warning: exported function ReadIdentifier should have comment or be unexported (golint)
    • exec/mock.go
    • Line 11: warning: exported type MockExec should have comment or be unexported (golint)
    • Line 40: warning: exported method MockExec.Run should have comment or be unexported (golint)
    • service/middleware/requestid.go
    • Line 13: warning: exported const HeaderKey should have comment or be unexported (golint)
    • Line 17: warning: exported const ContextKey should have comment or be unexported (golint)
    • Line 27: warning: exported function RequestID should have comment or be unexported (golint)
    • Line 37: warning: exported function GetRequestID should have comment or be unexported (golint)
    • Line 42: warning: exported function RequestIDField should have comment or be unexported (golint)
    • service/service.go
    • Line 29: warning: exported const KeepJobsNever should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type Options should have comment or be unexported (golint)
    • Line 132: warning: exported function Start should have comment or be unexported (golint)
    • version.go
    • Line 35: warning: exported function Development should have comment or be unexported (golint)
    • refstore/registry.go
    • Line 10: warning: exported type AdapterConstructor should have comment or be unexported (golint)
    • Line 12: warning: exported type ErrStoreAlreadyTaken should have comment or be unexported (golint)
    • Line 55: warning: exported function AvailableAdapters should have comment or be unexported (golint)
    • service/ui.go
    • Line 15: warning: exported function HandleUI should have comment or be unexported (golint)
    • Line 24: warning: exported function HandleAssets 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!