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.
Golint is a linter for Go source code.
-
amfora/display/display.go
- Line 58: warning: exported var App should have comment or be unexported (golint)
- Line 60: warning: exported function Init should have comment or be unexported (golint)
- Line 485: warning: exported function Reload should have comment or be unexported (golint)
- Line 532: warning: exported function NumTabs should have comment or be unexported (golint)
-
amfora/config/keybindings.go
- Line 11: warning: comment on exported type Command should be of the form "Command ..." (with optional leading article) (golint)
- Line 16: warning: exported const CmdInvalid should have comment (or a comment on this block) or be unexported (golint)
- Line 102: warning: comment on exported function GetKeyBinding should be of the form "GetKeyBinding ..." (golint)
- Line 155: warning: comment on exported function KeyInit should be of the form "KeyInit ..." (golint)
- Line 250: warning: comment on exported function TranslateKeyEvent should be of the form "TranslateKeyEvent ..." (golint)
-
amfora/logger/logger.go
- Line 10: warning: exported var Log should have comment or be unexported (golint)
- Line 12: warning: exported function Init should have comment or be unexported (golint)
-
amfora/renderer/page.go
- Line 18: warning: exported var ErrTooLarge should have comment or be unexported (golint)
- Line 19: warning: exported var ErrTimedOut should have comment or be unexported (golint)
- Line 20: warning: exported var ErrCantDisplay should have comment or be unexported (golint)
- Line 21: warning: exported var ErrBadEncoding should have comment or be unexported (golint)
- Line 22: warning: exported var ErrBadMediatype should have comment or be unexported (golint)
-
amfora/config/config.go
- Line 27: warning: exported var NewTabPath should have comment or be unexported (golint)
- Line 28: warning: exported var CustomNewTab should have comment or be unexported (golint)
- Line 30: warning: exported var TofuStore should have comment or be unexported (golint)
- Line 34: warning: comment on exported var BkmkStore should be of the form "BkmkStore ..." (golint)
- Line 37: warning: exported var OldBkmkPath should have comment or be unexported (golint)
- Line 38: warning: exported var BkmkPath should have comment or be unexported (golint)
- Line 40: warning: exported var DownloadsDir should have comment or be unexported (golint)
- Line 41: warning: exported var TempDownloadsDir should have comment or be unexported (golint)
- Line 45: warning: exported var SubscriptionPath should have comment or be unexported (golint)
- Line 47: warning: comment on exported var HTTPCommand should be of the form "HTTPCommand ..." (golint)
- Line 50: warning: exported type MediaHandler should have comment or be unexported (golint)
- Line 56: warning: exported var MediaHandlers should have comment or be unexported (golint)
- Line 58: warning: comment on exported var ScrollBar should be of the form "ScrollBar ..." (golint)
- Line 62: warning: exported function Init should have comment or be unexported (golint)
- Line 123: warning: don't use underscores in Go names; var xdg_data should be xdgData (golint)
-
amfora/structs/structs.go
- Line 1: warning: package comment should be of the form "Package structs ..." (golint)
- Line 6: warning: exported type Mediatype should have comment or be unexported (golint)
- Line 9: warning: exported const TextGemini should have comment (or a comment on this block) or be unexported (golint)
- Line 14: warning: exported type PageMode should have comment or be unexported (golint)
- Line 17: warning: exported const ModeOff should have comment (or a comment on this block) or be unexported (golint)
-
amfora/rr/rr.go
- Line 8: warning: exported var ErrClosed should have comment or be unexported (golint)
- Line 10: warning: exported type RestartReader 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!