• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版13c03c47dccbba367d033cd4eb354bc614a9c567 (tree)
时间2019-11-29 00:16:20
作者HAOYUatHZ <haoyu@prot...>
CommiterHAOYUatHZ

Log Message

init too;

更改概述

差异

--- /dev/null
+++ b/dev_tools/check_critic.sh
@@ -0,0 +1,23 @@
1+#!/bin/sh
2+
3+FILE=$GOPATH/bin/gocritic
4+if [ -f $FILE ]; then
5+ :
6+else
7+ echo "go get -u github.com/go-critic/go-critic/..."
8+ go get -u github.com/go-critic/go-critic/...
9+fi
10+
11+# Not using `gocritic check-project` becoz it doesn't work good
12+# gocritic check-project ..
13+
14+# Use `gocritic check-package` instead
15+PACKAGES=$(go list ../... | grep -v '/vendor/' | grep '/application/' )
16+echo "$PACKAGES" > packages.log
17+while read -r package; do
18+ echo "checking package:" "$package"
19+ gocritic check "$package"
20+ echo "checked"
21+ echo ""
22+done < packages.log
23+rm packages.log
Show on old repository browser