Preparing report...

Report for gitlab.com/stone.code/javascriptcore-go

B    Not bad!    Found 10 issues across 18 files

Tweet

gofmt50%

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!


golint55%

Golint is a linter for Go source code.

    • /gitlab.com/stone.code/javascriptcore-go/object.go
    • Line 25: warning: don't use underscores in Go names; func release_jsstringref_array should be releaseJsstringrefArray (golint)
    • Line 33: warning: exported method Context.NewObject should have comment or be unexported (golint)
    • Line 38: warning: exported method Context.NewArray should have comment or be unexported (golint)
    • Line 57: warning: exported method Context.NewDate should have comment or be unexported (golint)
    • Line 69: warning: exported method Context.NewDateWithMilliseconds should have comment or be unexported (golint)
    • Line 82: warning: exported method Context.NewDateWithString should have comment or be unexported (golint)
    • Line 99: warning: exported method Context.NewError should have comment or be unexported (golint)
    • Line 113: warning: exported method Context.NewErrorFromString should have comment or be unexported (golint)
    • Line 126: warning: exported method Context.NewRegExp should have comment or be unexported (golint)
    • Line 139: warning: exported method Context.NewRegExpFromValues should have comment or be unexported (golint)
    • Line 151: warning: exported method Context.NewFunction should have comment or be unexported (golint)
    • Line 151: warning: don't use underscores in Go names; method parameter source_url should be sourceURL (golint)
    • Line 151: warning: don't use underscores in Go names; method parameter starting_line_number should be startingLineNumber (golint)
    • Line 184: warning: exported method Context.GetPrototype should have comment or be unexported (golint)
    • Line 189: warning: exported method Context.SetPrototype should have comment or be unexported (golint)
    • Line 194: warning: exported method Context.HasProperty should have comment or be unexported (golint)
    • Line 202: warning: exported method Context.GetProperty should have comment or be unexported (golint)
    • Line 216: warning: exported method Context.GetPropertyAtIndex should have comment or be unexported (golint)
    • Line 227: warning: exported method Context.SetProperty should have comment or be unexported (golint)
    • Line 242: warning: exported method Context.SetPropertyAtIndex should have comment or be unexported (golint)
    • Line 254: warning: exported method Context.DeleteProperty should have comment or be unexported (golint)
    • Line 291: warning: exported method Context.IsFunction should have comment or be unexported (golint)
    • Line 296: warning: exported method Context.CallAsFunction should have comment or be unexported (golint)
    • Line 317: warning: exported method Context.IsConstructor should have comment or be unexported (golint)
    • Line 322: warning: exported method Context.CallAsConstructor should have comment or be unexported (golint)
    • Line 358: warning: exported type PropertyNameArray should have comment or be unexported (golint)
    • Line 362: warning: exported method Context.CopyPropertyNames should have comment or be unexported (golint)
    • Line 367: warning: exported method PropertyNameArray.Retain should have comment or be unexported (golint)
    • Line 371: warning: exported method PropertyNameArray.Release should have comment or be unexported (golint)
    • Line 375: warning: exported method PropertyNameArray.Count should have comment or be unexported (golint)
    • Line 380: warning: exported method PropertyNameArray.NameAtIndex should have comment or be unexported (golint)
    • /gitlab.com/stone.code/javascriptcore-go/value.go
    • Line 20: warning: comment on exported type Kind should be of the form "Kind ..." (with optional leading article) (golint)
    • Line 26: warning: exported const TypeUndefined should have comment (or a comment on this block) or be unexported (golint)
    • Line 95: warning: exported method Context.IsEqual should have comment or be unexported (golint)
    • Line 106: warning: exported method Context.IsStrictEqual should have comment or be unexported (golint)
    • /gitlab.com/stone.code/javascriptcore-go/base.go
    • Line 32: warning: don't use underscores in Go names; method parameter source_url should be sourceURL (golint)
    • Line 58: warning: don't use underscores in Go names; method parameter source_url should be sourceURL (golint)
    • Line 83: warning: comment on exported method Context.GarbageCollect should be of the form "GarbageCollect ..." (golint)
    • /gitlab.com/stone.code/javascriptcore-go/native.go
    • Line 16: warning: don't use underscores in Go names; type object_data should be objectData (golint)
    • Line 59: warning: don't use underscores in Go names; func javascript_to_reflect should be javascriptToReflect (golint)
    • Line 85: warning: don't use underscores in Go names; func javascript_to_array should be javascriptToArray (golint)
    • Line 141: warning: don't use underscores in Go names; func parameter data_ptr should be dataPtr (golint)
    • Line 213: warning: don't use underscores in Go names; func parameter data_ptr should be dataPtr (golint)
    • Line 259: warning: don't use underscores in Go names; func parameter data_ptr should be dataPtr (golint)
    • Line 292: warning: don't use underscores in Go names; func internal_go_error should be internalGoError (golint)
    • Line 309: warning: don't use underscores in Go names; func parameter data_ptr should be dataPtr (golint)
    • Line 380: warning: don't use underscores in Go names; func parameter data_ptr should be dataPtr (golint)
    • Line 410: warning: don't use underscores in Go names; func parameter data_ptr should be dataPtr (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell83%

Misspell Finds commonly misspelled English words