wechaty/go-wechaty

View on GitHub
wechaty-puppet/file-box/type.go

Summary

Maintainability
A
0 mins
Test Coverage

Your code does not pass gofmt in 2 places. Go fmt your code!
Open

package file_box
Severity: Minor
Found in wechaty-puppet/file-box/type.go by gofmt

exported const FileBoxTypeUnknown should have comment (or a comment on this block) or be unexported
Open

    FileBoxTypeUnknown FileBoxType = 0
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

const FileBoxTypeUrl should be FileBoxTypeURL
Open

    FileBoxTypeUrl    = 2
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

comment on exported const FileBoxTypeBuffer should be of the form "FileBoxTypeBuffer ..."
Open

    // Deprecated: use filebox package
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

comment on exported const FileBoxTypeQRCode should be of the form "FileBoxTypeQRCode ..."
Open

    // Deprecated: use filebox package
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

comment on exported const FileBoxTypeUrl should be of the form "FileBoxTypeUrl ..."
Open

    // Deprecated: use filebox package
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

don't use an underscore in package name
Open

package file_box
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

comment on exported const FileBoxTypeFile should be of the form "FileBoxTypeFile ..."
Open

    // Deprecated: use filebox package
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

type FileBoxOptionsUrl should be FileBoxOptionsURL
Open

type FileBoxOptionsUrl struct {
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

comment on exported type FileBoxType should be of the form "FileBoxType ..." (with optional leading article)
Open

//go:generate stringer -type=FileBoxType
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

comment on exported const FileBoxTypeStream should be of the form "FileBoxTypeStream ..."
Open

    // Deprecated: use filebox package
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

struct field RemoteUrl should be RemoteURL
Open

    RemoteUrl string      `json:"remoteUrl"`
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

comment on exported const FileBoxTypeBase64 should be of the form "FileBoxTypeBase64 ..."
Open

    // Deprecated: use filebox package
Severity: Minor
Found in wechaty-puppet/file-box/type.go by golint

There are no issues that match your filters.

Category
Status