fzxiao233/Vtb_Record

View on GitHub

Showing 140 of 140 total issues

exported function StartMonitor should have comment or be unexported
Open

func StartMonitor(mon base.VideoMonitor, usersConfig config.UsersConfig, pm videoworker.PluginManager) {
Severity: Minor
Found in live/wrapper.go by golint

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 HttpPost should have comment or be unexported
Open

func HttpPost(client *http.Client, url string, header map[string]string, data []byte) ([]byte, error) {
Severity: Minor
Found in utils/utils.go by golint

func HttpPost should be HTTPPost
Open

func HttpPost(client *http.Client, url string, header map[string]string, data []byte) ([]byte, error) {
Severity: Minor
Found in utils/utils.go by golint

struct field HttpHeaders should be HTTPHeaders
Open

    HttpHeaders map[string]string
Severity: Minor
Found in live/monitor/base/monitorbase.go by golint

method parameter channelId should be channelID
Open

func (y *Youtube) getVideoInfo(ctx *base.MonitorCtx, baseHost string, channelId string) error {
Severity: Minor
Found in live/monitor/youtube/youtube.go by golint

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

    } else {
Severity: Minor
Found in live/monitor/youtube/youtube.go by golint

exported method ProcessVideo.StartProcessVideo should have comment or be unexported
Open

func (p *ProcessVideo) StartProcessVideo() {
Severity: Minor
Found in live/videoworker/videoProcesser.go by golint

exported function HttpGet should have comment or be unexported
Open

func HttpGet(client *http.Client, url string, header map[string]string) ([]byte, error) {
Severity: Minor
Found in utils/utils.go by golint

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

func (m *Mock) CheckLive(usersConfig config.UsersConfig) bool {
Severity: Minor
Found in live/monitor/base/mock.go by golint

if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
Open

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

method HttpGet should be HTTPGet
Open

func (c *MonitorCtx) HttpGet(url string, header map[string]string) ([]byte, error) {
Severity: Minor
Found in live/monitor/base/monitorbase.go by golint

should not use dot imports
Open

    . "github.com/fzxiao233/Vtb_Record/utils"
Severity: Minor
Found in live/monitor/bilibili/bilibili.go by golint

exported type LiveStatus should have comment or be unexported
Open

type LiveStatus struct {
Severity: Minor
Found in live/interfaces/interface.go by golint

exported type Bilibili should have comment or be unexported
Open

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

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

    } else {
Severity: Minor
Found in live/monitor/base/monitorbase.go by golint

exported method Bilibili.CreateVideo should have comment or be unexported
Open

func (b *Bilibili) CreateVideo(usersConfig config.UsersConfig) *interfaces.VideoInfo {
Severity: Minor
Found in live/monitor/bilibili/bilibili.go by golint

exported method BilibiliPoller.GetStatus should have comment or be unexported
Open

func (b *BilibiliPoller) GetStatus() error {
Severity: Minor
Found in live/monitor/bilibili/bilibili.go by golint

exported type VideoMonitor should have comment or be unexported
Open

type VideoMonitor = base.VideoMonitor
Severity: Minor
Found in live/monitor/monitorUtils.go by golint

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

func (b *Bilibili) CheckLive(usersConfig config.UsersConfig) bool {
Severity: Minor
Found in live/monitor/bilibili/bilibili.go by golint
Severity
Category
Status
Source
Language