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.
-
i3ipc-go/socket.go
- Line 46: warning: exported const I3Command should have comment (or a comment on this block) or be unexported (golint)
-
i3ipc-go/tree.go
- Line 38: warning: don't use underscores in Go names; struct field Floating_Nodes should be FloatingNodes (golint)
- Line 43: warning: don't use underscores in Go names; struct field Window_Properties should be WindowProperties (golint)
- Line 52: warning: don't use underscores in Go names; struct field Last_Split_Layout should be LastSplitLayout (golint)
- Line 54: warning: don't use underscores in Go names; struct field Fullscreen_Mode should be FullscreenMode (golint)
- Line 55: warning: don't use underscores in Go names; struct field Scratchpad_State should be ScratchpadState (golint)
- Line 56: warning: don't use underscores in Go names; struct field Workspace_Layout should be WorkspaceLayout (golint)
-
i3ipc-go/tree_utils.go
- Line 8: warning: comment on exported method I3Node.Root should be of the form "Root ..." (golint)
- Line 9: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 16: warning: comment on exported method I3Node.Descendents should be of the form "Descendents ..." (golint)
- Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 37: warning: comment on exported method I3Node.Leaves should be of the form "Leaves ..." (golint)
- Line 38: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 45: warning: don't use underscores in Go names; var is_dockarea should be isDockarea (golint)
- Line 54: warning: comment on exported method I3Node.Workspaces should be of the form "Workspaces ..." (golint)
- Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 60: warning: don't use underscores in Go names; var i3_special should be i3Special (golint)
- Line 68: warning: comment on exported method I3Node.FindFocused should be of the form "FindFocused ..." (golint)
- Line 69: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 81: warning: comment on exported method I3Node.FindByID should be of the form "FindByID ..." (golint)
- Line 82: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 94: warning: comment on exported method I3Node.FindByWindow should be of the form "FindByWindow ..." (golint)
- Line 95: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 107: warning: comment on exported method I3Node.FindNamed should be of the form "FindNamed ..." (golint)
- Line 108: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 122: warning: comment on exported method I3Node.Workspace should be of the form "Workspace ..." (golint)
- Line 123: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (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!