Commit c2dded33 authored by liuyuhang's avatar liuyuhang

Update lint.txt

parent 4ae439c6
......@@ -53,8 +53,11 @@ var (
func (this *UpdateInitFileTask) genInitFile() error {}
改为:
func (up *UpdateInitFileTask) genInitFile() error {}
6、使用自加格式, 提示-----warning: should replace resp.Actual += 1 with resp.Actual++ (golint)
7、函数名、变量不使用带下划线(我们chain33利用加下划线实现了一些功能,因此这个暂时不需要改), 提示-----warning: don't use underscores in Go names; method ExecDelLocal_Transfer should be ExecDelLocalTransfer (golint)
8、实现接口方法,中前后形参要一致, 提示-----warning: receiver name store should be consistent with previous receiver name ws for walletStore (golint)
func (ws *walletStore) SetFeeAmount(FeeAmount int64) error {
....
......@@ -73,6 +76,7 @@ func (ws *walletStore) GetFeeAmount(minFee int64) int64 {
....
return FeeAmount
}
9、errors.New(fmt.Sprintf(...)) 这种格式替换为fmt.Errorf(...), 提示-----warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
index := strings.Index(context, this.ActionName)
if index < 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment