Preparing report...

Report for github.com/baidu/bfe

A    Great!    Found 454 issues across 488 files

Tweet

gofmt97%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo92%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • bfe/bfe_tls/handshake_client.go
    • Line 226: warning: cyclomatic complexity 51 of function (*clientHandshakeState).doFullHandshake() is high (> 15) (gocyclo)
    • Line 46: warning: cyclomatic complexity 40 of function (*Conn).clientHandshake() is high (> 15) (gocyclo)
    • bfe/bfe_tls/key_agreement.go
    • Line 327: warning: cyclomatic complexity 22 of function (*ecdheKeyAgreement).processServerKeyExchange() is high (> 15) (gocyclo)
    • Line 216: warning: cyclomatic complexity 19 of function (*ecdheKeyAgreement).generateServerKeyExchange() is high (> 15) (gocyclo)
    • bfe/bfe_http/transport.go
    • Line 781: warning: cyclomatic complexity 31 of function (*persistConn).readLoop() is high (> 15) (gocyclo)
    • Line 532: warning: cyclomatic complexity 19 of function (*Transport).dialConn() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 18 of function useProxy() is high (> 15) (gocyclo)
    • bfe/bfe_http2/server.go
    • Line 2289: warning: cyclomatic complexity 30 of function (*responseWriterState).writeChunk() is high (> 15) (gocyclo)
    • Line 1886: warning: cyclomatic complexity 26 of function (*serverConn).newWriterAndRequest() is high (> 15) (gocyclo)
    • Line 1568: warning: cyclomatic complexity 18 of function (*serverConn).processData() is high (> 15) (gocyclo)
    • Line 831: warning: cyclomatic complexity 17 of function (*serverConn).serve() is high (> 15) (gocyclo)
    • bfe/bfe_http/transfer.go
    • Line 276: warning: cyclomatic complexity 25 of function readTransfer() is high (> 15) (gocyclo)
    • Line 52: warning: cyclomatic complexity 19 of function newTransferWriter() is high (> 15) (gocyclo)
    • bfe/bfe_tls/handshake_messages.go
    • Line 338: warning: cyclomatic complexity 51 of function (*clientHelloMsg).unmarshal() is high (> 15) (gocyclo)
    • Line 110: warning: cyclomatic complexity 30 of function (*clientHelloMsg).marshal() is high (> 15) (gocyclo)
    • Line 676: warning: cyclomatic complexity 26 of function (*serverHelloMsg).unmarshal() is high (> 15) (gocyclo)
    • Line 560: warning: cyclomatic complexity 18 of function (*serverHelloMsg).marshal() is high (> 15) (gocyclo)
    • Line 47: warning: cyclomatic complexity 17 of function (*clientHelloMsg).equal() is high (> 15) (gocyclo)
    • Line 1215: warning: cyclomatic complexity 16 of function (*certificateRequestMsg).unmarshal() is high (> 15) (gocyclo)
    • bfe/bfe_server/reverseproxy.go
    • Line 568: warning: cyclomatic complexity 34 of function (*ReverseProxy).ServeHTTP() is high (> 15) (gocyclo)
    • Line 246: warning: cyclomatic complexity 22 of function (*ReverseProxy).clusterInvoke() is high (> 15) (gocyclo)
    • bfe/bfe_tls/conn.go
    • Line 733: warning: cyclomatic complexity 44 of function (*Conn).readRecord() is high (> 15) (gocyclo)
    • Line 1045: warning: cyclomatic complexity 22 of function (*Conn).readHandshake() is high (> 15) (gocyclo)
    • Line 316: warning: cyclomatic complexity 19 of function (*halfConn).decrypt() is high (> 15) (gocyclo)
    • Line 1157: warning: cyclomatic complexity 18 of function (*Conn).Read() is high (> 15) (gocyclo)
    • Line 640: warning: cyclomatic complexity 17 of function convertSSLv2ClientHello() is high (> 15) (gocyclo)
    • Line 950: warning: cyclomatic complexity 16 of function (*Conn).writeRecord() is high (> 15) (gocyclo)
    • bfe/bfe_tls/handshake_server.go
    • Line 153: warning: cyclomatic complexity 49 of function (*serverHandshakeState).readClientHello() is high (> 15) (gocyclo)
    • Line 580: warning: cyclomatic complexity 35 of function (*serverHandshakeState).doFullHandshake() is high (> 15) (gocyclo)
    • Line 465: warning: cyclomatic complexity 24 of function (*serverHandshakeState).checkForResumption() is high (> 15) (gocyclo)
    • Line 951: warning: cyclomatic complexity 17 of function (*Conn).tryCipherSuite() is high (> 15) (gocyclo)
    • Line 56: warning: cyclomatic complexity 17 of function (*Conn).serverHandshake() is high (> 15) (gocyclo)
    • bfe/bfe_bufio/bufio_test.go
    • Line 520: warning: cyclomatic complexity 29 of function TestPeek() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 16 of function TestUnreadRuneError() is high (> 15) (gocyclo)
    • bfe/bfe_http/cookie.go
    • Line 135: warning: cyclomatic complexity 28 of function readSetCookies() is high (> 15) (gocyclo)
    • Line 368: warning: cyclomatic complexity 21 of function isCookieDomainName() is high (> 15) (gocyclo)

golint7%

