Preparing report...

Report for github.com/ma6254/FictionDown

A+    Excellent!    Found 23 issues across 36 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo94%

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.


golint36%

Golint is a linter for Go source code.

    • FictionDown/utils/utils.go
    • Line 21: warning: exported function RequestGet should have comment or be unexported (golint)
    • Line 84: warning: exported function StringSliceEqual should have comment or be unexported (golint)
    • Line 99: warning: exported function U8ToGBK should have comment or be unexported (golint)
    • Line 104: warning: exported function DetectContentCharset should have comment or be unexported (golint)
    • Line 114: warning: exported function GetWebPageBodyReader should have comment or be unexported (golint)
    • Line 139: warning: exported function GetWegPageDOM should have comment or be unexported (golint)
    • FictionDown/context/context.go
    • Line 7: warning: exported type Context should have comment or be unexported (golint)
    • Line 9: warning: exported type CtxKey should have comment or be unexported (golint)
    • Line 12: warning: exported var KeyStore should have comment or be unexported (golint)
    • FictionDown/output/epub.go
    • Line 14: warning: exported type EPUB should have comment or be unexported (golint)
    • Line 17: warning: exported method EPUB.Conv should have comment or be unexported (golint)
    • FictionDown/output/txt.go
    • Line 11: warning: exported type TXT should have comment or be unexported (golint)
    • Line 14: warning: exported method TXT.Conv should have comment or be unexported (golint)
    • Line 34: warning: exported var TxtTemplate should have comment or be unexported (golint)
    • FictionDown/utils/retry.go
    • Line 7: warning: exported function Retry should have comment or be unexported (golint)
    • Line 34: warning: exported function NoRetryError should have comment or be unexported (golint)
    • FictionDown/site/search.go
    • Line 7: warning: exported type SearchBookMeta should have comment or be unexported (golint)
    • Line 12: warning: exported type SearchBookMetaA should have comment or be unexported (golint)
    • Line 18: warning: exported type SortSearchMeteList should have comment or be unexported (golint)
    • Line 24: warning: exported function ConvSearchRequest should have comment or be unexported (golint)
    • FictionDown/output/output.go
    • Line 24: warning: exported type Conversion should have comment or be unexported (golint)
    • Line 31: warning: exported var ErrUnsupportFormat should have comment or be unexported (golint)
    • Line 34: warning: exported function RegOutputFormat should have comment or be unexported (golint)
    • Line 38: warning: exported function Output should have comment or be unexported (golint)
    • FictionDown/sites/qidian/main.go
    • Line 26: warning: exported function SingleSpace should have comment or be unexported (golint)
    • Line 31: warning: exported function Site should have comment or be unexported (golint)
    • Line 57: warning: don't use underscores in Go names; var node_desc should be nodeDesc (golint)
    • FictionDown/site/site_chromedp.go
    • Line 19: warning: exported var ChromedpCtx should have comment or be unexported (golint)
    • Line 22: warning: exported function ChromedpInit should have comment or be unexported (golint)
    • Line 35: warning: exported function ChromedpBookInfo should have comment or be unexported (golint)
    • Line 90: warning: exported function ChromedpChapter should have comment or be unexported (golint)
    • FictionDown/sites/new81/main.go
    • Line 21: warning: exported function Site should have comment or be unexported (golint)
    • Line 132: warning: don't use underscores in Go names; var node_title should be nodeTitle (golint)
    • Line 140: warning: don't use underscores in Go names; var node_desc should be nodeDesc (golint)
    • Line 155: warning: don't use underscores in Go names; var node_content should be nodeContent (golint)
    • FictionDown/output/md.go
    • Line 16: warning: exported type MarkdownEPUBmeta should have comment or be unexported (golint)
    • Line 24: warning: exported type Markdown should have comment or be unexported (golint)
    • Line 27: warning: exported method Markdown.Conv should have comment or be unexported (golint)
    • Line 91: warning: exported function MarkdownEscape should have comment or be unexported (golint)
    • Line 133: warning: exported type MarkdownTemplateValues should have comment or be unexported (golint)
    • FictionDown/main.go
    • Line 124: warning: exported type SyncStore should have comment or be unexported (golint)
    • Line 131: warning: exported method SyncStore.Init should have comment or be unexported (golint)
    • Line 139: warning: exported method SyncStore.GetJob should have comment or be unexported (golint)
    • Line 156: warning: exported method SyncStore.GetTJob should have comment or be unexported (golint)
    • Line 172: warning: exported method SyncStore.SaveJob should have comment or be unexported (golint)
    • Line 198: warning: exported function Job should have comment or be unexported (golint)
    • Line 239: warning: exported function TJob should have comment or be unexported (golint)
    • Line 373: warning: exported function SplitX should have comment or be unexported (golint)
    • Line 393: warning: exported function SplitXX should have comment or be unexported (golint)
    • Line 480: warning: exported function GetFileName should have comment or be unexported (golint)
    • FictionDown/site/site.go
    • Line 24: warning: exported type ErrUnsupportSite should have comment or be unexported (golint)
    • Line 32: warning: exported type ErrMethodMissing should have comment or be unexported (golint)
    • Line 40: warning: exported var Sitepool should have comment or be unexported (golint)
    • Line 44: warning: exported function AddSite should have comment or be unexported (golint)
    • Line 52: warning: exported type SiteA should have comment or be unexported (golint)
    • Line 114: warning: exported type ChaperSearchResult should have comment or be unexported (golint)
    • Line 220: warning: exported function Search should have comment or be unexported (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!


misspell97%

Misspell Finds commonly misspelled English words