✨ 📝 完善功能,添加文档 #1
Annotations
8 errors and 10 warnings
Test on go 1.18 and ubuntu-latest:
cache.go#L32
[staticcheck] reported by reviewdog 🐶
error var CacheMissError should have name of the form ErrFoo
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"error var CacheMissError should have name of the form ErrFoo","code":{"value":"ST1012","url":"https://staticcheck.io/docs/checks#ST1012"},"location":{"path":"/home/runner/work/cacheit/cacheit/cache.go","range":{"start":{"line":32,"column":2}}},"severity":"ERROR"}
|
Test on go 1.18 and ubuntu-latest:
cache.go#L33
[staticcheck] reported by reviewdog 🐶
error var CacheExistedError should have name of the form ErrFoo
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"error var CacheExistedError should have name of the form ErrFoo","code":{"value":"ST1012","url":"https://staticcheck.io/docs/checks#ST1012"},"location":{"path":"/home/runner/work/cacheit/cacheit/cache.go","range":{"start":{"line":33,"column":2}}},"severity":"ERROR"}
|
Test on go 1.18 and ubuntu-latest:
cache_test.go#L124
[staticcheck] reported by reviewdog 🐶
this value of err is never used
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"this value of err is never used","code":{"value":"SA4006","url":"https://staticcheck.io/docs/checks#SA4006"},"location":{"path":"/home/runner/work/cacheit/cacheit/cache_test.go","range":{"start":{"line":124,"column":3}}},"severity":"ERROR"}
|
Test on go 1.18 and ubuntu-latest:
cache_test.go#L127
[staticcheck] reported by reviewdog 🐶
this value of err is never used
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"this value of err is never used","code":{"value":"SA4006","url":"https://staticcheck.io/docs/checks#SA4006"},"location":{"path":"/home/runner/work/cacheit/cacheit/cache_test.go","range":{"start":{"line":127,"column":3}}},"severity":"ERROR"}
|
Test on go 1.18 and ubuntu-latest:
cache_test.go#L158
[staticcheck] reported by reviewdog 🐶
this value of err is never used
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"this value of err is never used","code":{"value":"SA4006","url":"https://staticcheck.io/docs/checks#SA4006"},"location":{"path":"/home/runner/work/cacheit/cacheit/cache_test.go","range":{"start":{"line":158,"column":3}}},"severity":"ERROR"}
|
Test on go 1.18 and ubuntu-latest
Process completed with exit code 1.
|
Test on go 1.20 and ubuntu-latest
The job was canceled because "ubuntu-latest_1_18" failed.
|
Test on go 1.20 and ubuntu-latest
The operation was canceled.
|
Test on go 1.18 and ubuntu-latest:
serialize.go#L7
exported type Serializer should have comment or be unexported
|
Test on go 1.18 and ubuntu-latest:
serialize.go#L12
exported type JSONSerializer should have comment or be unexported
|
Test on go 1.18 and ubuntu-latest:
cache.go#L32
error var CacheMissError should have name of the form ErrFoo
|
Test on go 1.18 and ubuntu-latest:
serialize.go#L14
comment on exported method JSONSerializer.Serialize should be of the form "Serialize ..."
|
Test on go 1.18 and ubuntu-latest:
go_cache.go#L13
exported type GoCacheDriver should have comment or be unexported
|
Test on go 1.18 and ubuntu-latest:
cache.go#L1
should have a package comment
|
Test on go 1.18 and ubuntu-latest:
cache.go#L33
error var CacheExistedError should have name of the form ErrFoo
|
Test on go 1.18 and ubuntu-latest:
serialize.go#L26
comment on exported method JSONSerializer.UnSerialize should be of the form "UnSerialize ..."
|
Test on go 1.18 and ubuntu-latest:
go_cache.go#L17
exported method GoCacheDriver.Set should have comment or be unexported
|
Test on go 1.18 and ubuntu-latest:
cache.go#L13
exported type DriverType should have comment or be unexported
|