mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +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"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "1.4.0"
|
const version = "1.4.1"
|
||||||
|
|
||||||
type Command struct {
|
type Command struct {
|
||||||
// Run runs the command.
|
// Run runs the command.
|
||||||
|
4
fix.go
4
fix.go
@ -39,6 +39,9 @@ func runFix(cmd *Command, args []string) int {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if strings.HasSuffix(info.Name(), ".exe") {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
ColorLog("%s\n", path)
|
ColorLog("%s\n", path)
|
||||||
err = fixFile(path)
|
err = fixFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -146,6 +149,7 @@ var rules = []string{
|
|||||||
"OperatorSql", "OperatorSQL",
|
"OperatorSql", "OperatorSQL",
|
||||||
"orm.Debug_Queries", "orm.DebugQueries",
|
"orm.Debug_Queries", "orm.DebugQueries",
|
||||||
"orm.COMMA_SPACE", "orm.CommaSpace",
|
"orm.COMMA_SPACE", "orm.CommaSpace",
|
||||||
|
".SendOut()", ".DoRequest()",
|
||||||
}
|
}
|
||||||
|
|
||||||
func fixFile(file string) error {
|
func fixFile(file string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user