From 460aa32b7e026f0cedbbf6453857f9c24c622509 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 25 Jan 2016 21:05:08 +0800 Subject: [PATCH] fix #164 #165 --- fix.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fix.go b/fix.go index e5d2344..69d6584 100644 --- a/fix.go +++ b/fix.go @@ -102,6 +102,7 @@ var rules = []string{ ".UrlFor(", ".URLFor(", ".ServeJson(", ".ServeJSON(", ".ServeXml(", ".ServeXML(", + ".ServeJsonp(", ".ServeJSONP(", ".XsrfToken(", ".XSRFToken(", ".CheckXsrfCookie(", ".CheckXSRFCookie(", ".XsrfFormHtml(", ".XSRFFormHTML(", @@ -150,6 +151,7 @@ var rules = []string{ "orm.Debug_Queries", "orm.DebugQueries", "orm.COMMA_SPACE", "orm.CommaSpace", ".SendOut()", ".DoRequest()", + "validation.ValidationError", "validation.Error", } func fixFile(file string) error {