fzxiao233/Vtb_Record

View on GitHub

Showing 140 of 140 total issues

comment on exported function CreateMonitorCtx should be of the form "CreateMonitorCtx ..."
Open

// monitorCtx contains mod's extraConfig and its own http client
Severity: Minor
Found in live/monitor/base/monitorbase.go by golint

exported type Downloader should have comment or be unexported
Open

type Downloader struct {

exported type BilibiliPoller should have comment or be unexported
Open

type BilibiliPoller struct {
Severity: Minor
Found in live/monitor/bilibili/bilibili.go by golint

don't use underscores in Go names; range var mod_i should be modI
Open

        for mod_i, module := range mods {
Severity: Minor
Found in main.go by golint

comment on exported function CreateVideoMonitor should be of the form "CreateVideoMonitor ..."
Open

// Monitor is responsible for checking if live starts & live's title/link changed
Severity: Minor
Found in live/monitor/monitorUtils.go by golint

exported type Youtube should have comment or be unexported
Open

type Youtube struct {
Severity: Minor
Found in live/monitor/youtube/youtube.go by golint

var JsonMsg should be JSONMsg
Open

    JsonMsg, _ := json.Marshal(msg)
Severity: Minor
Found in live/plugins/cqBot.go by golint

exported function GetDownloader should have comment or be unexported
Open

func GetDownloader(providerName string) *Downloader {

if block ends with a return statement, so drop this else and outdent its block
Open

        } else {
Severity: Minor
Found in utils/utils.go by golint

exported function AddSuffix should have comment or be unexported
Open

func AddSuffix(aFilepath string, suffix string) string {
Severity: Minor
Found in utils/utils.go by golint

exported function GetTimeNow should have comment or be unexported
Open

func GetTimeNow() string {
Severity: Minor
Found in utils/utils.go by golint

exported type HeadersConfig should have comment or be unexported
Open

type HeadersConfig struct {
Severity: Minor
Found in live/monitor/base/monitorbase.go by golint

exported type VideoMonitor should have comment or be unexported
Open

type VideoMonitor interface {
Severity: Minor
Found in live/monitor/base/monitorbase.go by golint

comment on exported function GetCleanVideoInfo should be of the form "GetCleanVideoInfo ..."
Open

// sanitize everything in the videoinfo for downloader & plugins
Severity: Minor
Found in live/monitor/monitorUtils.go by golint

exported method Youtube.CheckLive should have comment or be unexported
Open

func (y *Youtube) CheckLive(usersConfig config.UsersConfig) bool {
Severity: Minor
Found in live/monitor/youtube/youtube.go by golint

exported type PluginCQBot should have comment or be unexported
Open

type PluginCQBot struct {
Severity: Minor
Found in live/plugins/cqBot.go by golint

range var GroupId should be GroupID
Open

    for _, GroupId := range config.QQGroupID {
Severity: Minor
Found in live/plugins/cqBot.go by golint

exported method DownloaderStreamlink.StartDownload should have comment or be unexported
Open

func (d *DownloaderStreamlink) StartDownload(video *interfaces.VideoInfo, proxy string, cookie string, filepath string) error {

exported type PluginCallback should have comment or be unexported
Open

type PluginCallback interface {
Severity: Minor
Found in live/videoworker/plugin_manager.go by golint

exported function IsFileExist should have comment or be unexported
Open

func IsFileExist(aFilepath string) bool {
Severity: Minor
Found in utils/utils.go by golint
Severity
Category
Status
Source
Language