update fix

This commit is contained in:
astaxie 2016-01-18 11:33:52 +08:00
parent 08ff1c91ef
commit 46a9c4a390
2 changed files with 5 additions and 1 deletions

2
bee.go
View File

@ -25,7 +25,7 @@ import (
"strings"
)
const version = "1.4.0"
const version = "1.4.1"
type Command struct {
// Run runs the command.

4
fix.go
View File

@ -39,6 +39,9 @@ func runFix(cmd *Command, args []string) int {
if err != nil {
return err
}
if strings.HasSuffix(info.Name(), ".exe") {
return nil
}
ColorLog("%s\n", path)
err = fixFile(path)
if err != nil {
@ -146,6 +149,7 @@ var rules = []string{
"OperatorSql", "OperatorSQL",
"orm.Debug_Queries", "orm.DebugQueries",
"orm.COMMA_SPACE", "orm.CommaSpace",
".SendOut()", ".DoRequest()",
}
func fixFile(file string) error {