Golint is a linter for Go source code.

    • bfe/bfe_tls/conn.go
    • Line 21: warning: don't use an underscore in package name (golint)
    • Line 36: warning: exported type ConnParam should have comment or be unexported (golint)
    • Line 139: warning: exported method Conn.SetConnParam should have comment or be unexported (golint)
    • Line 782: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bfe/bfe_basic/request.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type BackendInfo should have comment or be unexported (golint)
    • Line 37: warning: exported type RedirectInfo should have comment or be unexported (golint)
    • Line 43: warning: exported type RequestRoute should have comment or be unexported (golint)
    • Line 50: warning: exported type RequestTags should have comment or be unexported (golint)
    • Line 55: warning: exported type RequestTransport should have comment or be unexported (golint)
    • Line 126: warning: exported method Request.CachedQuery should have comment or be unexported (golint)
    • Line 134: warning: exported method Request.CachedCookie should have comment or be unexported (golint)
    • Line 144: warning: exported method Request.Cookie should have comment or be unexported (golint)
    • Line 151: warning: exported method Request.SetRequestTransport should have comment or be unexported (golint)
    • Line 157: warning: exported method Request.Protocol should have comment or be unexported (golint)
    • Line 164: warning: exported method Request.AddTags should have comment or be unexported (golint)
    • Line 174: warning: exported method Request.GetTags should have comment or be unexported (golint)
    • Line 178: warning: exported method Request.SetContext should have comment or be unexported (golint)
    • Line 182: warning: exported method Request.GetContext should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_trace/conf_mod_trace.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 46: warning: exported type ConfModTrace should have comment or be unexported (golint)
    • Line 62: warning: exported function ConfLoad should have comment or be unexported (golint)
    • Line 79: warning: exported method ConfModTrace.Check should have comment or be unexported (golint)
    • Line 97: warning: exported method ConfModTrace.GetTraceConfig should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_header/mod_header.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 35: warning: exported const ReqHeader should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported const GlobalProduct should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type ModuleHeader should have comment or be unexported (golint)
    • Line 55: warning: exported function NewModuleHeader should have comment or be unexported (golint)
    • Line 62: warning: exported method ModuleHeader.Name should have comment or be unexported (golint)
    • Line 86: warning: exported function DoHeader should have comment or be unexported (golint)
    • Line 160: warning: exported method ModuleHeader.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_redirect/mod_redirect.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 38: warning: exported type ModuleRedirect should have comment or be unexported (golint)
    • Line 44: warning: exported function NewModuleRedirect should have comment or be unexported (golint)
    • Line 51: warning: exported method ModuleRedirect.Name should have comment or be unexported (golint)
    • Line 129: warning: exported method ModuleRedirect.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_tag/conf_mod_tag.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported type ConfModTag should have comment or be unexported (golint)
    • Line 43: warning: exported function ConfLoad should have comment or be unexported (golint)
    • Line 60: warning: exported method ConfModTag.Check should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_trace/trace_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 25: warning: exported type TraceRuleTable should have comment or be unexported (golint)
    • Line 31: warning: exported type TraceRule should have comment or be unexported (golint)
    • Line 36: warning: exported type ProductRuleList should have comment or be unexported (golint)
    • Line 37: warning: exported type TraceRuleList should have comment or be unexported (golint)
    • Line 39: warning: exported function NewTraceRuleTable should have comment or be unexported (golint)
    • Line 45: warning: exported method TraceRuleTable.Update should have comment or be unexported (golint)
    • Line 52: warning: exported method TraceRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_route_conf/route_rule_conf/route_table_load.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 36: warning: exported type RouteRuleFile should have comment or be unexported (golint)
    • Line 43: warning: exported type RouteRuleFiles should have comment or be unexported (golint)
    • Line 47: warning: exported type ProductRouteRuleFile should have comment or be unexported (golint)
    • Line 49: warning: exported type RouteTableFile should have comment or be unexported (golint)
    • Line 54: warning: exported type RouteTableConf should have comment or be unexported (golint)
    • Line 99: warning: exported method RouteTableConf.LoadAndCheck should have comment or be unexported (golint)
    • bfe/bfe_http/transfer.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 321: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 468: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bfe/bfe_util/net_util/acl_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 32: warning: exported const ACL_NOT_FOUND should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type AclTable should have comment or be unexported (golint)
    • Line 41: warning: exported function NewAclTable should have comment or be unexported (golint)
    • Line 47: warning: exported method AclTable.GetAclName should have comment or be unexported (golint)
    • Line 60: warning: exported method AclTable.LoadFromFile should have comment or be unexported (golint)
    • bfe/bfe_http2/errors.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 30: warning: exported const ErrCodeNo should have comment (or a comment on this block) or be unexported (golint)
    • bfe/bfe_modules/mod_block/action.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 22: warning: exported type ActionFile should have comment or be unexported (golint)
    • Line 27: warning: exported type Action should have comment or be unexported (golint)
    • Line 32: warning: exported function ActionFileCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_request/auth_request_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 27: warning: comment on exported type AuthRequestRuleFile should be of the form "AuthRequestRuleFile ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported type AuthRequestRuleConf should be of the form "AuthRequestRuleConf ..." (with optional leading article) (golint)
    • Line 39: warning: exported type AuthRequestRuleRaw should have comment or be unexported (golint)
    • Line 44: warning: exported type ProductRuleRawList should have comment or be unexported (golint)
    • Line 45: warning: exported type RuleRawList should have comment or be unexported (golint)
    • Line 47: warning: exported function AuthRequestRuleCheck should have comment or be unexported (golint)
    • Line 90: warning: exported function AuthRequestRuleFileLoad should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_geo/mod_geo.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 40: warning: exported const ModGeo should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported var CtxCountryIsoCode should have comment or be unexported (golint)
    • Line 57: warning: exported type ModuleGeoIdState should have comment or be unexported (golint)
    • Line 62: warning: exported type ModuleGeo should have comment or be unexported (golint)
    • Line 73: warning: exported function NewModuleGeo should have comment or be unexported (golint)
    • Line 80: warning: exported method ModuleGeo.Name should have comment or be unexported (golint)
    • Line 177: warning: exported method ModuleGeo.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_doh/dns_fetcher.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 31: warning: exported type DnsFetcher should have comment or be unexported (golint)
    • Line 35: warning: exported type DnsClient should have comment or be unexported (golint)
    • Line 41: warning: exported function NewDnsClient should have comment or be unexported (golint)
    • Line 72: warning: exported method DnsClient.Fetch should have comment or be unexported (golint)
    • bfe/bfe_util/file.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 75: warning: comment on exported function CheckStaticFile should be of the form "CheckStaticFile ..." (golint)
    • bfe/bfe_modules/mod_static/static_rule_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type StaticRuleTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewStaticRuleTable should have comment or be unexported (golint)
    • Line 33: warning: exported method StaticRuleTable.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method StaticRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_header/action_header_var.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 34: warning: exported type HeaderValueHandler should have comment or be unexported (golint)
    • Line 37: warning: exported const Unknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported var VariableHandlers should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_conf/conf_https_basic.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported var TlsVersionMap should have comment or be unexported (golint)
    • Line 40: warning: exported var CurvesMap should have comment or be unexported (golint)
    • Line 46: warning: exported var CipherSuitesMap should have comment or be unexported (golint)
    • Line 65: warning: exported const EquivCipherSep should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported type ConfigHttpsBasic should have comment or be unexported (golint)
    • Line 94: warning: exported method ConfigHttpsBasic.Check should have comment or be unexported (golint)
    • Line 250: warning: exported function GetCurvePreferences should have comment or be unexported (golint)
    • Line 262: warning: exported function GetCipherSuites should have comment or be unexported (golint)
    • Line 281: warning: exported function GetTlsVersion should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_waf/waf_rule/rule_bash_cmd.go
    • Line 68: warning: don't use an underscore in package name (golint)
    • Line 72: warning: exported type RuleBashCmdExe should have comment or be unexported (golint)
    • Line 75: warning: exported function NewRuleBashCmdExe should have comment or be unexported (golint)
    • Line 80: warning: exported method RuleBashCmdExe.Init should have comment or be unexported (golint)
    • Line 84: warning: exported method RuleBashCmdExe.Check should have comment or be unexported (golint)
    • Line 88: warning: exported method RuleBashCmdExe.CheckString should have comment or be unexported (golint)
    • bfe/bfe_stream/server_tester.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported type ServerTester should have comment or be unexported (golint)
    • Line 46: warning: exported function NewServerTester should have comment or be unexported (golint)
    • Line 101: warning: comment on exported method ServerTester.WantData should be of the form "WantData ..." (golint)
    • Line 113: warning: comment on exported method ServerTester.WantError should be of the form "WantError ..." (golint)
    • Line 124: warning: exported method ServerTester.Close should have comment or be unexported (golint)
    • bfe/bfe_http/state.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 23: warning: exported type HttpState should have comment or be unexported (golint)
    • Line 37: warning: exported function GetHttpState should have comment or be unexported (golint)
    • bfe/bfe_spdy/frame_types.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 40: warning: exported const TypeSynStream should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported const ControlFlagFin should have comment (or a comment on this block) or be unexported (golint)
    • Line 63: warning: exported const DataFlagFin should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: exported const MinMaxFrameSize should have comment or be unexported (golint)
    • Line 70: warning: exported const MaxFrameSize should have comment or be unexported (golint)
    • Line 72: warning: exported const MaxNumSettings should have comment or be unexported (golint)
    • Line 73: warning: exported const MaxNumHeaders should have comment or be unexported (golint)
    • Line 113: warning: exported method SynStreamFrame.StreamEnded should have comment or be unexported (golint)
    • Line 124: warning: exported method SynReplyFrame.StreamEnded should have comment or be unexported (golint)
    • Line 132: warning: exported const ProtocolError should have comment (or a comment on this block) or be unexported (golint)
    • Line 157: warning: exported const FlagSettingsPersistValue should have comment (or a comment on this block) or be unexported (golint)
    • Line 165: warning: exported const SettingsUploadBandwidth should have comment (or a comment on this block) or be unexported (golint)
    • Line 200: warning: exported const GoAwayOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 237: warning: exported method DataFrame.StreamEnded should have comment or be unexported (golint)
    • Line 259: warning: exported const UnlowercasedHeaderName should have comment (or a comment on this block) or be unexported (golint)
    • Line 347: warning: exported method Framer.ReleaseWriter should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_header/conf_mod_header.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConfModHeader should have comment or be unexported (golint)
    • Line 37: warning: exported function ConfLoad should have comment or be unexported (golint)
    • Line 56: warning: exported method ConfModHeader.Check should have comment or be unexported (golint)
    • bfe/bfe_tls/cipher_suites.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 138: warning: exported function CheckSuiteECDHE should have comment or be unexported (golint)
    • Line 166: warning: exported function CheckSuitePseudo should have comment or be unexported (golint)
    • Line 510: warning: exported function CipherSuiteText should have comment or be unexported (golint)
    • Line 537: warning: exported function CipherSuiteTextForOpenSSL should have comment or be unexported (golint)
    • Line 544: warning: exported type CipherFilter should have comment or be unexported (golint)
    • Line 546: warning: exported function FilterCiphers should have comment or be unexported (golint)
    • bfe/bfe_spdy/request_body.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type RequestBody should have comment or be unexported (golint)
    • Line 52: warning: exported method RequestBody.Close should have comment or be unexported (golint)
    • bfe/bfe_module/bfe_callback.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 44: warning: exported function CallbackPointName should have comment or be unexported (golint)
    • Line 69: warning: exported type BfeCallbacks should have comment or be unexported (golint)
    • bfe/bfe_server/bufio_cache.go
    • Line 21: warning: don't use an underscore in package name (golint)
    • Line 57: warning: exported type BufioCache should have comment or be unexported (golint)
    • Line 60: warning: exported function NewBufioCache should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_trust_clientip/mod_trust_clientip.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 39: warning: exported const ModTrustClientIP should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type ModuleTrustClientIPState should have comment or be unexported (golint)
    • Line 53: warning: exported type ModuleTrustClientIP should have comment or be unexported (golint)
    • Line 61: warning: exported function NewModuleTrustClientIP should have comment or be unexported (golint)
    • Line 69: warning: exported method ModuleTrustClientIP.Name should have comment or be unexported (golint)
    • Line 191: warning: exported method ModuleTrustClientIP.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_static/conf_mod_static.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConfModStatic should have comment or be unexported (golint)
    • Line 38: warning: exported function ConfLoad should have comment or be unexported (golint)
    • Line 55: warning: exported method ConfModStatic.Check should have comment or be unexported (golint)
    • bfe/bfe_basic/condition/parser/token.go
    • Line 19: warning: exported type Token should have comment or be unexported (golint)
    • Line 93: warning: exported method Token.Symbol should have comment or be unexported (golint)
    • Line 101: warning: exported function Lookup should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_doh/dns_msg_convert.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 35: warning: exported const DnsMessage should have comment or be unexported (golint)
    • Line 105: warning: exported function RequestToDnsMsg should have comment or be unexported (golint)
    • Line 143: warning: exported function DnsMsgToResponse should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_prison/data_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported type AccessSignConf should have comment or be unexported (golint)
    • Line 42: warning: exported type PrisonRuleConf should have comment or be unexported (golint)
    • Line 54: warning: exported type PrisonRuleConfList should have comment or be unexported (golint)
    • Line 56: warning: exported type ProductRuleConf should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_compress/conf_mod_compress.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConfModCompress should have comment or be unexported (golint)
    • Line 36: warning: exported method ConfModCompress.Check should have comment or be unexported (golint)
    • Line 47: warning: exported function ConfLoad should have comment or be unexported (golint)
    • bfe/bfe_util/pipe/pipe.go
    • Line 42: warning: exported type PipeBuffer should have comment or be unexported (golint)
    • Line 175: warning: exported function NewPipeWithSize should have comment or be unexported (golint)
    • Line 181: warning: exported function NewPipeFromBufferPool should have comment or be unexported (golint)
    • Line 187: warning: comment on exported method Pipe.Release should be of the form "Release ..." (golint)
    • bfe/bfe_server/proxy_state.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 23: warning: exported type ProxyState should have comment or be unexported (golint)
    • Line 123: warning: exported method ProxyState.ClientConnServedInc should have comment or be unexported (golint)
    • Line 143: warning: exported method ProxyState.ClientConnActiveInc should have comment or be unexported (golint)
    • Line 163: warning: exported method ProxyState.ClientConnActiveDec should have comment or be unexported (golint)
    • Line 183: warning: exported method ProxyState.ClientReqServedInc should have comment or be unexported (golint)
    • Line 197: warning: exported method ProxyState.ClientReqActiveInc should have comment or be unexported (golint)
    • Line 211: warning: exported method ProxyState.ClientReqActiveDec should have comment or be unexported (golint)
    • bfe/bfe_http2/server.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 257: warning: exported function SetConnTimeout should have comment or be unexported (golint)
    • Line 272: warning: exported function SetReadStreamTimeout should have comment or be unexported (golint)
    • Line 276: warning: exported function SetWriteStreamTimeout should have comment or be unexported (golint)
    • Line 1969: warning: don't use underscores in Go names; var url_ should be url (golint)
    • Line 2177: warning: exported type RequestBody should have comment or be unexported (golint)
    • Line 2185: warning: exported method RequestBody.Close should have comment or be unexported (golint)
    • Line 2589: warning: exported function DisableConnHeaderCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_markdown/md_rule_table.go
    • Line 1: warning: package comment should be of the form "Package mod_markdown ..." (golint)
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 20: warning: exported type MarkdownRuleTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewMarkdownRuleTable should have comment or be unexported (golint)
    • Line 33: warning: exported method MarkdownRuleTable.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method MarkdownRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_access/log_items.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported const FormatAllServeTime should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: exported const Request should have comment (or a comment on this block) or be unexported (golint)
    • Line 81: warning: exported type LogFmtItem should have comment or be unexported (golint)
    • bfe/bfe_http/cookie.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 58: warning: exported type CookieMap should have comment or be unexported (golint)
    • Line 69: warning: exported const SameSiteDefaultMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported function SetDisableSanitize should have comment or be unexported (golint)
    • Line 98: warning: exported method CookieMap.Get should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_compress/compress_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 41: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 42: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 141: warning: exported function ProductRuleConfLoad should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_redirect/redirect_conf_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported type RedirectRuleFile should have comment or be unexported (golint)
    • Line 34: warning: exported type RedirectRule should have comment or be unexported (golint)
    • Line 40: warning: exported type RuleFileList should have comment or be unexported (golint)
    • Line 41: warning: exported type RuleList should have comment or be unexported (golint)
    • Line 43: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 44: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 46: warning: exported type RedirectConfFile should have comment or be unexported (golint)
    • Line 82: warning: exported function RuleListCheck should have comment or be unexported (golint)
    • Line 93: warning: exported function ProductRulesCheck should have comment or be unexported (golint)
    • Line 108: warning: exported function RedirectConfCheck should have comment or be unexported (golint)
    • bfe/bfe_bufio/bufio.go
    • Line 22: warning: don't use an underscore in package name (golint)
    • Line 40: warning: exported var ErrInvalidUnreadByte should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_key_log/mod_key_log.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 50: warning: exported function NewModuleKeyLog should have comment or be unexported (golint)
    • Line 57: warning: exported method ModuleKeyLog.Name should have comment or be unexported (golint)
    • Line 101: warning: exported method ModuleKeyLog.Init should have comment or be unexported (golint)
    • bfe/bfe_proxy/version_cmd.go
    • Line 29: warning: don't use an underscore in package name (golint)
    • Line 35: warning: exported const LOCAL should have comment (or a comment on this block) or be unexported (golint)
    • bfe/bfe_spdy/spdy.go
    • Line 23: warning: don't use an underscore in package name (golint)
    • Line 37: warning: exported var VerboseLogs should have comment or be unexported (golint)
    • Line 90: warning: exported const ConnTag should have comment (or a comment on this block) or be unexported (golint)
    • bfe/bfe_config/bfe_conf/conf_session_cache.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 22: warning: exported type ConfigSessionCache should have comment or be unexported (golint)
    • Line 44: warning: exported method ConfigSessionCache.SetDefaultConf should have comment or be unexported (golint)
    • Line 53: warning: exported method ConfigSessionCache.Check should have comment or be unexported (golint)
    • Line 60: warning: exported function ConfSessionCacheCheck should have comment or be unexported (golint)
    • bfe/bfe_http2/state.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type Http2State should have comment or be unexported (golint)
    • Line 44: warning: exported function GetHttp2State should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_cluster_conf/gslb_conf/gslb_conf_load.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 31: warning: exported var ErrGslbNoHostname should have comment or be unexported (golint)
    • Line 51: warning: exported method GslbClustersConf.HasDiff should have comment or be unexported (golint)
    • Line 104: warning: exported method GslbClusterConf.IsSame should have comment or be unexported (golint)
    • Line 108: warning: exported method GslbClusterConf.HasDiff should have comment or be unexported (golint)
    • Line 112: warning: exported method GslbClustersConf.Check should have comment or be unexported (golint)
    • Line 112: warning: receiver name conf should be consistent with previous receiver name gslb for GslbClustersConf (golint)
    • Line 122: warning: exported method GslbConf.Check should have comment or be unexported (golint)
    • Line 122: warning: receiver name conf should be consistent with previous receiver name gslbConf for GslbConf (golint)
    • Line 126: warning: exported function GslbConfNilCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_header/header_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type HeaderTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewHeaderTable should have comment or be unexported (golint)
    • Line 33: warning: exported method HeaderTable.Update should have comment or be unexported (golint)
    • Line 42: warning: exported method HeaderTable.Search should have comment or be unexported (golint)
    • bfe/bfe_server/tls_multi_cert.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 31: warning: exported type MultiCertMap should have comment or be unexported (golint)
    • Line 39: warning: exported function NewMultiCertMap should have comment or be unexported (golint)
    • Line 87: warning: exported method MultiCertMap.GetDefault should have comment or be unexported (golint)
    • Line 133: warning: exported type NameCertMap should have comment or be unexported (golint)
    • Line 138: warning: exported function NewNameCertMap should have comment or be unexported (golint)
    • Line 145: warning: exported method NameCertMap.Get should have comment or be unexported (golint)
    • Line 166: warning: exported method NameCertMap.Update should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_block/product_rule_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type ProductRuleTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewProductRuleTable should have comment or be unexported (golint)
    • Line 33: warning: exported method ProductRuleTable.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method ProductRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_rewrite/rewrite_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type ReWriteTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewReWriteTable should have comment or be unexported (golint)
    • Line 33: warning: exported method ReWriteTable.Update should have comment or be unexported (golint)
    • Line 42: warning: exported method ReWriteTable.Search should have comment or be unexported (golint)
    • bfe/bfe_basic/condition/parser/ast.go
    • Line 26: warning: exported type Node should have comment or be unexported (golint)
    • Line 31: warning: exported type Expr should have comment or be unexported (golint)
    • Line 36: warning: exported type BinaryExpr should have comment or be unexported (golint)
    • Line 42: warning: exported type UnaryExpr should have comment or be unexported (golint)
    • Line 48: warning: exported type Ident should have comment or be unexported (golint)
    • Line 53: warning: exported type BasicLit should have comment or be unexported (golint)
    • Line 59: warning: exported type CallExpr should have comment or be unexported (golint)
    • Line 65: warning: exported type ParenExpr should have comment or be unexported (golint)
    • Line 91: warning: exported type BasicLitList should have comment or be unexported (golint)
    • Line 93: warning: exported method BinaryExpr.Pos should have comment or be unexported (golint)
    • Line 97: warning: exported method BinaryExpr.End should have comment or be unexported (golint)
    • Line 101: warning: exported method UnaryExpr.Pos should have comment or be unexported (golint)
    • Line 105: warning: exported method UnaryExpr.End should have comment or be unexported (golint)
    • Line 109: warning: exported method Ident.Pos should have comment or be unexported (golint)
    • Line 113: warning: exported method Ident.End should have comment or be unexported (golint)
    • Line 117: warning: exported method BasicLit.Pos should have comment or be unexported (golint)
    • Line 121: warning: exported method BasicLit.End should have comment or be unexported (golint)
    • Line 125: warning: exported method CallExpr.Pos should have comment or be unexported (golint)
    • Line 129: warning: exported method CallExpr.End should have comment or be unexported (golint)
    • Line 133: warning: exported method BasicLitList.Pos should have comment or be unexported (golint)
    • Line 137: warning: exported method BasicLitList.End should have comment or be unexported (golint)
    • Line 141: warning: exported method ParenExpr.Pos should have comment or be unexported (golint)
    • Line 145: warning: exported method ParenExpr.End should have comment or be unexported (golint)
    • Line 149: warning: exported method BasicLit.ToBool should have comment or be unexported (golint)
    • bfe/bfe_proxy/common.go
    • Line 29: warning: don't use an underscore in package name (golint)
    • Line 35: warning: comment on exported type ProxyState should be of the form "ProxyState ..." (with optional leading article) (golint)
    • Line 48: warning: exported function GetProxyState should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_static/mime_type_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 27: warning: exported type MimeType should have comment or be unexported (golint)
    • Line 29: warning: exported type MimeTypeConf should have comment or be unexported (golint)
    • Line 34: warning: exported function MimeTypeConfCheck should have comment or be unexported (golint)
    • Line 42: warning: exported function MimeTypeConfConvert should have comment or be unexported (golint)
    • Line 51: warning: exported function MimeTypeConfLoad should have comment or be unexported (golint)
    • bfe/bfe_websocket/common.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 34: warning: exported const WebSocket should have comment (or a comment on this block) or be unexported (golint)
    • bfe/bfe_modules/mod_tag/mod_tag.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 35: warning: exported const ModTag should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type ModuleTag should have comment or be unexported (golint)
    • Line 48: warning: exported function NewModuleTag should have comment or be unexported (golint)
    • Line 55: warning: exported method ModuleTag.Name should have comment or be unexported (golint)
    • Line 129: warning: exported method ModuleTag.Init should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 89: warning: exported type TlsRuleConf should have comment or be unexported (golint)
    • Line 101: warning: exported type TlsRuleMap should have comment or be unexported (golint)
    • Line 104: warning: exported const ProxyProtocolDisabled should have comment (or a comment on this block) or be unexported (golint)
    • Line 109: warning: exported type NextProtosParams should have comment or be unexported (golint)
    • Line 117: warning: exported function GetDefaultNextProtosParams should have comment or be unexported (golint)
    • Line 127: warning: exported type BfeTlsRuleConf should have comment or be unexported (golint)
    • Line 135: warning: exported function TlsRuleConfCheck should have comment or be unexported (golint)
    • Line 207: warning: exported function CheckValidProto should have comment or be unexported (golint)
    • Line 257: warning: exported function ParseNextProto should have comment or be unexported (golint)
    • Line 358: warning: exported function BfeTlsRuleConfCheck should have comment or be unexported (golint)
    • Line 444: warning: exported function GetClientCACertificate should have comment or be unexported (golint)
    • Line 508: warning: exported function ClientCRLLoad should have comment or be unexported (golint)
    • bfe/bfe_http/header.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 90: warning: exported method Header.Clone should have comment or be unexported (golint)
    • bfe/bfe_http2/http2.go
    • Line 19: warning: package comment should be of the form "Package bfe_http2 ..." (golint)
    • Line 30: warning: don't use an underscore in package name (golint)
    • Line 50: warning: exported var VerboseLogs should have comment or be unexported (golint)
    • Line 120: warning: exported const ConnTag should have comment (or a comment on this block) or be unexported (golint)
    • Line 178: warning: exported const SettingHeaderTableSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 555: warning: exported type ServerRule should have comment or be unexported (golint)
    • Line 559: warning: comment on exported type Rule should be of the form "Rule ..." (with optional leading article) (golint)
    • Line 577: warning: exported function SetServerRule should have comment or be unexported (golint)
    • Line 583: warning: exported function EnableLargeConnRecvWindow should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_jwt/auth_jwt_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported type AuthJWTRuleFile should have comment or be unexported (golint)
    • Line 47: warning: exported type AuthJWTRule should have comment or be unexported (golint)
    • Line 53: warning: exported type RuleFileList should have comment or be unexported (golint)
    • Line 54: warning: exported type RuleList should have comment or be unexported (golint)
    • Line 56: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 57: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 59: warning: exported type AuthJWTConfFile should have comment or be unexported (golint)
    • Line 64: warning: exported type AuthJWTConf should have comment or be unexported (golint)
    • Line 92: warning: exported function AuthJWTRuleCheck should have comment or be unexported (golint)
    • Line 104: warning: exported function RuleListCheck should have comment or be unexported (golint)
    • Line 115: warning: exported function ProductRulesCheck should have comment or be unexported (golint)
    • Line 130: warning: exported function AuthJWTConfCheck should have comment or be unexported (golint)
    • Line 185: warning: exported function AuthJWTConfLoad should have comment or be unexported (golint)
    • bfe/bfe_util/mock_server.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 95: warning: exported method MockServer.Serve should have comment or be unexported (golint)
    • Line 158: warning: exported type MockConn should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_waf/waf_rule/rule_request_info.go
    • Line 1: warning: package comment should be of the form "Package waf_rule ..." (golint)
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 23: warning: exported type RuleRequestInfo should have comment or be unexported (golint)
    • Line 36: warning: exported function NewRuleRequestInfo should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_redirect/redirect_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type RedirectTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewRedirectTable should have comment or be unexported (golint)
    • Line 33: warning: exported method RedirectTable.Update should have comment or be unexported (golint)
    • Line 42: warning: exported method RedirectTable.Search should have comment or be unexported (golint)
    • bfe/bfe_server/tls_server_rule.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 39: warning: exported var DefaultNextProtos should have comment or be unexported (golint)
    • Line 42: warning: exported type ServerRule should have comment or be unexported (golint)
    • Line 48: warning: exported type TLSServerRuleMap should have comment or be unexported (golint)
    • Line 64: warning: exported type Version should have comment or be unexported (golint)
    • Line 68: warning: exported function NewTLSServerRuleMap should have comment or be unexported (golint)
    • Line 90: warning: comment on exported method TLSServerRuleMap.GetStreamRule should be of the form "GetStreamRule ..." (golint)
    • Line 147: warning: exported method TLSServerRuleMap.Update should have comment or be unexported (golint)
    • Line 230: warning: exported method TLSServerRuleMap.EnableNextProto should have comment or be unexported (golint)
    • Line 242: warning: exported method TLSServerRuleMap.StatusNextProto should have comment or be unexported (golint)
    • Line 250: warning: exported type NextProtosConf should have comment or be unexported (golint)
    • Line 259: warning: exported function NewNextProtosConf should have comment or be unexported (golint)
    • Line 279: warning: exported method NextProtosConf.Get should have comment or be unexported (golint)
    • Line 312: warning: exported method NextProtosConf.Mandatory should have comment or be unexported (golint)
    • bfe/bfe_http2/writesched.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 45: warning: receiver name wm should be consistent with previous receiver name wr for frameWriteMsg (golint)
    • bfe/bfe_modules/mod_errors/errors_rule_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type ErrorsRuleTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewErrorsRuleTable should have comment or be unexported (golint)
    • Line 33: warning: exported method ErrorsRuleTable.Update should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_userid/mod_userid.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 42: warning: exported const ModName should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type ModuleUserID should have comment or be unexported (golint)
    • Line 53: warning: exported function NewModuleUserID should have comment or be unexported (golint)
    • Line 59: warning: exported method ModuleUserID.Name should have comment or be unexported (golint)
    • Line 63: warning: exported method ModuleUserID.Init should have comment or be unexported (golint)
    • bfe/bfe_balance/bal_table.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 40: warning: exported type BalTable should have comment or be unexported (golint)
    • Line 46: warning: exported type BalVersion should have comment or be unexported (golint)
    • Line 52: warning: exported type BalTableState should have comment or be unexported (golint)
    • Line 57: warning: exported function NewBalTable should have comment or be unexported (golint)
    • Line 64: warning: exported method BalTable.BalTableConfLoad should have comment or be unexported (golint)
    • Line 85: warning: exported method BalTable.Init should have comment or be unexported (golint)
    • Line 214: warning: exported method BalTable.BalTableReload should have comment or be unexported (golint)
    • Line 291: warning: exported function NewBalTableState should have comment or be unexported (golint)
    • bfe/bfe_server/bfe_server.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 50: warning: comment on exported type BfeServer should be of the form "BfeServer ..." (with optional leading article) (golint)
    • Line 101: warning: comment on exported function NewBfeServer should be of the form "NewBfeServer ..." (golint)
    • Line 174: warning: exported method BfeServer.InitHttp should have comment or be unexported (golint)
    • Line 187: warning: exported method BfeServer.InitHttps should have comment or be unexported (golint)
    • Line 317: warning: exported method BfeServer.InitModules should have comment or be unexported (golint)
    • Line 321: warning: exported method BfeServer.LoadPlugins should have comment or be unexported (golint)
    • Line 337: warning: exported method BfeServer.InitPlugins should have comment or be unexported (golint)
    • Line 341: warning: exported method BfeServer.InitSignalTable should have comment or be unexported (golint)
    • Line 357: warning: exported method BfeServer.InitWebMonitor should have comment or be unexported (golint)
    • Line 413: warning: exported method BfeServer.GetServerConf should have comment or be unexported (golint)
    • Line 432: warning: exported method BfeServer.InitListeners should have comment or be unexported (golint)
    • bfe/bfe_balance/bal_slb/backend_rr.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported type WeightSS should have comment or be unexported (golint)
    • Line 34: warning: exported type BackendRR should have comment or be unexported (golint)
    • Line 42: warning: exported function NewBackendRR should have comment or be unexported (golint)
    • Line 60: warning: exported method BackendRR.UpdateWeight should have comment or be unexported (golint)
    • Line 69: warning: exported method BackendRR.Release should have comment or be unexported (golint)
    • Line 73: warning: exported method BackendRR.MatchAddrPort should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_tag/tag_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 27: warning: exported type TagRuleFile should have comment or be unexported (golint)
    • Line 32: warning: exported type TagRuleConf should have comment or be unexported (golint)
    • Line 37: warning: exported type TagRuleRaw should have comment or be unexported (golint)
    • Line 43: warning: exported type ProductRuleRawList should have comment or be unexported (golint)
    • Line 44: warning: exported type RuleRawList should have comment or be unexported (golint)
    • Line 46: warning: exported function TagRuleCheck should have comment or be unexported (golint)
    • Line 98: warning: exported function TagRuleFileLoad should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_secure_link/checker.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 32: warning: exported var ErrReqWithoutExpiresKey should have comment or be unexported (golint)
    • Line 39: warning: exported type CheckerConfig should have comment or be unexported (golint)
    • Line 45: warning: exported type NodeConfig should have comment or be unexported (golint)
    • Line 51: warning: exported type Checker should have comment or be unexported (golint)
    • Line 112: warning: exported type Expression should have comment or be unexported (golint)
    • Line 116: warning: exported type ExpressionNode should have comment or be unexported (golint)
    • Line 162: warning: exported function NewNode should have comment or be unexported (golint)
    • Line 187: warning: exported function NewExpression should have comment or be unexported (golint)
    • Line 203: warning: exported method Expression.Value should have comment or be unexported (golint)
    • bfe/bfe_server/https_listener.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported type HttpsListener should have comment or be unexported (golint)
    • Line 36: warning: exported function NewHttpsListener should have comment or be unexported (golint)
    • bfe/bfe_basic/error_code.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 22: warning: comment on exported var ErrClientTlsHandshake should be of the form "ErrClientTlsHandshake ..." (golint)
    • Line 24: warning: exported var ErrClientWrite should have comment or be unexported (golint)
    • Line 35: warning: comment on exported var ErrBkFindProduct should be of the form "ErrBkFindProduct ..." (golint)
    • Line 51: warning: comment on exported var ErrGslbBlackhole should be of the form "ErrGslbBlackhole ..." (golint)
    • bfe/bfe_route/bfe_cluster/bfe_cluster.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 32: warning: exported type BfeCluster should have comment or be unexported (golint)
    • Line 50: warning: exported function NewBfeCluster should have comment or be unexported (golint)
    • Line 56: warning: exported method BfeCluster.BasicInit should have comment or be unexported (golint)
    • Line 81: warning: exported method BfeCluster.BackendCheckConf should have comment or be unexported (golint)
    • Line 89: warning: exported method BfeCluster.TimeoutConnSrv should have comment or be unexported (golint)
    • Line 97: warning: exported method BfeCluster.BackendConf should have comment or be unexported (golint)
    • Line 105: warning: exported method BfeCluster.RetryLevel should have comment or be unexported (golint)
    • Line 116: warning: exported method BfeCluster.OutlierDetectionHttpCode should have comment or be unexported (golint)
    • Line 123: warning: exported method BfeCluster.TimeoutReadClient should have comment or be unexported (golint)
    • Line 131: warning: exported method BfeCluster.TimeoutReadClientAgain should have comment or be unexported (golint)
    • Line 139: warning: exported method BfeCluster.TimeoutWriteClient should have comment or be unexported (golint)
    • Line 147: warning: exported method BfeCluster.ReqWriteBufferSize should have comment or be unexported (golint)
    • Line 155: warning: exported method BfeCluster.ReqFlushInterval should have comment or be unexported (golint)
    • Line 163: warning: exported method BfeCluster.ResFlushInterval should have comment or be unexported (golint)
    • Line 171: warning: exported method BfeCluster.DefaultSSEFlushInterval should have comment or be unexported (golint)
    • Line 175: warning: exported method BfeCluster.CancelOnClientClose should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_key_log/key_log_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type KeyLogTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewKeyLogTable should have comment or be unexported (golint)
    • Line 33: warning: exported method KeyLogTable.Update should have comment or be unexported (golint)
    • Line 42: warning: exported method KeyLogTable.Search should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_waf/waf_log.go
    • Line 1: warning: package comment should be of the form "Package mod_waf ..." (golint)
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 32: warning: exported function NewWafLogger should have comment or be unexported (golint)
    • Line 47: warning: receiver name wl should be consistent with previous receiver name wf for wafLogger (golint)
    • bfe/bfe_modules/mod_auth_request/auth_request_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 25: warning: exported type AuthRequestRuleTable should have comment or be unexported (golint)
    • Line 31: warning: exported type AuthRequestRule should have comment or be unexported (golint)
    • Line 36: warning: exported type ProductRuleList should have comment or be unexported (golint)
    • Line 37: warning: exported type AuthRequestRuleList should have comment or be unexported (golint)
    • Line 39: warning: exported function NewAuthRequestRuleTable should have comment or be unexported (golint)
    • Line 45: warning: exported method AuthRequestRuleTable.Update should have comment or be unexported (golint)
    • Line 52: warning: exported method AuthRequestRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_conf/conf_session_ticket.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 25: warning: exported type ConfigSessionTicket should have comment or be unexported (golint)
    • Line 33: warning: exported method ConfigSessionTicket.SetDefaultConf should have comment or be unexported (golint)
    • Line 38: warning: exported method ConfigSessionTicket.Check should have comment or be unexported (golint)
    • Line 46: warning: exported function ConfSessionTicketCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_redirect/action.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 27: warning: exported type ActionFile should have comment or be unexported (golint)
    • Line 32: warning: exported type Action should have comment or be unexported (golint)
    • Line 37: warning: exported type ActionFileList should have comment or be unexported (golint)
    • Line 39: warning: comment on exported var EXCLUSIVE_ACTIONS should be of the form "EXCLUSIVE_ACTIONS ..." (golint)
    • Line 47: warning: exported function ActionFileCheck should have comment or be unexported (golint)
    • Line 88: warning: exported function ActionFileListCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_cors/conf_mod_cors.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported type ConfModCors should have comment or be unexported (golint)
    • Line 43: warning: exported function ConfLoad should have comment or be unexported (golint)
    • Line 60: warning: exported method ConfModCors.Check should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_markdown/mod_markdown.go
    • Line 16: warning: don't use an underscore in package name (golint)
    • Line 40: warning: exported const ModMarkdown should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type ModuleMarkdownState should have comment or be unexported (golint)
    • Line 59: warning: exported type ModuleMarkdown should have comment or be unexported (golint)
    • Line 67: warning: exported function NewModuleMarkdown should have comment or be unexported (golint)
    • Line 75: warning: exported method ModuleMarkdown.Name should have comment or be unexported (golint)
    • Line 194: warning: exported method ModuleMarkdown.Init should have comment or be unexported (golint)
    • bfe/bfe_http/request.go
    • Line 21: warning: don't use an underscore in package name (golint)
    • Line 51: warning: exported const MaxUriSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: comment on exported type ProtocolError should be of the form "ProtocolError ..." (with optional leading article) (golint)
    • Line 66: warning: exported var ErrHeaderTooLong should have comment or be unexported (golint)
    • Line 222: warning: exported type RequestState should have comment or be unexported (golint)
    • Line 264: warning: exported var ErrNoCookie should have comment or be unexported (golint)
    • Line 375: warning: receiver name req should be consistent with previous receiver name r for Request (golint)
    • Line 954: warning: exported method Request.ExpectsContinue should have comment or be unexported (golint)
    • Line 958: warning: exported method Request.WantsHttp10KeepAlive should have comment or be unexported (golint)
    • Line 966: warning: exported method Request.WantsClose should have comment or be unexported (golint)
    • bfe/bfe_basic/request_stat.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 23: warning: exported type RequestStat should have comment or be unexported (golint)
    • Line 56: warning: exported function NewRequestStat should have comment or be unexported (golint)
    • bfe/bfe_server/tls_session_cache.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 37: warning: exported type ServerSessionCache should have comment or be unexported (golint)
    • Line 55: warning: exported function NewServerSessionCache should have comment or be unexported (golint)
    • Line 182: warning: exported method ServerSessionCache.UpdateServers should have comment or be unexported (golint)
    • Line 188: warning: exported method ServerSessionCache.UpdatePool should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_conf/conf_basic.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 31: warning: exported const BalancerProxy should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type ConfigBasic should have comment or be unexported (golint)
    • Line 83: warning: exported method ConfigBasic.SetDefaultConf should have comment or be unexported (golint)
    • Line 109: warning: exported method ConfigBasic.Check should have comment or be unexported (golint)
    • Line 113: warning: exported function ConfBasicCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_header/action.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 32: warning: exported type ActionFile should have comment or be unexported (golint)
    • Line 37: warning: exported type Action should have comment or be unexported (golint)
    • Line 42: warning: exported type ActionFileList should have comment or be unexported (golint)
    • Line 44: warning: exported function ActionFileCheck should have comment or be unexported (golint)
    • Line 172: warning: exported function ActionFileListCheck should have comment or be unexported (golint)
    • Line 428: warning: exported function HeaderActionDo should have comment or be unexported (golint)
    • Line 497: warning: exported function HeaderActionsDo should have comment or be unexported (golint)
    • bfe/bfe_module/bfe_module.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported type BfeModule should have comment or be unexported (golint)
    • Line 61: warning: exported type BfeModules should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_prison/access.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 32: warning: exported type AccessSign should have comment or be unexported (golint)
    • Line 34: warning: exported type AccessSigner should have comment or be unexported (golint)
    • Line 39: warning: exported method AccessSigner.Sign should have comment or be unexported (golint)
    • Line 153: warning: exported type AccessCounter should have comment or be unexported (golint)
    • Line 158: warning: exported function NewAccessCounter should have comment or be unexported (golint)
    • Line 165: warning: exported method AccessCounter.IncAndCheck should have comment or be unexported (golint)
    • Line 181: warning: receiver name f should be consistent with previous receiver name c for AccessCounter (golint)
    • bfe/bfe_balance/bal_slb/bal_rr.go
    • Line 37: warning: don't use an underscore in package name (golint)
    • Line 66: warning: exported type BackendList should have comment or be unexported (golint)
    • Line 68: warning: exported method BackendList.ResetWeight should have comment or be unexported (golint)
    • Line 74: warning: exported type BackendListSorter should have comment or be unexported (golint)
    • Line 90: warning: exported type BalanceRR should have comment or be unexported (golint)
    • Line 101: warning: exported function NewBalanceRR should have comment or be unexported (golint)
    • Line 119: warning: exported method BalanceRR.SetSlowStart should have comment or be unexported (golint)
    • Line 421: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 499: warning: exported method BalanceRR.Len should have comment or be unexported (golint)
    • Line 503: warning: exported function GetHash should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_block/mod_block.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 37: warning: exported const ModBlock should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported var ErrBlock should have comment or be unexported (golint)
    • Line 49: warning: exported type ModuleBlockState should have comment or be unexported (golint)
    • Line 59: warning: exported type BlockInfo should have comment or be unexported (golint)
    • Line 63: warning: exported type ModuleBlock should have comment or be unexported (golint)
    • Line 75: warning: exported function NewModuleBlock should have comment or be unexported (golint)
    • Line 86: warning: exported method ModuleBlock.Name should have comment or be unexported (golint)
    • Line 254: warning: exported method ModuleBlock.Init should have comment or be unexported (golint)
    • bfe/bfe_http2/server_test.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 1200: warning: don't use underscores in Go names; func testServer_RSTStream_Unblocks_Header_Write should be testServerRSTStreamUnblocksHeaderWrite (golint)
    • bfe/bfe_basic/common.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 23: warning: exported const HeaderBfeIP should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type OperationStage should have comment or be unexported (golint)
    • Line 35: warning: exported const StageStartConn should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported const GlobalProduct should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: comment on exported var HopHeaders should be of the form "HopHeaders ..." (golint)
    • Line 73: warning: exported function CreateInternalResp should have comment or be unexported (golint)
    • Line 83: warning: comment on exported type ServerDataConfInterface should be of the form "ServerDataConfInterface ..." (with optional leading article) (golint)
    • bfe/bfe_modules/mod_auth_jwt/conf_mod_auth_jwt.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConfModAuthJWT should have comment or be unexported (golint)
    • Line 36: warning: exported function ConfLoad should have comment or be unexported (golint)
    • Line 53: warning: exported method ConfModAuthJWT.Check should have comment or be unexported (golint)
    • bfe/bfe_fcgi/fcgi_client.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 45: warning: comment on exported const FCGIListenSockFileNo should be of the form "FCGIListenSockFileNo ..." (golint)
    • Line 101: warning: comment on exported const FCGIResponser should be of the form "FCGIResponser ..." (golint)
    • Line 115: warning: comment on exported const FCGICantMpxConn should be of the form "FCGICantMpxConn ..." (golint)
    • Line 118: warning: comment on exported const FCGIOverLoaded should be of the form "FCGIOverLoaded ..." (golint)
    • Line 126: warning: comment on exported const FCGIMaxConns should be of the form "FCGIMaxConns ..." (golint)
    • Line 129: warning: comment on exported const FCGIMaxReqs should be of the form "FCGIMaxReqs ..." (golint)
    • Line 132: warning: comment on exported const FCGIMpxsConns should be of the form "FCGIMpxsConns ..." (golint)
    • Line 476: warning: receiver name c should be consistent with previous receiver name client for FCGIClient (golint)
    • Line 484: warning: receiver name c should be consistent with previous receiver name client for FCGIClient (golint)
    • Line 555: warning: receiver name c should be consistent with previous receiver name client for FCGIClient (golint)
    • Line 564: warning: receiver name c should be consistent with previous receiver name client for FCGIClient (golint)
    • bfe/bfe_modules/mod_static/mime_type_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type MimeTypeTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewMimeTypeTable should have comment or be unexported (golint)
    • Line 33: warning: exported method MimeTypeTable.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method MimeTypeTable.Search should have comment or be unexported (golint)
    • bfe/bfe_route/cluster_table.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported type ClusterTable should have comment or be unexported (golint)
    • Line 38: warning: exported type ClusterVersion should have comment or be unexported (golint)
    • Line 47: warning: exported method ClusterTable.Init should have comment or be unexported (golint)
    • Line 61: warning: exported method ClusterTable.BasicInit should have comment or be unexported (golint)
    • Line 77: warning: exported method ClusterTable.Lookup should have comment or be unexported (golint)
    • Line 87: warning: exported method ClusterTable.GetVersions should have comment or be unexported (golint)
    • Line 91: warning: exported method ClusterTable.ClusterMap should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_errors/mod_errors.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 38: warning: exported const MaxPageSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type ModuleErrors should have comment or be unexported (golint)
    • Line 47: warning: exported function NewModuleErrors should have comment or be unexported (golint)
    • Line 54: warning: exported method ModuleErrors.Name should have comment or be unexported (golint)
    • Line 99: warning: exported method ModuleErrors.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_compress/brotli_filter.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type BrotliFilter should have comment or be unexported (golint)
    • Line 34: warning: exported function NewBrotliFilter should have comment or be unexported (golint)
    • Line 62: warning: exported method BrotliFilter.Close should have comment or be unexported (golint)
    • bfe/bfe_util/ipdict/ip_loc_table.go
    • Line 26: warning: exported const IP_SIZE should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type IpLocationTable should have comment or be unexported (golint)
    • Line 57: warning: exported function NewIpLocationTable should have comment or be unexported (golint)
    • bfe/bfe_tls/common.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 39: warning: exported const VersionSSL30 should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: var inactiveSeconds is of type time.Duration; don't use unit-specific suffix "Seconds" (golint)
    • Line 142: warning: exported const CurveP256 should have comment (or a comment on this block) or be unexported (golint)
    • Line 236: warning: exported const NoClientCert should have comment (or a comment on this block) or be unexported (golint)
    • Line 266: warning: exported type ServerSessionCache should have comment or be unexported (golint)
    • Line 275: warning: exported type MultiCertificate should have comment or be unexported (golint)
    • Line 283: warning: exported function SetTlsMultiCertificate should have comment or be unexported (golint)
    • Line 287: warning: exported type NextProtoConf should have comment or be unexported (golint)
    • Line 319: warning: exported type ServerRule should have comment or be unexported (golint)
    • Line 607: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 824: warning: exported function VersionText should have comment or be unexported (golint)
    • Line 839: warning: exported function VersionTextForOpenSSL should have comment or be unexported (golint)
    • Line 851: warning: exported function SetHelloRandomFormat should have comment or be unexported (golint)
    • Line 882: warning: exported type KeyPairLoader should have comment or be unexported (golint)
    • Line 886: warning: exported function SetKeyPairLoader should have comment or be unexported (golint)
    • bfe/bfe_proxy/header.go
    • Line 31: warning: don't use an underscore in package name (golint)
    • Line 52: warning: exported var ErrCantReadProtocolVersionAndCommand should have comment or be unexported (golint)
    • bfe/bfe_server/web_server.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 24: warning: exported type BfeMonitor should have comment or be unexported (golint)
    • Line 135: warning: exported method BfeMonitor.WebHandlersInit should have comment or be unexported (golint)
    • Line 153: warning: exported method BfeMonitor.Start should have comment or be unexported (golint)
    • bfe/bfe_module/bfe_plugin.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 31: warning: exported type BfePlugins should have comment or be unexported (golint)
    • Line 35: warning: comment on exported function NewBfePlugins should be of the form "NewBfePlugins ..." (golint)
    • bfe/bfe_modules/mod_cors/cors_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type CorsRuleFile should have comment or be unexported (golint)
    • Line 34: warning: exported type CorsRuleConf should have comment or be unexported (golint)
    • Line 39: warning: exported type CorsRuleRaw should have comment or be unexported (golint)
    • Line 66: warning: exported type ProductRuleRawList should have comment or be unexported (golint)
    • Line 67: warning: exported type RuleRawList should have comment or be unexported (golint)
    • Line 83: warning: exported function CorsRuleCheck should have comment or be unexported (golint)
    • Line 225: warning: exported function CorsRuleFileLoad should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_tag/tag_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 25: warning: exported type TagRuleTable should have comment or be unexported (golint)
    • Line 31: warning: exported type TagRule should have comment or be unexported (golint)
    • Line 37: warning: exported type TagParam should have comment or be unexported (golint)
    • Line 42: warning: exported type ProductRuleList should have comment or be unexported (golint)
    • Line 43: warning: exported type TagRuleList should have comment or be unexported (golint)
    • Line 45: warning: exported function NewTagRuleTable should have comment or be unexported (golint)
    • Line 51: warning: exported method TagRuleTable.Update should have comment or be unexported (golint)
    • Line 58: warning: exported method TagRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_trace/mod_trace.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 39: warning: exported const ModTrace should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type ModuleTrace should have comment or be unexported (golint)
    • Line 61: warning: exported type ModuleTraceState should have comment or be unexported (golint)
    • Line 66: warning: exported function NewModuleTrace should have comment or be unexported (golint)
    • Line 74: warning: exported method ModuleTrace.Name should have comment or be unexported (golint)
    • Line 232: warning: exported method ModuleTrace.Init should have comment or be unexported (golint)
    • Line 246: warning: comment on exported function InjectRequestHeader should be of the form "InjectRequestHeader ..." (golint)
    • bfe/bfe_modules/mod_waf/waf_rule/waf_rule.go
    • Line 1: warning: package comment should be of the form "Package waf_rule ..." (golint)
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported const RuleBashCmd should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported function IsValidRule should have comment or be unexported (golint)
    • Line 29: warning: exported type WafRule should have comment or be unexported (golint)
    • Line 34: warning: exported type WafRuleTable should have comment or be unexported (golint)
    • Line 38: warning: exported function NewWafRuleTable should have comment or be unexported (golint)
    • Line 45: warning: exported method WafRuleTable.Init should have comment or be unexported (golint)
    • Line 54: warning: exported method WafRuleTable.GetRule should have comment or be unexported (golint)
    • bfe/bfe_util/ipdict/iptable.go
    • Line 24: warning: exported type IPTable should have comment or be unexported (golint)
    • Line 29: warning: exported function NewIPTable should have comment or be unexported (golint)
    • Line 34: warning: exported method IPTable.Version should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_route_conf/host_rule_conf/host_table_load.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type HostnameList should have comment or be unexported (golint)
    • Line 30: warning: exported type HostTagList should have comment or be unexported (golint)
    • Line 32: warning: exported type HostTagToHost should have comment or be unexported (golint)
    • Line 33: warning: exported type ProductToHostTag should have comment or be unexported (golint)
    • Line 35: warning: exported type Host2HostTag should have comment or be unexported (golint)
    • Line 36: warning: exported type HostTag2Product should have comment or be unexported (golint)
    • Line 38: warning: exported type HostTableConf should have comment or be unexported (golint)
    • Line 45: warning: exported type HostConf should have comment or be unexported (golint)
    • Line 52: warning: exported method HostTableConf.LoadAndCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_request/mod_auth_request.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 40: warning: exported const ModAuthRequest should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported var ErrAuthRequest should have comment or be unexported (golint)
    • Line 56: warning: exported type ModuleAuthRequestState should have comment or be unexported (golint)
    • Line 65: warning: exported type ModuleAuthRequest should have comment or be unexported (golint)
    • Line 78: warning: exported function NewModuleAuthRequest should have comment or be unexported (golint)
    • Line 92: warning: exported method ModuleAuthRequest.Name should have comment or be unexported (golint)
    • Line 293: warning: exported method ModuleAuthRequest.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_key_log/key_log_conf_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported type KeyLogRuleFile should have comment or be unexported (golint)
    • Line 32: warning: exported type KeyLogRule should have comment or be unexported (golint)
    • Line 36: warning: exported type RuleFileList should have comment or be unexported (golint)
    • Line 37: warning: exported type RuleList should have comment or be unexported (golint)
    • Line 39: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 40: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 42: warning: exported type KeyLogConfFile should have comment or be unexported (golint)
    • Line 61: warning: exported function RuleListCheck should have comment or be unexported (golint)
    • Line 72: warning: exported function ProductRulesCheck should have comment or be unexported (golint)
    • Line 87: warning: exported function KeyLogConfCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_access/mod_access.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 34: warning: exported type ModuleAccess should have comment or be unexported (golint)
    • Line 43: warning: exported function NewModuleAccess should have comment or be unexported (golint)
    • Line 49: warning: exported method ModuleAccess.Name should have comment or be unexported (golint)
    • Line 53: warning: exported method ModuleAccess.ParseConfig should have comment or be unexported (golint)
    • Line 69: warning: exported method ModuleAccess.Init should have comment or be unexported (golint)
    • Line 113: warning: exported method ModuleAccess.CheckLogFormat should have comment or be unexported (golint)
    • bfe/bfe_tls/crl_pool.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 47: warning: exported type CRLPool should have comment or be unexported (golint)
    • Line 51: warning: exported function NewCRLPool should have comment or be unexported (golint)
    • Line 77: warning: exported method CRLPool.AddCRL should have comment or be unexported (golint)
    • Line 105: warning: exported method CRLPool.CheckCertRevoked should have comment or be unexported (golint)
    • bfe/bfe_balance/bal_gslb/bal_gslb.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 44: warning: exported const DefaultRetryMax should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type BalanceGslb should have comment or be unexported (golint)
    • Line 64: warning: exported function NewBalanceGslb should have comment or be unexported (golint)
    • Line 81: warning: exported method BalanceGslb.SetGslbBasic should have comment or be unexported (golint)
    • Line 92: warning: exported method BalanceGslb.SetSlowStart should have comment or be unexported (golint)
    • Line 140: warning: exported method BalanceGslb.BackendInit should have comment or be unexported (golint)
    • Line 238: warning: exported method BalanceGslb.BackendReload should have comment or be unexported (golint)
    • Line 252: warning: exported method BalanceGslb.Release should have comment or be unexported (golint)
    • Line 374: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 482: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 492: warning: exported method BalanceGslb.SubClusterNum should have comment or be unexported (golint)
    • Line 496: warning: exported type BalErrState should have comment or be unexported (golint)
    • Line 506: warning: exported function GetBalErrState should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_doh/mod_doh.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 34: warning: exported const ModDoh should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type ModuleDohState should have comment or be unexported (golint)
    • Line 47: warning: exported type ModuleDoh should have comment or be unexported (golint)
    • Line 56: warning: exported function NewModuleDoh should have comment or be unexported (golint)
    • Line 63: warning: exported method ModuleDoh.Name should have comment or be unexported (golint)
    • Line 107: warning: exported method ModuleDoh.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_static/action.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 24: warning: exported const ActionBrowse should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type ActionFile should have comment or be unexported (golint)
    • Line 32: warning: exported type Action should have comment or be unexported (golint)
    • Line 37: warning: exported function ActionFileCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_redirect/conf_mod_redirect.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConfModRedirect should have comment or be unexported (golint)
    • Line 56: warning: exported method ConfModRedirect.Check should have comment or be unexported (golint)
    • Line 60: warning: exported function ConfModRedirectCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_jwt/mod_auth_jwt.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 37: warning: exported const ModAuthJWT should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type ModuleAuthJWTState should have comment or be unexported (golint)
    • Line 48: warning: exported type ModuleAuthJWT should have comment or be unexported (golint)
    • Line 60: warning: exported function NewModuleAuthJWT should have comment or be unexported (golint)
    • Line 68: warning: exported method ModuleAuthJWT.Name should have comment or be unexported (golint)
    • Line 189: warning: exported method ModuleAuthJWT.Init should have comment or be unexported (golint)
    • bfe/bfe_fcgi/common.go
    • Line 15: warning: package comment should be of the form "Package bfe_fcgi ..." (golint)
    • Line 18: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConnectError should have comment or be unexported (golint)
    • Line 35: warning: exported type WriteRequestError should have comment or be unexported (golint)
    • Line 43: warning: exported method WriteRequestError.CheckTargetError should have comment or be unexported (golint)
    • Line 50: warning: exported type ReadRespHeaderError should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_static/static_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 27: warning: exported type StaticRuleFile should have comment or be unexported (golint)
    • Line 32: warning: exported type StaticRule should have comment or be unexported (golint)
    • Line 37: warning: exported type RuleFileList should have comment or be unexported (golint)
    • Line 38: warning: exported type RuleList should have comment or be unexported (golint)
    • Line 40: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 41: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 43: warning: exported type StaticConfFile should have comment or be unexported (golint)
    • Line 48: warning: exported type StaticConf should have comment or be unexported (golint)
    • Line 53: warning: exported function StaticRuleCheck should have comment or be unexported (golint)
    • Line 69: warning: exported function RuleListCheck should have comment or be unexported (golint)
    • Line 80: warning: exported function ProductRulesCheck should have comment or be unexported (golint)
    • Line 95: warning: exported function StaticConfCheck should have comment or be unexported (golint)
    • Line 143: warning: exported function StaticConfLoad should have comment or be unexported (golint)
    • bfe/bfe_proxy/addr_proto.go
    • Line 29: warning: don't use an underscore in package name (golint)
    • Line 35: warning: exported const UNSPEC should have comment (or a comment on this block) or be unexported (golint)
    • bfe/bfe_config/bfe_cluster_conf/cluster_conf/cluster_conf_load.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 78: warning: comment on exported type FCGIConf should be of the form "FCGIConf ..." (with optional leading article) (golint)
    • Line 98: warning: exported type HashConf should have comment or be unexported (golint)
    • Line 142: warning: exported type ClusterToConf should have comment or be unexported (golint)
    • Line 259: warning: exported function MatchStatusCode should have comment or be unexported (golint)
    • Line 527: warning: exported function GetCookieKey should have comment or be unexported (golint)
    • Line 535: warning: exported method BfeClusterConf.LoadAndCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_compress/mod_compress.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 36: warning: comment on exported const EncodeGzip should be of the form "EncodeGzip ..." (golint)
    • Line 38: warning: exported const EncodeBrotli should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported const EncodeIdentity should be of the form "EncodeIdentity ..." (golint)
    • Line 50: warning: exported type ModuleCompressState should have comment or be unexported (golint)
    • Line 59: warning: exported type ModuleCompress should have comment or be unexported (golint)
    • Line 67: warning: exported function NewModuleCompress should have comment or be unexported (golint)
    • Line 75: warning: exported method ModuleCompress.Name should have comment or be unexported (golint)
    • Line 211: warning: exported method ModuleCompress.Init should have comment or be unexported (golint)
    • bfe/bfe_proxy/v1.go
    • Line 29: warning: don't use an underscore in package name (golint)
    • Line 44: warning: exported const CRLF should have comment (or a comment on this block) or be unexported (golint)
    • bfe/bfe_util/ipdict/txt_load/txt_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 32: warning: comment on exported var ErrNoNeedUpdate should be of the form "ErrNoNeedUpdate ..." (golint)
    • Line 34: warning: comment on exported var ErrMaxLineExceed should be of the form "ErrMaxLineExceed ..." (golint)
    • Line 36: warning: comment on exported var ErrWrongMetaInfo should be of the form "ErrWrongMetaInfo ..." (golint)
    • Line 40: warning: exported type TxtFileLoader should have comment or be unexported (golint)
    • Line 45: warning: exported function NewTxtFileLoader should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method TxtFileLoader.SetMaxLine should be of the form "SetMaxLine ..." (golint)
    • Line 110: warning: comment on exported method TxtFileLoader.CheckAndLoad should be of the form "CheckAndLoad ..." (golint)
    • bfe/bfe_basic/condition/parser/parser.go
    • Line 31: warning: exported type Parser should have comment or be unexported (golint)
    • Line 41: warning: exported type Error should have comment or be unexported (golint)
    • Line 50: warning: exported method Parser.Init should have comment or be unexported (golint)
    • Line 78: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • bfe/bfe_websocket/server_tester.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 39: warning: exported type ServerTester should have comment or be unexported (golint)
    • Line 54: warning: exported function NewServerTester should have comment or be unexported (golint)
    • Line 157: warning: exported method ServerTester.Close should have comment or be unexported (golint)
    • Line 163: warning: exported type HandlerMap should have comment or be unexported (golint)
    • Line 171: warning: exported type MockResponseWriter should have comment or be unexported (golint)
    • Line 178: warning: exported function NewMockResponseWriter should have comment or be unexported (golint)
    • Line 221: warning: exported method MockResponseWriter.Flush should have comment or be unexported (golint)
    • Line 225: warning: exported method MockResponseWriter.Hijack should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_rewrite/conf_mod_rewrite.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConfModReWrite should have comment or be unexported (golint)
    • Line 56: warning: exported method ConfModReWrite.Check should have comment or be unexported (golint)
    • Line 60: warning: exported function ConfModReWriteCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_compress/gzip_filter.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 23: warning: exported type GzipFilter should have comment or be unexported (golint)
    • Line 31: warning: exported function NewGzipFilter should have comment or be unexported (golint)
    • Line 62: warning: exported method GzipFilter.Close should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_doh/conf_mod_doh.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 30: warning: exported type DnsConf should have comment or be unexported (golint)
    • Line 36: warning: exported type ConfModDoh should have comment or be unexported (golint)
    • Line 48: warning: exported function ConfLoad should have comment or be unexported (golint)
    • Line 65: warning: exported method ConfModDoh.Check should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_waf/conf_mod_waf.go
    • Line 1: warning: package comment should be of the form "Package mod_waf ..." (golint)
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 27: warning: exported const DefaultRulePath should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type ConfModWaf should have comment or be unexported (golint)
    • Line 37: warning: exported method ConfModWaf.Check should have comment or be unexported (golint)
    • Line 48: warning: exported function ConfLoad should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_waf/waf_rule_table.go
    • Line 1: warning: package comment should be of the form "Package mod_waf ..." (golint)
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported type WarRuleTable should have comment or be unexported (golint)
    • Line 24: warning: exported function NewWarRuleTable should have comment or be unexported (golint)
    • Line 30: warning: exported method WarRuleTable.Update should have comment or be unexported (golint)
    • Line 37: warning: exported method WarRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_basic/action/action.go
    • Line 29: warning: comment on exported const ActionClose should be of the form "ActionClose ..." (golint)
    • Line 31: warning: exported const ActionPass should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported const ActionReqHeaderAdd should be of the form "ActionReqHeaderAdd ..." (golint)
    • Line 39: warning: comment on exported const ActionHostSetFromPathPrefix should be of the form "ActionHostSetFromPathPrefix ..." (golint)
    • Line 44: warning: comment on exported const ActionPathSet should be of the form "ActionPathSet ..." (golint)
    • Line 49: warning: comment on exported const ActionQueryAdd should be of the form "ActionQueryAdd ..." (golint)
    • Line 56: warning: exported type ActionFile should have comment or be unexported (golint)
    • Line 61: warning: exported type Action should have comment or be unexported (golint)
    • Line 88: warning: exported method Action.Check should have comment or be unexported (golint)
    • Line 144: warning: exported const HeaderPrefix should have comment or be unexported (golint)
    • Line 146: warning: exported function ActionFileCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_trust_clientip/trustip_conf_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported type AddrScopeFile should have comment or be unexported (golint)
    • Line 33: warning: exported type AddrScope should have comment or be unexported (golint)
    • Line 38: warning: exported type AddrScopeFileList should have comment or be unexported (golint)
    • Line 39: warning: exported type AddrScopeList should have comment or be unexported (golint)
    • Line 41: warning: exported type SrcScopeMapFile should have comment or be unexported (golint)
    • Line 42: warning: exported type SrcScopeMap should have comment or be unexported (golint)
    • Line 44: warning: exported type TrustIPConfFile should have comment or be unexported (golint)
    • Line 49: warning: exported type TrustIPConf should have comment or be unexported (golint)
    • Line 54: warning: exported function AddrScopeListCheck should have comment or be unexported (golint)
    • Line 68: warning: exported function TrustIPConfCheck should have comment or be unexported (golint)
    • bfe/bfe_basic/condition/primitive.go
    • Line 40: warning: exported const HashMatcherBucketSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported type Fetcher should have comment or be unexported (golint)
    • Line 47: warning: exported type Matcher should have comment or be unexported (golint)
    • Line 54: warning: exported method DefaultTrueCond.Match should have comment or be unexported (golint)
    • Line 58: warning: exported type PrimitiveCond should have comment or be unexported (golint)
    • Line 69: warning: exported method PrimitiveCond.Match should have comment or be unexported (golint)
    • Line 83: warning: exported type HostFetcher should have comment or be unexported (golint)
    • Line 85: warning: exported method HostFetcher.Fetch should have comment or be unexported (golint)
    • Line 95: warning: exported type HostTagFetcher should have comment or be unexported (golint)
    • Line 97: warning: exported method HostTagFetcher.Fetch should have comment or be unexported (golint)
    • Line 104: warning: exported type ProtoFetcher should have comment or be unexported (golint)
    • Line 106: warning: exported method ProtoFetcher.Fetch should have comment or be unexported (golint)
    • Line 114: warning: exported type MethodFetcher should have comment or be unexported (golint)
    • Line 116: warning: exported method MethodFetcher.Fetch should have comment or be unexported (golint)
    • Line 124: warning: exported type PortFetcher should have comment or be unexported (golint)
    • Line 126: warning: exported method PortFetcher.Fetch should have comment or be unexported (golint)
    • Line 140: warning: exported type TagFetcher should have comment or be unexported (golint)
    • Line 144: warning: exported method TagFetcher.Fetch should have comment or be unexported (golint)
    • Line 156: warning: exported type HasTagMatcher should have comment or be unexported (golint)
    • Line 160: warning: exported method HasTagMatcher.Match should have comment or be unexported (golint)
    • Line 176: warning: exported type UrlFetcher should have comment or be unexported (golint)
    • Line 178: warning: exported method UrlFetcher.Fetch should have comment or be unexported (golint)
    • Line 186: warning: exported type PathFetcher should have comment or be unexported (golint)
    • Line 188: warning: exported method PathFetcher.Fetch should have comment or be unexported (golint)
    • Line 196: warning: exported type QueryKeyInFetcher should have comment or be unexported (golint)
    • Line 200: warning: exported method QueryKeyInFetcher.Fetch should have comment or be unexported (golint)
    • Line 213: warning: exported type QueryKeyPrefixInFetcher should have comment or be unexported (golint)
    • Line 217: warning: exported method QueryKeyPrefixInFetcher.Fetch should have comment or be unexported (golint)
    • Line 232: warning: exported type QueryValueFetcher should have comment or be unexported (golint)
    • Line 245: warning: exported type QueryExistMatcher should have comment or be unexported (golint)
    • Line 247: warning: exported method QueryExistMatcher.Match should have comment or be unexported (golint)
    • Line 253: warning: exported type CookieKeyInFetcher should have comment or be unexported (golint)
    • Line 257: warning: exported method CookieKeyInFetcher.Fetch should have comment or be unexported (golint)
    • Line 271: warning: exported type CookieValueFetcher should have comment or be unexported (golint)
    • Line 275: warning: exported method CookieValueFetcher.Fetch should have comment or be unexported (golint)
    • Line 288: warning: exported type HeaderKeyInFetcher should have comment or be unexported (golint)
    • Line 292: warning: exported method HeaderKeyInFetcher.Fetch should have comment or be unexported (golint)
    • Line 307: warning: exported type HeaderValueFetcher should have comment or be unexported (golint)
    • Line 311: warning: exported method HeaderValueFetcher.Fetch should have comment or be unexported (golint)
    • Line 319: warning: exported type BypassMatcher should have comment or be unexported (golint)
    • Line 321: warning: exported method BypassMatcher.Match should have comment or be unexported (golint)
    • Line 329: warning: exported type InMatcher should have comment or be unexported (golint)
    • Line 334: warning: exported method InMatcher.Match should have comment or be unexported (golint)
    • Line 347: warning: exported type ExactMatcher should have comment or be unexported (golint)
    • Line 352: warning: exported method ExactMatcher.Match should have comment or be unexported (golint)
    • Line 363: warning: exported function NewExactMatcher should have comment or be unexported (golint)
    • Line 386: warning: exported function NewInMatcher should have comment or be unexported (golint)
    • Line 401: warning: exported type IpInMatcher should have comment or be unexported (golint)
    • Line 405: warning: exported method IpInMatcher.Match should have comment or be unexported (golint)
    • Line 419: warning: exported function NewIpInMatcher should have comment or be unexported (golint)
    • Line 435: warning: exported type PrefixInMatcher should have comment or be unexported (golint)
    • Line 440: warning: exported method PrefixInMatcher.Match should have comment or be unexported (golint)
    • Line 453: warning: exported function NewPrefixInMatcher should have comment or be unexported (golint)
    • Line 466: warning: exported type PathElementPrefixMatcher should have comment or be unexported (golint)
    • Line 471: warning: exported method PathElementPrefixMatcher.Match should have comment or be unexported (golint)
    • Line 488: warning: exported function NewPathElementPrefixMatcher should have comment or be unexported (golint)
    • Line 511: warning: exported type SuffixInMatcher should have comment or be unexported (golint)
    • Line 516: warning: exported method SuffixInMatcher.Match should have comment or be unexported (golint)
    • Line 529: warning: exported function NewSuffixInMatcher should have comment or be unexported (golint)
    • Line 542: warning: exported type RegMatcher should have comment or be unexported (golint)
    • Line 546: warning: exported method RegMatcher.Match should have comment or be unexported (golint)
    • Line 555: warning: exported function NewRegMatcher should have comment or be unexported (golint)
    • Line 586: warning: exported type UAFetcher should have comment or be unexported (golint)
    • Line 588: warning: exported method UAFetcher.Fetch should have comment or be unexported (golint)
    • Line 596: warning: exported type ResHeaderKeyInFetcher should have comment or be unexported (golint)
    • Line 600: warning: exported method ResHeaderKeyInFetcher.Fetch should have comment or be unexported (golint)
    • Line 615: warning: exported type ResHeaderValueFetcher should have comment or be unexported (golint)
    • Line 619: warning: exported method ResHeaderValueFetcher.Fetch should have comment or be unexported (golint)
    • Line 627: warning: exported type ResCodeFetcher should have comment or be unexported (golint)
    • Line 629: warning: exported method ResCodeFetcher.Fetch should have comment or be unexported (golint)
    • Line 637: warning: exported type TrustedCIpMatcher should have comment or be unexported (golint)
    • Line 639: warning: exported method TrustedCIpMatcher.Match should have comment or be unexported (golint)
    • Line 643: warning: exported type SecureProtoMatcher should have comment or be unexported (golint)
    • Line 645: warning: exported method SecureProtoMatcher.Match should have comment or be unexported (golint)
    • Line 652: warning: exported method CIPFetcher.Fetch should have comment or be unexported (golint)
    • Line 663: warning: exported method SIPFetcher.Fetch should have comment or be unexported (golint)
    • Line 679: warning: exported method VIPFetcher.Fetch should have comment or be unexported (golint)
    • Line 687: warning: exported type IPMatcher should have comment or be unexported (golint)
    • Line 692: warning: exported function NewIPMatcher should have comment or be unexported (golint)
    • Line 719: warning: exported method IPMatcher.Match should have comment or be unexported (golint)
    • Line 737: warning: exported type HostMatcher should have comment or be unexported (golint)
    • Line 741: warning: exported method HostMatcher.Match should have comment or be unexported (golint)
    • Line 767: warning: exported function NewHostMatcher should have comment or be unexported (golint)
    • Line 782: warning: exported type ContainMatcher should have comment or be unexported (golint)
    • Line 787: warning: exported function NewContainMatcher should have comment or be unexported (golint)
    • Line 810: warning: exported method ContainMatcher.Match should have comment or be unexported (golint)
    • Line 823: warning: exported type HashValueMatcher should have comment or be unexported (golint)
    • Line 828: warning: exported method HashValueMatcher.Match should have comment or be unexported (golint)
    • Line 906: warning: exported function NewHashMatcher should have comment or be unexported (golint)
    • Line 922: warning: exported function GetHash should have comment or be unexported (golint)
    • Line 937: warning: exported method SniFetcher.Fetch should have comment or be unexported (golint)
    • Line 950: warning: exported type ClientAuthMatcher should have comment or be unexported (golint)
    • Line 952: warning: exported method ClientAuthMatcher.Match should have comment or be unexported (golint)
    • Line 963: warning: exported method ClientCANameFetcher.Fetch should have comment or be unexported (golint)
    • Line 977: warning: exported type ContextValueFetcher should have comment or be unexported (golint)
    • Line 981: warning: exported method ContextValueFetcher.Fetch should have comment or be unexported (golint)
    • Line 989: warning: comment on exported type TimeMatcher should be of the form "TimeMatcher ..." (with optional leading article) (golint)
    • Line 995: warning: exported function NewTimeMatcher should have comment or be unexported (golint)
    • Line 1013: warning: exported method TimeMatcher.Match should have comment or be unexported (golint)
    • Line 1027: warning: exported type BfeTimeFetcher should have comment or be unexported (golint)
    • Line 1046: warning: comment on exported type PeriodicTimeMatcher should be of the form "PeriodicTimeMatcher ..." (with optional leading article) (golint)
    • Line 1053: warning: comment on exported function NewPeriodicTimeMatcher should be of the form "NewPeriodicTimeMatcher ..." (golint)
    • Line 1081: warning: exported method PeriodicTimeMatcher.Match should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_cluster_conf/cluster_table_conf/cluster_table_load.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 41: warning: exported method BackendConf.AddrInfo should have comment or be unexported (golint)
    • Line 45: warning: exported type SubClusterBackend should have comment or be unexported (golint)
    • Line 46: warning: exported type ClusterBackend should have comment or be unexported (golint)
    • Line 47: warning: exported type AllClusterBackend should have comment or be unexported (golint)
    • Line 90: warning: exported method AllClusterBackend.HasDiff should have comment or be unexported (golint)
    • Line 126: warning: exported method ClusterBackend.HasDiff should have comment or be unexported (golint)
    • Line 130: warning: exported method ClusterBackend.IsSame should have comment or be unexported (golint)
    • Line 161: warning: exported method AllClusterBackend.Check should have comment or be unexported (golint)
    • Line 161: warning: receiver name conf should be consistent with previous receiver name allClusterBackend for AllClusterBackend (golint)
    • Line 165: warning: exported method SubClusterBackend.Check should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_prison/mod_prison.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 43: warning: exported const ModPrison should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported var ErrPrison should have comment or be unexported (golint)
    • Line 51: warning: exported type ModulePrisonState should have comment or be unexported (golint)
    • Line 56: warning: exported type PrisonInfo should have comment or be unexported (golint)
    • Line 64: warning: exported type ModulePrison should have comment or be unexported (golint)
    • Line 72: warning: exported function NewModulePrison should have comment or be unexported (golint)
    • Line 80: warning: exported method ModulePrison.Name should have comment or be unexported (golint)
    • Line 177: warning: exported method ModulePrison.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_basic/auth_basic_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type AuthBasicRuleFile should have comment or be unexported (golint)
    • Line 35: warning: exported type AuthBasicRule should have comment or be unexported (golint)
    • Line 41: warning: exported type RuleFileList should have comment or be unexported (golint)
    • Line 42: warning: exported type RuleList should have comment or be unexported (golint)
    • Line 44: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 45: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 47: warning: exported type AuthBasicConfFile should have comment or be unexported (golint)
    • Line 52: warning: exported type AuthBasicConf should have comment or be unexported (golint)
    • Line 83: warning: exported function AuthBasicRuleCheck should have comment or be unexported (golint)
    • Line 95: warning: exported function RuleListCheck should have comment or be unexported (golint)
    • Line 106: warning: exported function ProductRulesCheck should have comment or be unexported (golint)
    • Line 121: warning: exported function AuthBasicConfCheck should have comment or be unexported (golint)
    • Line 176: warning: exported function AuthBasicConfLoad should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_errors/errors_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported type ErrorsRuleFile should have comment or be unexported (golint)
    • Line 33: warning: exported type ErrorsRule should have comment or be unexported (golint)
    • Line 38: warning: exported type RuleFileList should have comment or be unexported (golint)
    • Line 39: warning: exported type RuleList should have comment or be unexported (golint)
    • Line 41: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 42: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 44: warning: exported type ErrorsConfFile should have comment or be unexported (golint)
    • Line 49: warning: exported type ErrorsConf should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_rewrite/mod_rewrite.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 39: warning: exported type ModuleReWrite should have comment or be unexported (golint)
    • Line 46: warning: exported function NewModuleReWrite should have comment or be unexported (golint)
    • Line 54: warning: exported method ModuleReWrite.Name should have comment or be unexported (golint)
    • Line 119: warning: exported method ModuleReWrite.Init should have comment or be unexported (golint)
    • bfe/bfe_util/access_log/access_log.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type LogConfig should have comment or be unexported (golint)
    • Line 40: warning: exported method LogConfig.Check should have comment or be unexported (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bfe/bfe_util/fixed_pool.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type FixedPool should have comment or be unexported (golint)
    • Line 26: warning: exported function NewFixedPool should have comment or be unexported (golint)
    • bfe/bfe_balance/backend/bfe_backend.go
    • Line 48: warning: exported function NewBfeBackend should have comment or be unexported (golint)
    • Line 65: warning: exported method BfeBackend.GetAddr should have comment or be unexported (golint)
    • Line 69: warning: exported method BfeBackend.GetAddrInfo should have comment or be unexported (golint)
    • Line 73: warning: exported method BfeBackend.Avail should have comment or be unexported (golint)
    • Line 81: warning: exported method BfeBackend.SetAvail should have comment or be unexported (golint)
    • Line 95: warning: exported method BfeBackend.SetRestart should have comment or be unexported (golint)
    • Line 101: warning: exported method BfeBackend.GetRestart should have comment or be unexported (golint)
    • Line 108: warning: exported method BfeBackend.ConnNum should have comment or be unexported (golint)
    • Line 116: warning: exported method BfeBackend.IncConnNum should have comment or be unexported (golint)
    • Line 122: warning: exported method BfeBackend.DecConnNum should have comment or be unexported (golint)
    • Line 128: warning: exported method BfeBackend.AddFailNum should have comment or be unexported (golint)
    • Line 134: warning: exported method BfeBackend.ResetFailNum should have comment or be unexported (golint)
    • Line 140: warning: exported method BfeBackend.FailNum should have comment or be unexported (golint)
    • Line 148: warning: exported method BfeBackend.AddSuccNum should have comment or be unexported (golint)
    • Line 154: warning: exported method BfeBackend.ResetSuccNum should have comment or be unexported (golint)
    • Line 160: warning: exported method BfeBackend.SuccNum should have comment or be unexported (golint)
    • Line 181: warning: exported method BfeBackend.UpdateStatus should have comment or be unexported (golint)
    • Line 199: warning: exported method BfeBackend.Release should have comment or be unexported (golint)
    • Line 203: warning: exported method BfeBackend.Close should have comment or be unexported (golint)
    • Line 207: warning: exported method BfeBackend.CloseChan should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_cors/cors_rule_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 25: warning: exported type CorsRuleTable should have comment or be unexported (golint)
    • Line 31: warning: exported type CorsRule should have comment or be unexported (golint)
    • Line 41: warning: exported type ProductRuleList should have comment or be unexported (golint)
    • Line 42: warning: exported type CorsRuleList should have comment or be unexported (golint)
    • Line 44: warning: exported function NewCorsRuleTable should have comment or be unexported (golint)
    • Line 50: warning: exported method CorsRuleTable.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method CorsRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_basic/action/action_rewrite_test.go
    • Line 38: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 51: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bfe/bfe_stream/server.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 35: warning: exported type Server should have comment or be unexported (golint)
    • Line 134: warning: exported type ServerRule should have comment or be unexported (golint)
    • Line 140: warning: exported function SetServerRule should have comment or be unexported (golint)
    • bfe/bfe_spdy/state.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type SpdyState should have comment or be unexported (golint)
    • Line 47: warning: exported function GetSpdyState should have comment or be unexported (golint)
    • bfe/bfe_server/protocol_handler.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 36: warning: exported type ProtocolHandler should have comment or be unexported (golint)
    • Line 43: warning: exported function NewProtocolHandler should have comment or be unexported (golint)
    • bfe/bfe_server/server_status.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 54: warning: exported type ServerStatus should have comment or be unexported (golint)
    • Line 103: warning: exported function NewServerStatus should have comment or be unexported (golint)
    • Line 265: warning: exported method BfeServer.ModuleStatusGetJSON should have comment or be unexported (golint)
    • Line 269: warning: exported method BfeServer.ModuleHandlersGetJSON should have comment or be unexported (golint)
    • bfe/bfe_tls/tls.go
    • Line 19: warning: package comment should be of the form "Package bfe_tls ..." (golint)
    • Line 20: warning: don't use an underscore in package name (golint)
    • Line 84: warning: comment on exported function UpdateListener should be of the form "UpdateListener ..." (golint)
    • bfe/bfe_http2/hpack/hpack.go
    • Line 164: warning: exported method Decoder.SetMaxDynamicTableSize should have comment or be unexported (golint)
    • Line 282: warning: comment on exported method Decoder.DecodeFull should be of the form "DecodeFull ..." (golint)
    • Line 303: warning: exported method Decoder.Close should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_trace/trace_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 27: warning: exported type TraceRuleFile should have comment or be unexported (golint)
    • Line 32: warning: exported type TraceRuleConf should have comment or be unexported (golint)
    • Line 37: warning: exported type TraceRuleRaw should have comment or be unexported (golint)
    • Line 42: warning: exported type ProductRuleRawList should have comment or be unexported (golint)
    • Line 43: warning: exported type RuleRawList should have comment or be unexported (golint)
    • Line 45: warning: exported function TraceRuleCheck should have comment or be unexported (golint)
    • Line 88: warning: exported function TraceRuleFileLoad should have comment or be unexported (golint)
    • bfe/bfe_util/exit.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 25: warning: exported function AbnormalExit should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_header/header_rule_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type HeaderRuleFile should have comment or be unexported (golint)
    • Line 36: warning: exported type HeaderRule should have comment or be unexported (golint)
    • Line 43: warning: exported type RuleFileList should have comment or be unexported (golint)
    • Line 44: warning: exported type RuleList should have comment or be unexported (golint)
    • Line 46: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 47: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 49: warning: exported type HeaderConfFile should have comment or be unexported (golint)
    • Line 54: warning: exported type HeaderConf should have comment or be unexported (golint)
    • Line 59: warning: exported function HeaderRuleCheck should have comment or be unexported (golint)
    • Line 85: warning: exported function RuleListCheck should have comment or be unexported (golint)
    • Line 96: warning: exported function ProductRulesCheck should have comment or be unexported (golint)
    • Line 111: warning: exported function HeaderConfCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_static/static_file.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported const EncodeGzip should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported const FileExtensionGzip should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported function ConvertEncodeToExt should have comment or be unexported (golint)
    • Line 53: warning: exported function CheckAcceptEncoding should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_rewrite/rewrite_conf_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type ReWriteRuleFile should have comment or be unexported (golint)
    • Line 36: warning: exported type ReWriteRule should have comment or be unexported (golint)
    • Line 43: warning: exported type RuleFileList should have comment or be unexported (golint)
    • Line 44: warning: exported type RuleList should have comment or be unexported (golint)
    • Line 46: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 47: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 49: warning: exported type ReWriteConfFile should have comment or be unexported (golint)
    • Line 54: warning: exported type ReWriteConf should have comment or be unexported (golint)
    • Line 59: warning: exported function ReWriteRuleCheck should have comment or be unexported (golint)
    • Line 89: warning: exported function RuleListCheck should have comment or be unexported (golint)
    • Line 100: warning: exported function ProductRulesCheck should have comment or be unexported (golint)
    • Line 115: warning: exported function ReWriteConfCheck should have comment or be unexported (golint)
    • bfe/bfe_util/json/json.go
    • Line 1: warning: package comment should be of the form "Package json ..." (golint)
    • Line 24: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 28: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 32: warning: exported function Marshal should have comment or be unexported (golint)
    • Line 36: warning: exported function MarshalToString should have comment or be unexported (golint)
    • Line 41: warning: exported function MarshalIndent should have comment or be unexported (golint)
    • Line 46: warning: exported function UnmarshalFromString should have comment or be unexported (golint)
    • Line 50: warning: exported function Unmarshal should have comment or be unexported (golint)
    • bfe/bfe_spdy/server_conn.go
    • Line 21: warning: don't use an underscore in package name (golint)
    • Line 73: warning: exported type Server should have comment or be unexported (golint)
    • Line 126: warning: exported function SetConnTimeout should have comment or be unexported (golint)
    • Line 141: warning: exported function SetReadStreamTimeout should have comment or be unexported (golint)
    • Line 145: warning: exported function SetWriteStreamTimeout should have comment or be unexported (golint)
    • Line 173: warning: receiver name srv should be consistent with previous receiver name s for Server (golint)
    • bfe/bfe_tls/state.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type TlsState should have comment or be unexported (golint)
    • Line 42: warning: exported function GetTlsState should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_route_conf/vip_rule_conf/vip_table_load.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 30: warning: exported type VipList should have comment or be unexported (golint)
    • Line 32: warning: exported type Product2Vip should have comment or be unexported (golint)
    • Line 34: warning: exported type Vip2Product should have comment or be unexported (golint)
    • Line 36: warning: exported type VipTableConf should have comment or be unexported (golint)
    • Line 41: warning: exported type VipConf should have comment or be unexported (golint)
    • Line 46: warning: exported method VipTableConf.LoadAndCheck should have comment or be unexported (golint)
    • Line 68: warning: exported function VipTableConfCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_basic/auth_basic_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type AuthBasicRuleTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewAuthBasicRuleTable should have comment or be unexported (golint)
    • Line 33: warning: exported method AuthBasicRuleTable.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method AuthBasicRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_compress/action.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported const ActionGzip should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type ActionFile should have comment or be unexported (golint)
    • Line 38: warning: exported type Action should have comment or be unexported (golint)
    • Line 44: warning: exported function ActionFileCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_markdown/conf_mod_md.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 25: warning: exported const DefaultRulePath should have comment or be unexported (golint)
    • Line 27: warning: exported type ConfModMarkdown should have comment or be unexported (golint)
    • Line 38: warning: exported method ConfModMarkdown.Check should have comment or be unexported (golint)
    • Line 49: warning: exported function ConfLoad should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_logid/mod_logid.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 37: warning: exported const ModLogId should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type ModuleLogIdState should have comment or be unexported (golint)
    • Line 44: warning: exported type ModuleLogId should have comment or be unexported (golint)
    • Line 50: warning: exported function NewModuleLogId should have comment or be unexported (golint)
    • Line 58: warning: exported method ModuleLogId.Name should have comment or be unexported (golint)
    • Line 62: warning: exported method ModuleLogId.Init should have comment or be unexported (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bfe/bfe_modules/mod_header/action_cookie.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported const ReqCookieSet should have comment (or a comment on this block) or be unexported (golint)
    • Line 176: warning: exported function ReqCookieActionDo should have comment or be unexported (golint)
    • Line 186: warning: exported function RspCookieActionDo should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_waf/waf_job.go
    • Line 1: warning: package comment should be of the form "Package mod_waf ..." (golint)
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 23: warning: exported const CheckType should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported function NewWafJob should have comment or be unexported (golint)
    • bfe/bfe_config/bfe_tls_conf/server_cert_conf/server_cert_conf_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 36: warning: exported const DefaultCert should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type ServerCertConfMap should have comment or be unexported (golint)
    • Line 57: warning: comment on exported method ServerCertConf.Check should be of the form "Check ..." (golint)
    • Line 89: warning: comment on exported method BfeServerCertConf.Check should be of the form "Check ..." (golint)
    • Line 143: warning: exported function OcspResponseCheck should have comment or be unexported (golint)
    • Line 172: warning: exported function OcspResponseLoad should have comment or be unexported (golint)
    • Line 182: warning: exported function ServerCertParse should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_secure_link/prodcut_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type SecureLinkTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewSecureLinkTable should have comment or be unexported (golint)
    • Line 31: warning: exported method SecureLinkTable.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method SecureLinkTable.Search should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_waf/mod_waf.go
    • Line 1: warning: package comment should be of the form "Package mod_waf ..." (golint)
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 35: warning: exported const ModWaf should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported var ErrWaf should have comment or be unexported (golint)
    • Line 42: warning: exported type ModuleWafState should have comment or be unexported (golint)
    • Line 52: warning: exported type ModuleWaf should have comment or be unexported (golint)
    • Line 61: warning: exported function NewModuleWaf should have comment or be unexported (golint)
    • Line 70: warning: exported method ModuleWaf.Name should have comment or be unexported (golint)
    • Line 157: warning: exported method ModuleWaf.Init should have comment or be unexported (golint)
    • bfe/bfe_http2/frame.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 46: warning: exported const FrameData should have comment (or a comment on this block) or be unexported (golint)
    • Line 359: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 373: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 395: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 413: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 414: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 415: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 416: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 576: warning: exported method DataFrame.StreamEnded should have comment or be unexported (golint)
    • Line 633: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 637: warning: comment on exported method Framer.WriteDataPadded should be of the form "WriteDataPadded ..." (golint)
    • Line 645: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 713: warning: exported method SettingsFrame.IsAck should have comment or be unexported (golint)
    • Line 717: warning: exported method SettingsFrame.Value should have comment or be unexported (golint)
    • Line 752: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 761: warning: comment on exported method Framer.WriteSettingsAck should be of the form "WriteSettingsAck ..." (golint)
    • Line 765: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 779: warning: exported method PingFrame.IsAck should have comment or be unexported (golint)
    • Line 793: warning: exported method Framer.WritePing should have comment or be unexported (golint)
    • Line 793: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 836: warning: exported method Framer.WriteGoAway should have comment or be unexported (golint)
    • Line 836: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 900: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 921: warning: exported method HeadersFrame.HeaderBlockFragment should have comment or be unexported (golint)
    • Line 926: warning: exported method HeadersFrame.HeadersEnded should have comment or be unexported (golint)
    • Line 930: warning: exported method HeadersFrame.StreamEnded should have comment or be unexported (golint)
    • Line 934: warning: exported method HeadersFrame.HasPriority should have comment or be unexported (golint)
    • Line 1010: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 1071: warning: exported method PriorityParam.IsZero should have comment or be unexported (golint)
    • Line 1098: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 1133: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 1156: warning: exported method ContinuationFrame.HeaderBlockFragment should have comment or be unexported (golint)
    • Line 1161: warning: exported method ContinuationFrame.HeadersEnded should have comment or be unexported (golint)
    • Line 1169: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 1190: warning: exported method PushPromiseFrame.HeaderBlockFragment should have comment or be unexported (golint)
    • Line 1195: warning: exported method PushPromiseFrame.HeadersEnded should have comment or be unexported (golint)
    • Line 1265: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 1291: warning: receiver name f should be consistent with previous receiver name fr for Framer (golint)
    • Line 1547: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • bfe/bfe_tls/ticket.go
    • Line 19: warning: don't use an underscore in package name (golint)
    • Line 200: warning: exported function PKCS5Padding should have comment or be unexported (golint)
    • bfe/bfe_route/host_table.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported var ErrNoProduct should have comment or be unexported (golint)
    • Line 52: warning: exported type Versions should have comment or be unexported (golint)
    • Line 58: warning: exported type Status should have comment or be unexported (golint)
    • bfe/bfe_http/common.go
    • Line 15: warning: package comment should be of the form "Package bfe_http ..." (golint)
    • Line 18: warning: don't use an underscore in package name (golint)
    • Line 50: warning: exported var ErrBodyNotAllowed should have comment or be unexported (golint)
    • Line 97: warning: exported method Server.DoKeepAlives should have comment or be unexported (golint)
    • Line 160: warning: comment on exported type Handler should be of the form "Handler ..." (with optional leading article) (golint)
    • Line 184: warning: exported type Hijacker should have comment or be unexported (golint)
    • Line 224: warning: exported type WriteFlusher should have comment or be unexported (golint)
    • Line 229: warning: exported type MaxLatencyWriter should have comment or be unexported (golint)
    • Line 242: warning: exported function NewMaxLatencyWriter should have comment or be unexported (golint)
    • Line 260: warning: exported method MaxLatencyWriter.Flush should have comment or be unexported (golint)
    • Line 272: warning: exported method MaxLatencyWriter.FlushLoop should have comment or be unexported (golint)
    • Line 296: warning: exported method MaxLatencyWriter.Stop should have comment or be unexported (golint)
    • Line 308: warning: exported type ConnectError should have comment or be unexported (golint)
    • Line 317: warning: exported type WriteRequestError should have comment or be unexported (golint)
    • Line 325: warning: exported method WriteRequestError.CheckTargetError should have comment or be unexported (golint)
    • Line 332: warning: exported type RespHeaderTimeoutError should have comment or be unexported (golint)
    • Line 338: warning: exported type ReadRespHeaderError should have comment or be unexported (golint)
    • Line 346: warning: exported type TransportBrokenError should have comment or be unexported (golint)
    • Line 352: warning: exported type FlowLimiter should have comment or be unexported (golint)
    • Line 368: warning: exported function NewCloseWatcher should have comment or be unexported (golint)
    • Line 377: warning: exported method CloseWatcher.WatchLoop should have comment or be unexported (golint)
    • Line 400: warning: exported method CloseWatcher.Stop should have comment or be unexported (golint)
    • Line 404: warning: comment on exported type Peeker should be of the form "Peeker ..." (with optional leading article) (golint)
    • Line 409: warning: exported function CopyHeader should have comment or be unexported (golint)
    • bfe/bfe_util/time.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 24: warning: comment on exported var TimeZoneMap should be of the form "TimeZoneMap ..." (golint)
    • bfe/bfe_modules/bfe_modules.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 132: warning: comment on exported function InitModuleList should be of the form "InitModuleList ..." (golint)
    • Line 137: warning: comment on exported function SetModules should be of the form "SetModules ..." (golint)
    • bfe/bfe_basic/session.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 31: warning: exported type Session should have comment or be unexported (golint)
    • Line 78: warning: exported method Session.GetVip should have comment or be unexported (golint)
    • Line 82: warning: exported method Session.Finish should have comment or be unexported (golint)
    • Line 87: warning: exported method Session.IncReqNum should have comment or be unexported (golint)
    • Line 91: warning: exported method Session.IncReqNumActive should have comment or be unexported (golint)
    • Line 95: warning: exported method Session.UpdateReadTotal should have comment or be unexported (golint)
    • Line 106: warning: exported method Session.UpdateWriteTotal should have comment or be unexported (golint)
    • Line 117: warning: exported method Session.SetError should have comment or be unexported (golint)
    • Line 124: warning: exported method Session.GetError should have comment or be unexported (golint)
    • Line 133: warning: exported method Session.SetContext should have comment or be unexported (golint)
    • Line 139: warning: exported method Session.GetContext should have comment or be unexported (golint)
    • bfe/bfe_http/transport.go
    • Line 24: warning: don't use an underscore in package name (golint)
    • Line 705: warning: receiver name ck should be consistent with previous receiver name cm for connectMethod (golint)
    • Line 709: warning: receiver name ck should be consistent with previous receiver name cm for connectMethod (golint)
    • bfe/bfe_modules/mod_secure_link/data_load.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 37: warning: exported type Rule should have comment or be unexported (golint)
    • Line 48: warning: exported type ExpressionNodeFile should have comment or be unexported (golint)
    • Line 53: warning: exported method Rule.Check should have comment or be unexported (golint)
    • Line 57: warning: exported type ProductRulesFile should have comment or be unexported (golint)
    • Line 58: warning: exported type ProductRules should have comment or be unexported (golint)
    • Line 60: warning: exported type DataFile should have comment or be unexported (golint)
    • Line 65: warning: exported type Data should have comment or be unexported (golint)
    • Line 88: warning: exported function NewData should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_jwt/auth_jwt_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type AuthJWTRuleTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewAuthJWTRuleTable should have comment or be unexported (golint)
    • Line 33: warning: exported method AuthJWTRuleTable.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method AuthJWTRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_block/conf_mod_block.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConfModBlock should have comment or be unexported (golint)
    • Line 57: warning: exported method ConfModBlock.Check should have comment or be unexported (golint)
    • Line 61: warning: exported function ConfModBlockCheck should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_cors/mod_cors.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 39: warning: exported const ModCors should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type ModuleCorsState should have comment or be unexported (golint)
    • Line 62: warning: exported type ModuleCors should have comment or be unexported (golint)
    • Line 70: warning: exported function NewModuleCors should have comment or be unexported (golint)
    • Line 78: warning: exported method ModuleCors.Name should have comment or be unexported (golint)
    • Line 313: warning: exported method ModuleCors.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_basic/mod_auth_basic.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 36: warning: exported const ModAuthBasic should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type ModuleAuthBasicState should have comment or be unexported (golint)
    • Line 46: warning: exported type ModuleAuthBasic should have comment or be unexported (golint)
    • Line 58: warning: exported function NewModuleAuthBasic should have comment or be unexported (golint)
    • Line 66: warning: exported method ModuleAuthBasic.Name should have comment or be unexported (golint)
    • Line 160: warning: exported method ModuleAuthBasic.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_auth_basic/conf_mod_auth_basic.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type ConfModAuthBasic should have comment or be unexported (golint)
    • Line 36: warning: exported function ConfLoad should have comment or be unexported (golint)
    • Line 53: warning: exported method ConfModAuthBasic.Check should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_errors/action.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported const RETURN should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type ActionFile should have comment or be unexported (golint)
    • Line 42: warning: exported type Action should have comment or be unexported (golint)
    • Line 54: warning: exported type ActionFileList should have comment or be unexported (golint)
    • Line 151: warning: exported function ErrorsActionsDo should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_static/mod_static.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 38: warning: exported const ModStatic should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type ModuleStaticState should have comment or be unexported (golint)
    • Line 55: warning: exported type ModuleStatic should have comment or be unexported (golint)
    • Line 64: warning: exported function NewModuleStatic should have comment or be unexported (golint)
    • Line 73: warning: exported method ModuleStatic.Name should have comment or be unexported (golint)
    • Line 270: warning: exported method ModuleStatic.Init should have comment or be unexported (golint)
    • bfe/bfe_modules/mod_compress/compress_rule_table.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type CompressRuleTable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewCompressRuleTable should have comment or be unexported (golint)
    • Line 33: warning: exported method CompressRuleTable.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method CompressRuleTable.Search should have comment or be unexported (golint)
    • bfe/bfe_util/semver/semver.go
    • Line 24: warning: exported var ErrSemverEmpty should have comment or be unexported (golint)
    • Line 28: warning: exported type Version should have comment or be unexported (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 117: warning: exported method Version.CompareMajor should have comment or be unexported (golint)
    • Line 127: warning: exported method Version.CompareMinor should have comment or be unexported (golint)
    • Line 137: warning: exported method Version.ComparePatch should have comment or be unexported (golint)
    • bfe/bfe_util/get_net_info.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 93: warning: exported function NativeUint16 should have comment or be unexported (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words