From 46a9c4a39051d1e574171e9bee9889922f8e0d8b Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 18 Jan 2016 11:33:52 +0800 Subject: [PATCH] update fix --- bee.go | 2 +- fix.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bee.go b/bee.go index 17efccf..11f2352 100644 --- a/bee.go +++ b/bee.go @@ -25,7 +25,7 @@ import ( "strings" ) -const version = "1.4.0" +const version = "1.4.1" type Command struct { // Run runs the command. diff --git a/fix.go b/fix.go index 5500563..e5d2344 100644 --- a/fix.go +++ b/fix.go @@ -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 {