Preparing report...

Report for github.com/yuuki/droot

A+    Excellent!    Found 11 issues across 18 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!


gocyclo94%

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.


golint44%

Golint is a linter for Go source code.

    • droot/mounter/mount.go
    • Line 16: warning: exported type Mounter should have comment or be unexported (golint)
    • Line 20: warning: exported function NewMounter should have comment or be unexported (golint)
    • Line 24: warning: exported function ResolveRootDir should have comment or be unexported (golint)
    • Line 46: warning: exported method Mounter.MountSysProc should have comment or be unexported (golint)
    • Line 63: warning: exported method Mounter.BindMount should have comment or be unexported (golint)
    • Line 83: warning: exported method Mounter.RoBindMount should have comment or be unexported (golint)
    • Line 97: warning: exported method Mounter.GetMountsRoot should have comment or be unexported (golint)
    • Line 113: warning: exported method Mounter.UmountRoot should have comment or be unexported (golint)
    • droot/commands/export.go
    • Line 13: warning: exported var CommandArgExport should have comment or be unexported (golint)
    • Line 14: warning: exported var CommandExport should have comment or be unexported (golint)
    • droot/commands/run.go
    • Line 20: warning: exported var CommandArgRun should have comment or be unexported (golint)
    • Line 21: warning: exported var CommandRun should have comment or be unexported (golint)
    • droot/commands/umount.go
    • Line 10: warning: exported var CommandArgUmount should have comment or be unexported (golint)
    • Line 11: warning: exported var CommandUmount should have comment or be unexported (golint)
    • droot/log/log.go
    • Line 7: warning: exported var IsDebug should have comment or be unexported (golint)
    • Line 13: warning: exported function Debug should have comment or be unexported (golint)
    • Line 19: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 25: warning: exported function Info should have comment or be unexported (golint)
    • Line 29: warning: exported function Infof should have comment or be unexported (golint)
    • Line 33: warning: exported function Error should have comment or be unexported (golint)
    • Line 37: warning: exported function Errorf should have comment or be unexported (golint)
    • droot/osutil/osutil.go
    • Line 14: warning: exported function ExistsFile should have comment or be unexported (golint)
    • Line 19: warning: exported function IsSymlink should have comment or be unexported (golint)
    • Line 24: warning: exported function ExistsDir should have comment or be unexported (golint)
    • Line 31: warning: exported function IsDirEmpty should have comment or be unexported (golint)
    • Line 46: warning: exported function RunCmd should have comment or be unexported (golint)
    • Line 59: warning: exported function Cp should have comment or be unexported (golint)
    • Line 66: warning: exported function MountIfNotMounted should have comment or be unexported (golint)
    • Line 82: warning: exported function ForceMount should have comment or be unexported (golint)
    • Line 104: warning: comment on exported function Symlink should be of the form "Symlink ..." (golint)
    • Line 117: warning: exported function Chroot should have comment or be unexported (golint)
    • droot/osutil/osutil_linux.go
    • Line 16: warning: exported function LookupGroup should have comment or be unexported (golint)
    • Line 34: warning: exported function LookupUser should have comment or be unexported (golint)
    • Line 70: warning: exported function DropCapabilities should have comment or be unexported (golint)
    • Line 104: warning: exported function Execv 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.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!