Preparing report...

Report for github.com/gotidy/copy

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


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!


golint61%

Golint is a linter for Go source code.

    • copy/copier.go
    • Line 10: warning: exported type TypeInfo should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTypeInfo should have comment or be unexported (golint)
    • Line 20: warning: exported method TypeInfo.Check should have comment or be unexported (golint)
    • Line 24: warning: exported type BaseCopier should have comment or be unexported (golint)
    • Line 31: warning: exported function NewBaseCopier should have comment or be unexported (golint)
    • Line 71: warning: exported type ValueToPValueCopier should have comment or be unexported (golint)
    • Line 78: warning: exported function NewValueToPValueCopier should have comment or be unexported (golint)
    • Line 90: warning: exported method ValueToPValueCopier.Copy should have comment or be unexported (golint)
    • Line 113: warning: exported type PValueToValueCopier should have comment or be unexported (golint)
    • Line 119: warning: exported function NewPValueToValueCopier should have comment or be unexported (golint)
    • Line 130: warning: exported method PValueToValueCopier.Copy should have comment or be unexported (golint)
    • Line 153: warning: exported type PValueToPValueCopier should have comment or be unexported (golint)
    • Line 160: warning: exported function NewPValueToPValueCopier should have comment or be unexported (golint)
    • Line 173: warning: exported method PValueToPValueCopier.Copy should have comment or be unexported (golint)
    • copy/copiers.go
    • Line 48: warning: comment on exported type Copier should be of the form "Copier ..." (with optional leading article) (golint)
    • copy/slice_copier.go
    • Line 9: warning: exported type SliceCopier should have comment or be unexported (golint)
    • Line 17: warning: exported function NewSliceCopier should have comment or be unexported (golint)
    • copy/types.go
    • Line 5: warning: exported type ValueKind should have comment or be unexported (golint)
    • Line 8: warning: exported const UnknownKind should have comment (or a comment on this block) or be unexported (golint)
    • copy/unsafe.go
    • Line 16: warning: exported type Type should have comment or be unexported (golint)
    • Line 18: warning: exported function DataOf should have comment or be unexported (golint)
    • Line 26: warning: exported function TypeOf should have comment or be unexported (golint)
    • Line 37: warning: exported function PtrOf 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!