Preparing report...

Report for github.com/grantseltzer/weaver

A+    Excellent!    Found 6 issues across 15 files

Tweet

gofmt93%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint60%

Golint is a linter for Go source code.

    • weaver/cmd/weaver/types.go
    • Line 45: warning: exported const PACKAGE_MODE should have comment (or a comment on this block) or be unexported (golint)
    • Line 67: warning: exported const INVALID should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: comment on exported const STRUCT should be of the form "STRUCT ..." (golint)
    • weaver/cmd/tester/main.go
    • Line 8: warning: don't use underscores in Go names; func test_single_byte should be testSingleByte (golint)
    • Line 11: warning: don't use underscores in Go names; func test_single_rune should be testSingleRune (golint)
    • Line 14: warning: don't use underscores in Go names; func test_single_string should be testSingleString (golint)
    • Line 17: warning: don't use underscores in Go names; func test_single_bool should be testSingleBool (golint)
    • Line 20: warning: don't use underscores in Go names; func test_single_int should be testSingleInt (golint)
    • Line 23: warning: don't use underscores in Go names; func test_single_int8 should be testSingleInt8 (golint)
    • Line 26: warning: don't use underscores in Go names; func test_single_int16 should be testSingleInt16 (golint)
    • Line 29: warning: don't use underscores in Go names; func test_single_int32 should be testSingleInt32 (golint)
    • Line 32: warning: don't use underscores in Go names; func test_single_int64 should be testSingleInt64 (golint)
    • Line 35: warning: don't use underscores in Go names; func test_single_uint should be testSingleUint (golint)
    • Line 38: warning: don't use underscores in Go names; func test_single_uint8 should be testSingleUint8 (golint)
    • Line 41: warning: don't use underscores in Go names; func test_single_uint16 should be testSingleUint16 (golint)
    • Line 44: warning: don't use underscores in Go names; func test_single_uint32 should be testSingleUint32 (golint)
    • Line 47: warning: don't use underscores in Go names; func test_single_uint64 should be testSingleUint64 (golint)
    • Line 50: warning: don't use underscores in Go names; func test_single_float32 should be testSingleFloat32 (golint)
    • Line 53: warning: don't use underscores in Go names; func test_single_float64 should be testSingleFloat64 (golint)
    • Line 60: warning: don't use underscores in Go names; func test_combined_byte should be testCombinedByte (golint)
    • Line 63: warning: don't use underscores in Go names; func test_combined_rune should be testCombinedRune (golint)
    • Line 66: warning: don't use underscores in Go names; func test_combined_string should be testCombinedString (golint)
    • Line 69: warning: don't use underscores in Go names; func test_combined_bool should be testCombinedBool (golint)
    • Line 72: warning: don't use underscores in Go names; func test_combined_int should be testCombinedInt (golint)
    • Line 75: warning: don't use underscores in Go names; func test_combined_int8 should be testCombinedInt8 (golint)
    • Line 78: warning: don't use underscores in Go names; func test_combined_int16 should be testCombinedInt16 (golint)
    • Line 81: warning: don't use underscores in Go names; func test_combined_int32 should be testCombinedInt32 (golint)
    • Line 84: warning: don't use underscores in Go names; func test_combined_int64 should be testCombinedInt64 (golint)
    • Line 87: warning: don't use underscores in Go names; func test_combined_uint should be testCombinedUint (golint)
    • Line 90: warning: don't use underscores in Go names; func test_combined_uint8 should be testCombinedUint8 (golint)
    • Line 93: warning: don't use underscores in Go names; func test_combined_uint16 should be testCombinedUint16 (golint)
    • Line 96: warning: don't use underscores in Go names; func test_combined_uint32 should be testCombinedUint32 (golint)
    • Line 99: warning: don't use underscores in Go names; func test_combined_uint64 should be testCombinedUint64 (golint)
    • Line 106: warning: don't use underscores in Go names; func test_byte_array should be testByteArray (golint)
    • Line 109: warning: don't use underscores in Go names; func test_rune_array should be testRuneArray (golint)
    • Line 112: warning: don't use underscores in Go names; func test_string_array should be testStringArray (golint)
    • Line 115: warning: don't use underscores in Go names; func test_bool_array should be testBoolArray (golint)
    • Line 118: warning: don't use underscores in Go names; func test_int_array should be testIntArray (golint)
    • Line 121: warning: don't use underscores in Go names; func test_int8_array should be testInt8Array (golint)
    • Line 124: warning: don't use underscores in Go names; func test_int16_array should be testInt16Array (golint)
    • Line 127: warning: don't use underscores in Go names; func test_int32_array should be testInt32Array (golint)
    • Line 130: warning: don't use underscores in Go names; func test_int64_array should be testInt64Array (golint)
    • Line 133: warning: don't use underscores in Go names; func test_uint_array should be testUintArray (golint)
    • Line 136: warning: don't use underscores in Go names; func test_uint8_array should be testUint8Array (golint)
    • Line 139: warning: don't use underscores in Go names; func test_uint16_array should be testUint16Array (golint)
    • Line 142: warning: don't use underscores in Go names; func test_uint32_array should be testUint32Array (golint)
    • Line 145: warning: don't use underscores in Go names; func test_uint64_array should be testUint64Array (golint)
    • weaver/cmd/weaver/functions_file_test.go
    • Line 594: warning: error var expectedErrorA should have name of the form errFoo (golint)
    • Line 602: warning: error var expectedErrorB should have name of the form errFoo (golint)
    • Line 610: warning: error var expectedErrorD should have name of the form errFoo (golint)
    • Line 615: warning: error var expectedErrorE should have name of the form errFoo (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!


misspell86%

Misspell Finds commonly misspelled English words