mirror of
https://github.com/beego/bee.git
synced 2024-12-22 15:10:49 +00:00
update fix
This commit is contained in:
parent
08ff1c91ef
commit
46a9c4a390
2
bee.go
2
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.
|
||||
|
4
fix.go
4
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user