Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
code-playground/editor.go
- Line 10: warning: exported const DefaultEditor should have comment or be unexported (golint)
- Line 12: warning: exported type Editor should have comment or be unexported (golint)
- Line 18: warning: exported function NewEditor should have comment or be unexported (golint)
- Line 26: warning: exported method Editor.Capture should have comment or be unexported (golint)
- Line 53: warning: exported method Editor.Open should have comment or be unexported (golint)
-
code-playground/go.go
- Line 14: warning: exported const GoHelloWorld should have comment or be unexported (golint)
- Line 26: warning: exported type GoCompile should have comment or be unexported (golint)
- Line 34: warning: exported type GoCompileEvent should have comment or be unexported (golint)
- Line 40: warning: exported type Go should have comment or be unexported (golint)
- Line 44: warning: exported method Go.Type should have comment or be unexported (golint)
- Line 48: warning: exported method Go.Init should have comment or be unexported (golint)
- Line 48: warning: receiver name g should be consistent with previous receiver name r for Go (golint)
- Line 52: warning: exported method Go.Default should have comment or be unexported (golint)
- Line 52: warning: receiver name g should be consistent with previous receiver name r for Go (golint)
- Line 56: warning: exported method Go.Evaluate should have comment or be unexported (golint)
- Line 56: warning: receiver name g should be consistent with previous receiver name r for Go (golint)
- Line 98: warning: exported method Go.Share should have comment or be unexported (golint)
- Line 98: warning: receiver name g should be consistent with previous receiver name r for Go (golint)
- Line 123: warning: exported method Go.Import should have comment or be unexported (golint)
- Line 123: warning: receiver name g should be consistent with previous receiver name r for Go (golint)
- Line 161: warning: exported method GoCompile.Execute should have comment or be unexported (golint)
-
code-playground/loggers.go
- Line 9: warning: exported const FATAL should have comment (or a comment on this block) or be unexported (golint)
- Line 17: warning: exported type ILoggers should have comment or be unexported (golint)
- Line 27: warning: exported type Loggers should have comment or be unexported (golint)
- Line 29: warning: exported function NewLogger should have comment or be unexported (golint)
- Line 33: warning: exported method Loggers.Debug should have comment or be unexported (golint)
- Line 37: warning: exported method Loggers.Info should have comment or be unexported (golint)
- Line 41: warning: exported method Loggers.Warn should have comment or be unexported (golint)
- Line 49: warning: exported method Loggers.Fatal should have comment or be unexported (golint)
- Line 53: warning: exported method Loggers.Trace should have comment or be unexported (golint)
- Line 57: warning: exported method Loggers.Log should have comment or be unexported (golint)
-
code-playground/main.go
- Line 11: warning: exported var Spinner should have comment or be unexported (golint)
- Line 12: warning: exported var Log should have comment or be unexported (golint)
-
code-playground/rust.go
- Line 13: warning: exported const RustHelloWorld should have comment or be unexported (golint)
- Line 19: warning: exported type RustCompileRequest should have comment or be unexported (golint)
- Line 26: warning: exported type RustCompile should have comment or be unexported (golint)
- Line 31: warning: exported type RustShareRequest should have comment or be unexported (golint)
- Line 35: warning: exported type RustShare should have comment or be unexported (golint)
- Line 41: warning: exported type Rust should have comment or be unexported (golint)
- Line 45: warning: exported method Rust.Type should have comment or be unexported (golint)
- Line 49: warning: exported method Rust.Init should have comment or be unexported (golint)
- Line 53: warning: exported method Rust.Default should have comment or be unexported (golint)
- Line 57: warning: exported method Rust.Evaluate should have comment or be unexported (golint)
- Line 103: warning: exported method Rust.Share should have comment or be unexported (golint)
- Line 146: warning: exported method Rust.Import should have comment or be unexported (golint)
- Line 201: warning: exported method RustCompile.Execute should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!