Preparing report...

Report for github.com/CheerChen/dmm-scraper

(v1.4.0)

A    Great!    Found 22 issues across 34 files

Tweet

gofmt85%

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!


gocyclo85%

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.

    • main.go
    • Line 40: warning: cyclomatic complexity 17 of function main() is high (> 15) (gocyclo)

golint58%

Golint is a linter for Go source code.

    • pkg/scraper/gyutto.go
    • Line 16: warning: exported type GyuttoScraper should have comment or be unexported (golint)
    • Line 20: warning: exported method GyuttoScraper.GetType should have comment or be unexported (golint)
    • Line 24: warning: exported method GyuttoScraper.FetchDoc should have comment or be unexported (golint)
    • Line 48: warning: exported method GyuttoScraper.GetTitle should have comment or be unexported (golint)
    • Line 55: warning: exported method GyuttoScraper.GetPlot should have comment or be unexported (golint)
    • Line 62: warning: exported method GyuttoScraper.GetDirector should have comment or be unexported (golint)
    • Line 69: warning: exported method GyuttoScraper.GetRuntime should have comment or be unexported (golint)
    • Line 73: warning: exported method GyuttoScraper.GetTags should have comment or be unexported (golint)
    • Line 84: warning: exported method GyuttoScraper.GetMaker should have comment or be unexported (golint)
    • Line 88: warning: exported method GyuttoScraper.GetActors should have comment or be unexported (golint)
    • Line 92: warning: exported method GyuttoScraper.GetNumber should have comment or be unexported (golint)
    • Line 100: warning: exported method GyuttoScraper.GetFormatNumber should have comment or be unexported (golint)
    • Line 104: warning: exported method GyuttoScraper.GetCover should have comment or be unexported (golint)
    • Line 112: warning: exported method GyuttoScraper.GetPremiered should have comment or be unexported (golint)
    • Line 125: warning: exported method GyuttoScraper.GetYear should have comment or be unexported (golint)
    • pkg/scraper/default.go
    • Line 18: warning: exported type DefaultScraper should have comment or be unexported (golint)
    • Line 24: warning: exported method DefaultScraper.FetchDoc should have comment or be unexported (golint)
    • Line 28: warning: exported method DefaultScraper.GetPlot should have comment or be unexported (golint)
    • Line 32: warning: exported method DefaultScraper.GetTitle should have comment or be unexported (golint)
    • Line 36: warning: exported method DefaultScraper.GetDirector should have comment or be unexported (golint)
    • Line 40: warning: exported method DefaultScraper.GetRuntime should have comment or be unexported (golint)
    • Line 44: warning: exported method DefaultScraper.GetTags should have comment or be unexported (golint)
    • Line 48: warning: exported method DefaultScraper.GetMaker should have comment or be unexported (golint)
    • Line 52: warning: exported method DefaultScraper.GetActors should have comment or be unexported (golint)
    • Line 56: warning: exported method DefaultScraper.GetLabel should have comment or be unexported (golint)
    • Line 60: warning: exported method DefaultScraper.GetNumber should have comment or be unexported (golint)
    • Line 64: warning: exported method DefaultScraper.GetFormatNumber should have comment or be unexported (golint)
    • Line 68: warning: exported method DefaultScraper.GetCover should have comment or be unexported (golint)
    • Line 72: warning: exported method DefaultScraper.GetWebsite should have comment or be unexported (golint)
    • Line 79: warning: exported method DefaultScraper.GetPremiered should have comment or be unexported (golint)
    • Line 83: warning: exported method DefaultScraper.GetYear should have comment or be unexported (golint)
    • Line 87: warning: exported method DefaultScraper.GetSeries should have comment or be unexported (golint)
    • Line 91: warning: exported method DefaultScraper.GetType should have comment or be unexported (golint)
    • Line 95: warning: exported method DefaultScraper.NeedCut should have comment or be unexported (golint)
    • Line 99: warning: exported method DefaultScraper.GetDocFromURL should have comment or be unexported (golint)
    • Line 137: warning: exported method DefaultScraper.GetAvailableUrl should have comment or be unexported (golint)
    • pkg/scraper/dmm.go
    • Line 18: warning: exported type DMMScraper should have comment or be unexported (golint)
    • Line 22: warning: exported method DMMScraper.GetType should have comment or be unexported (golint)
    • Line 67: warning: exported method DMMScraper.GetPlot should have comment or be unexported (golint)
    • Line 75: warning: exported method DMMScraper.GetTitle should have comment or be unexported (golint)
    • Line 83: warning: exported method DMMScraper.GetDirector should have comment or be unexported (golint)
    • Line 90: warning: exported method DMMScraper.GetRuntime should have comment or be unexported (golint)
    • Line 97: warning: exported method DMMScraper.GetTags should have comment or be unexported (golint)
    • Line 114: warning: exported method DMMScraper.GetMaker should have comment or be unexported (golint)
    • Line 121: warning: exported method DMMScraper.GetActors should have comment or be unexported (golint)
    • Line 131: warning: exported method DMMScraper.GetLabel should have comment or be unexported (golint)
    • Line 138: warning: exported method DMMScraper.GetNumber should have comment or be unexported (golint)
    • Line 145: warning: exported method DMMScraper.GetFormatNumber should have comment or be unexported (golint)
    • Line 153: warning: exported method DMMScraper.GetCover should have comment or be unexported (golint)
    • Line 161: warning: exported method DMMScraper.GetPremiered should have comment or be unexported (golint)
    • Line 172: warning: exported method DMMScraper.GetYear should have comment or be unexported (golint)
    • Line 179: warning: exported method DMMScraper.GetSeries should have comment or be unexported (golint)
    • Line 186: warning: exported method DMMScraper.NeedCut should have comment or be unexported (golint)
    • pkg/scraper/fc2.go
    • Line 12: warning: exported type Fc2Scraper should have comment or be unexported (golint)
    • Line 17: warning: exported method Fc2Scraper.GetType should have comment or be unexported (golint)
    • Line 26: warning: exported type FC2Data should have comment or be unexported (golint)
    • Line 41: warning: exported type FC2Image should have comment or be unexported (golint)
    • Line 46: warning: exported method Fc2Scraper.FetchDoc should have comment or be unexported (golint)
    • Line 70: warning: exported method Fc2Scraper.GetTitle should have comment or be unexported (golint)
    • Line 83: warning: exported method Fc2Scraper.GetPlot should have comment or be unexported (golint)
    • Line 97: warning: exported method Fc2Scraper.GetDirector should have comment or be unexported (golint)
    • Line 109: warning: exported method Fc2Scraper.GetRuntime should have comment or be unexported (golint)
    • Line 113: warning: exported method Fc2Scraper.GetTags should have comment or be unexported (golint)
    • Line 129: warning: exported method Fc2Scraper.GetMaker should have comment or be unexported (golint)
    • Line 136: warning: exported method Fc2Scraper.GetActors should have comment or be unexported (golint)
    • Line 140: warning: exported method Fc2Scraper.GetNumber should have comment or be unexported (golint)
    • Line 152: warning: exported method Fc2Scraper.GetCover should have comment or be unexported (golint)
    • Line 164: warning: exported method Fc2Scraper.GetPremiered should have comment or be unexported (golint)
    • Line 177: warning: exported method Fc2Scraper.GetYear should have comment or be unexported (golint)
    • Line 184: warning: exported method Fc2Scraper.GetFormatNumber should have comment or be unexported (golint)
    • pkg/metadata/emby.go
    • Line 10: warning: exported type EmbyMovie should have comment or be unexported (golint)
    • Line 30: warning: exported type EmbyMovieActor should have comment or be unexported (golint)
    • Line 33: warning: exported type EmbyMovieRatings should have comment or be unexported (golint)
    • Line 37: warning: exported type EmbyMovieRating should have comment or be unexported (golint)
    • Line 44: warning: exported method EmbyMovie.ToXML should have comment or be unexported (golint)
    • Line 53: warning: exported method EmbyMovie.Save should have comment or be unexported (golint)
    • Line 66: warning: exported method EmbyMovie.SetTitle should have comment or be unexported (golint)
    • pkg/client/decode.go
    • Line 13: warning: exported function ToUtf8Encoding should have comment or be unexported (golint)
    • Line 28: warning: exported function DetermineEncodingFromReader should have comment or be unexported (golint)
    • pkg/scraper/dmmapi_digital.go
    • Line 10: warning: exported type DMMApiDigitalScraper should have comment or be unexported (golint)
    • Line 14: warning: exported method DMMApiDigitalScraper.GetType should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method DMMApiDigitalScraper.FetchDoc should be of the form "FetchDoc ..." (golint)
    • pkg/scraper/mgstage.go
    • Line 19: warning: exported type MGStageScraper should have comment or be unexported (golint)
    • Line 23: warning: exported method MGStageScraper.GetType should have comment or be unexported (golint)
    • Line 27: warning: exported method MGStageScraper.FetchDoc should have comment or be unexported (golint)
    • Line 39: warning: exported method MGStageScraper.GetPlot should have comment or be unexported (golint)
    • Line 46: warning: exported method MGStageScraper.GetTitle should have comment or be unexported (golint)
    • Line 53: warning: exported method MGStageScraper.GetDirector should have comment or be unexported (golint)
    • Line 57: warning: exported method MGStageScraper.GetRuntime should have comment or be unexported (golint)
    • Line 64: warning: exported method MGStageScraper.GetTags should have comment or be unexported (golint)
    • Line 75: warning: exported method MGStageScraper.GetMaker should have comment or be unexported (golint)
    • Line 82: warning: exported method MGStageScraper.GetActors should have comment or be unexported (golint)
    • Line 97: warning: exported method MGStageScraper.GetLabel should have comment or be unexported (golint)
    • Line 104: warning: exported method MGStageScraper.GetNumber should have comment or be unexported (golint)
    • Line 111: warning: exported method MGStageScraper.GetCover should have comment or be unexported (golint)
    • Line 119: warning: exported method MGStageScraper.GetPremiered should have comment or be unexported (golint)
    • Line 127: warning: exported method MGStageScraper.GetYear should have comment or be unexported (golint)
    • Line 134: warning: exported method MGStageScraper.GetSeries should have comment or be unexported (golint)
    • Line 141: warning: exported method MGStageScraper.GetFormatNumber should have comment or be unexported (golint)
    • pkg/scraper/regexp.go
    • Line 13: warning: exported function GetQuery should have comment or be unexported (golint)
    • Line 57: warning: exported function GetLabelNumber should have comment or be unexported (golint)
    • main.go
    • Line 34: warning: exported function MyProgress should have comment or be unexported (golint)
    • Line 140: warning: exported function MoveFile should have comment or be unexported (golint)
    • pkg/scraper/dmmapi.go
    • Line 12: warning: exported type DMMApiScraper should have comment or be unexported (golint)
    • Line 17: warning: exported method DMMApiScraper.GetType should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method DMMApiScraper.FetchDoc should be of the form "FetchDoc ..." (golint)
    • Line 50: warning: exported method DMMApiScraper.GetPlot should have comment or be unexported (golint)
    • Line 54: warning: exported method DMMApiScraper.GetTitle should have comment or be unexported (golint)
    • Line 58: warning: exported method DMMApiScraper.GetDirector should have comment or be unexported (golint)
    • Line 65: warning: exported method DMMApiScraper.GetRuntime should have comment or be unexported (golint)
    • Line 69: warning: exported method DMMApiScraper.GetTags should have comment or be unexported (golint)
    • Line 76: warning: exported method DMMApiScraper.GetMaker should have comment or be unexported (golint)
    • Line 83: warning: exported method DMMApiScraper.GetActors should have comment or be unexported (golint)
    • Line 90: warning: exported method DMMApiScraper.GetLabel should have comment or be unexported (golint)
    • Line 97: warning: exported method DMMApiScraper.GetNumber should have comment or be unexported (golint)
    • Line 101: warning: exported method DMMApiScraper.GetFormatNumber should have comment or be unexported (golint)
    • Line 109: warning: exported method DMMApiScraper.GetCover should have comment or be unexported (golint)
    • Line 113: warning: exported method DMMApiScraper.GetPremiered should have comment or be unexported (golint)
    • Line 117: warning: exported method DMMApiScraper.GetYear should have comment or be unexported (golint)
    • Line 121: warning: exported method DMMApiScraper.GetSeries should have comment or be unexported (golint)
    • Line 128: warning: exported method DMMApiScraper.GetWebsite should have comment or be unexported (golint)
    • Line 132: warning: exported method DMMApiScraper.NeedCut should have comment or be unexported (golint)
    • pkg/scraper/fanza.go
    • Line 17: warning: exported type FanzaScraper should have comment or be unexported (golint)
    • Line 21: warning: exported method FanzaScraper.GetType should have comment or be unexported (golint)
    • Line 67: warning: exported method FanzaScraper.NeedCut should have comment or be unexported (golint)
    • pkg/scraper/heyzo.go
    • Line 13: warning: exported type HeyzoScraper should have comment or be unexported (golint)
    • Line 22: warning: exported method HeyzoScraper.GetType should have comment or be unexported (golint)
    • Line 26: warning: exported type HeyzoData should have comment or be unexported (golint)
    • Line 70: warning: exported method HeyzoScraper.FetchDoc should have comment or be unexported (golint)
    • Line 77: warning: exported method HeyzoScraper.GetPlot should have comment or be unexported (golint)
    • Line 85: warning: exported method HeyzoScraper.GetTitle should have comment or be unexported (golint)
    • Line 99: warning: exported method HeyzoScraper.GetDirector should have comment or be unexported (golint)
    • Line 103: warning: exported method HeyzoScraper.GetRuntime should have comment or be unexported (golint)
    • Line 107: warning: exported method HeyzoScraper.GetTags should have comment or be unexported (golint)
    • Line 117: warning: exported method HeyzoScraper.GetMaker should have comment or be unexported (golint)
    • Line 121: warning: exported method HeyzoScraper.GetActors should have comment or be unexported (golint)
    • Line 131: warning: exported method HeyzoScraper.GetLabel should have comment or be unexported (golint)
    • Line 135: warning: exported method HeyzoScraper.GetNumber should have comment or be unexported (golint)
    • Line 139: warning: exported method HeyzoScraper.GetFormatNumber should have comment or be unexported (golint)
    • Line 143: warning: exported method HeyzoScraper.GetCover should have comment or be unexported (golint)
    • Line 157: warning: exported method HeyzoScraper.GetPremiered should have comment or be unexported (golint)
    • Line 165: warning: exported method HeyzoScraper.GetYear should have comment or be unexported (golint)
    • Line 172: warning: exported method HeyzoScraper.GetSeries should have comment or be unexported (golint)
    • pkg/archive/archive.go
    • Line 3: warning: exported type AvailableResp should have comment or be unexported (golint)
    • Line 16: warning: exported const GetAvailableUrl should have comment (or a comment on this block) or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!