Report for github.com/tenta-browser/tenta-dns

(v0.0.0-20200618084737-8a8ab0bbeb86)

B    Not bad!    Found 57 issues across 65 files

Tweet

gofmt76%

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!


gocyclo81%

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.

    • tenta-dns/director/director.go
    • Line 78: warning: cyclomatic complexity 55 of function (*Director).doOrchestrate() is high (> 15) (gocyclo)
    • Line 340: warning: cyclomatic complexity 19 of function domainLister() is high (> 15) (gocyclo)
    • tenta-dns/runtime/stats.go
    • Line 239: warning: cyclomatic complexity 25 of function insertStats() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 21 of function processstats() is high (> 15) (gocyclo)
    • tenta-dns/responder/recursive_dns.go
    • Line 976: warning: cyclomatic complexity 160 of function (*queryParam).doResolve() is high (> 15) (gocyclo)
    • Line 588: warning: cyclomatic complexity 60 of function (*queryParam).simpleResolve() is high (> 15) (gocyclo)
    • Line 1812: warning: cyclomatic complexity 39 of function handleDNSMessage() is high (> 15) (gocyclo)
    • Line 459: warning: cyclomatic complexity 22 of function (*queryParam).validateSignatures() is high (> 15) (gocyclo)
    • tenta-dns/responder/recursive_dns_resolver.go
    • Line 520: warning: cyclomatic complexity 71 of function doQueryRecursively() is high (> 15) (gocyclo)
    • Line 901: warning: cyclomatic complexity 38 of function evaluateResponse() is high (> 15) (gocyclo)
    • Line 1369: warning: cyclomatic complexity 32 of function validateNSEC3() is high (> 15) (gocyclo)
    • Line 1282: warning: cyclomatic complexity 27 of function validateNSEC() is high (> 15) (gocyclo)
    • Line 251: warning: cyclomatic complexity 17 of function resolveParallelHarness() is high (> 15) (gocyclo)
    • Line 396: warning: cyclomatic complexity 17 of function Resolve() is high (> 15) (gocyclo)
    • Line 863: warning: cyclomatic complexity 17 of function cacheResponse() is high (> 15) (gocyclo)
    • Line 1200: warning: cyclomatic complexity 16 of function validateRRSIG() is high (> 15) (gocyclo)
    • Line 1794: warning: cyclomatic complexity 16 of function fetchNSAsEntity() is high (> 15) (gocyclo)
    • Line 1988: warning: cyclomatic complexity 16 of function getZoneAXFR() is high (> 15) (gocyclo)
    • Line 816: warning: cyclomatic complexity 16 of function removeDNSSECRecords() is high (> 15) (gocyclo)
    • tenta-dns/runtime/config.go
    • Line 151: warning: cyclomatic complexity 57 of function ParseConfig() is high (> 15) (gocyclo)
    • Line 471: warning: cyclomatic complexity 16 of function validateAndDefaultDomain() is high (> 15) (gocyclo)

golint23%

Golint is a linter for Go source code.

    • tenta-dns/responder/randomizer/randomizer.go
    • Line 41: warning: exported type Randomizer should have comment or be unexported (golint)
    • Line 45: warning: exported type UUIDRandomizer should have comment or be unexported (golint)
    • Line 47: warning: exported function NewUUIDRandomizer should have comment or be unexported (golint)
    • Line 51: warning: exported method UUIDRandomizer.Rand should have comment or be unexported (golint)
    • Line 56: warning: exported type WordRandomizer should have comment or be unexported (golint)
    • Line 61: warning: exported function NewWordListRandomizer should have comment or be unexported (golint)
    • Line 102: warning: exported method WordRandomizer.Rand should have comment or be unexported (golint)
    • tenta-dns/responder/recursive_dns.go
    • Line 1003: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1931: 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 1941: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1952: warning: exported function ServeDNS should have comment or be unexported (golint)
    • tenta-dns/runtime/feedback.go
    • Line 37: warning: exported type Payload should have comment or be unexported (golint)
    • Line 41: warning: exported type Feedback should have comment or be unexported (golint)
    • Line 54: warning: exported method Payload.ShortEncode should have comment or be unexported (golint)
    • Line 59: warning: exported method Payload.LongEncode should have comment or be unexported (golint)
    • Line 63: warning: exported function NewPayload should have comment or be unexported (golint)
    • Line 67: warning: exported function StartFeedback should have comment or be unexported (golint)
    • Line 90: warning: exported method Feedback.SendFeedback should have comment or be unexported (golint)
    • Line 96: warning: exported method Feedback.SendMessage should have comment or be unexported (golint)
    • Line 125: warning: exported method Feedback.Stop should have comment or be unexported (golint)
    • tenta-dns/anycast/bgpconfig.go
    • Line 25: warning: exported type BGPConfig should have comment or be unexported (golint)
    • Line 34: warning: exported method BGPConfig.Equals should have comment or be unexported (golint)
    • Line 56: warning: exported method BGPConfig.Enabled should have comment or be unexported (golint)
    • tenta-dns/runtime/config.go
    • Line 42: warning: exported const PORT_UNSET should have comment or be unexported (golint)
    • Line 43: warning: exported const PORT_DISABLED should have comment or be unexported (golint)
    • Line 44: warning: exported const LIMITER_RPS_THRESHOLD should have comment or be unexported (golint)
    • Line 46: warning: exported type Config should have comment or be unexported (golint)
    • Line 69: warning: exported type NSnitchConfig should have comment or be unexported (golint)
    • Line 85: warning: exported type RecursorConfig should have comment or be unexported (golint)
    • Line 92: warning: exported type AuthorityConfig should have comment or be unexported (golint)
    • Line 100: warning: exported type ServerDomain should have comment or be unexported (golint)
    • Line 117: warning: exported type NodeConfig should have comment or be unexported (golint)
    • Line 130: warning: exported type WellKnown should have comment or be unexported (golint)
    • Line 137: warning: exported type ConfigHolder should have comment or be unexported (golint)
    • Line 145: warning: exported const ModuleTypeNSnitch should have comment (or a comment on this block) or be unexported (golint)
    • Line 151: warning: exported function ParseConfig should have comment or be unexported (golint)
    • Line 390: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 401: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 429: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 448: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 531: warning: exported method NodeConfig.MakeNodeLoc should have comment or be unexported (golint)
    • tenta-dns/zones/dyna.go
    • Line 9: warning: exported const TypeDYNA should have comment or be unexported (golint)
    • Line 11: warning: exported type DYNA should have comment or be unexported (golint)
    • Line 15: warning: exported function NewDYNA should have comment or be unexported (golint)
    • Line 17: warning: exported method DYNA.Len should have comment or be unexported (golint)
    • Line 19: warning: exported method DYNA.Parse should have comment or be unexported (golint)
    • Line 23: warning: exported method DYNA.Pack should have comment or be unexported (golint)
    • Line 26: warning: exported method DYNA.Unpack should have comment or be unexported (golint)
    • Line 29: warning: exported method DYNA.Copy should have comment or be unexported (golint)
    • tenta-dns/zones/loader.go
    • Line 13: warning: exported function LoadZones should have comment or be unexported (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • tenta-dns/zones/zone_set.go
    • Line 9: warning: exported type ZoneSet should have comment or be unexported (golint)
    • Line 11: warning: exported type ZoneEntryType should have comment or be unexported (golint)
    • Line 14: warning: exported const ZoneEntryTypeRR should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type ZoneEntry should have comment or be unexported (golint)
    • Line 25: warning: exported function NewZoneSet should have comment or be unexported (golint)
    • Line 30: warning: exported function NewZoneSetItem should have comment or be unexported (golint)
    • Line 34: warning: exported method ZoneSet.PrintToLog should have comment or be unexported (golint)
    • Line 36: warning: should omit 2nd value from range; this loop is equivalent to `for url := range ...` (golint)
    • tenta-dns/log/log.go
    • Line 60: warning: comment on exported method EventualLogger.FlushExt should be of the form "FlushExt ..." (golint)
    • Line 67: warning: exported method EventualLogger.FlushToString should have comment or be unexported (golint)
    • Line 74: warning: exported method EventualLogger.FlushToFile should have comment or be unexported (golint)
    • Line 92: warning: exported function SetLogLevel should have comment or be unexported (golint)
    • Line 96: warning: exported function GetLogger should have comment or be unexported (golint)
    • tenta-dns/common/common.go
    • Line 34: warning: exported function AddSuffix should have comment or be unexported (golint)
    • Line 38: warning: exported function RandInt should have comment or be unexported (golint)
    • Line 48: warning: exported function IsPrivateIp should have comment or be unexported (golint)
    • Line 55: warning: exported function TLSConfigModernHTTPS should have comment or be unexported (golint)
    • Line 73: warning: exported function TLSConfigLegacyHTTPS should have comment or be unexported (golint)
    • Line 94: warning: exported function TLSConfigDNS should have comment or be unexported (golint)
    • tenta-dns/runtime/garbageman.go
    • Line 36: warning: exported const KEY_NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: don't use underscores in Go names; var droplist_len should be droplistLen (golint)
    • tenta-dns/common/data.go
    • Line 25: warning: exported type DefaultJSONObject should have comment or be unexported (golint)
    • Line 33: warning: exported type DNSTelemetry should have comment or be unexported (golint)
    • Line 53: warning: exported type ClientSubnet should have comment or be unexported (golint)
    • Line 61: warning: exported type GeoLookupData should have comment or be unexported (golint)
    • Line 67: warning: exported type StatsData should have comment or be unexported (golint)
    • Line 73: warning: exported type BlacklistData should have comment or be unexported (golint)
    • tenta-dns/responder/recursive_data_helpers.go
    • Line 22: warning: exported type ExchangeHistoryItem should have comment or be unexported (golint)
    • Line 27: warning: exported type ExchangeHistory should have comment or be unexported (golint)
    • Line 33: warning: exported method ExchangeHistory.Add should have comment or be unexported (golint)
    • Line 51: warning: exported function EnsureLogDir should have comment or be unexported (golint)
    • Line 55: warning: exported function GetLogDir should have comment or be unexported (golint)
    • Line 145: warning: comment on exported type DomainCache should be of the form "DomainCache ..." (with optional leading article) (golint)
    • tenta-dns/runtime/ippool.go
    • Line 33: warning: exported type Pool should have comment or be unexported (golint)
    • Line 38: warning: exported function StartIPPool should have comment or be unexported (golint)
    • Line 55: warning: exported method Pool.RandomizeUDPDialer should have comment or be unexported (golint)
    • Line 63: warning: exported method Pool.RandomizeTCPDialer should have comment or be unexported (golint)
    • tenta-dns/runtime/stats.go
    • Line 41: warning: exported type EventType should have comment or be unexported (golint)
    • Line 44: warning: exported const EvtTypeCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type Event should have comment or be unexported (golint)
    • Line 57: warning: exported type PerSecond should have comment or be unexported (golint)
    • Line 63: warning: exported type Stats should have comment or be unexported (golint)
    • Line 74: warning: exported function StartStats should have comment or be unexported (golint)
    • Line 94: warning: exported method Stats.Stop should have comment or be unexported (golint)
    • Line 102: warning: exported method Stats.Count should have comment or be unexported (golint)
    • Line 106: warning: exported method Stats.CountN should have comment or be unexported (golint)
    • Line 115: warning: exported method Stats.Card should have comment or be unexported (golint)
    • Line 124: warning: exported method Stats.Latency should have comment or be unexported (golint)
    • Line 133: warning: exported method Stats.Tick should have comment or be unexported (golint)
    • Line 133: warning: don't use underscores in Go names; method parameter action_type should be actionType (golint)
    • Line 136: warning: exported method Stats.TickN should have comment or be unexported (golint)
    • Line 136: warning: don't use underscores in Go names; method parameter action_type should be actionType (golint)
    • Line 145: warning: exported method Stats.AddBroadcastWatcher should have comment or be unexported (golint)
    • Line 183: warning: don't use underscores in Go names; var register_key should be registerKey (golint)
    • Line 299: warning: don't use underscores in Go names; var count_bytes should be countBytes (golint)
    • Line 364: warning: exported method Stats.ListKeys should have comment or be unexported (golint)
    • tenta-dns/runtime/tor.go
    • Line 30: warning: exported type TorNode should have comment or be unexported (golint)
    • Line 37: warning: exported type ExitAddress should have comment or be unexported (golint)
    • Line 42: warning: exported function NewTorNode should have comment or be unexported (golint)
    • Line 50: warning: exported type TorHash should have comment or be unexported (golint)
    • Line 55: warning: exported function NewTorHash should have comment or be unexported (golint)
    • Line 59: warning: exported method TorHash.Add should have comment or be unexported (golint)
    • Line 66: warning: exported method TorHash.Exists should have comment or be unexported (golint)
    • Line 73: warning: exported method TorHash.Len should have comment or be unexported (golint)
    • tenta-dns/common/geo.go
    • Line 25: warning: exported type ISP should have comment or be unexported (golint)
    • Line 32: warning: exported type Position should have comment or be unexported (golint)
    • Line 39: warning: exported type GeoLocation should have comment or be unexported (golint)
    • tenta-dns/director/director.go
    • Line 47: warning: exported const RECENT_FAILURE_LIMIT should have comment or be unexported (golint)
    • Line 48: warning: exported const RECENT_FAILURE_WINDOW should have comment or be unexported (golint)
    • Line 50: warning: comment on exported type Director should be of the form "Director ..." (with optional leading article) (golint)
    • Line 61: warning: exported function NewDirector should have comment or be unexported (golint)
    • Line 73: warning: exported method Director.Orchestrate should have comment or be unexported (golint)
    • Line 323: warning: exported method Director.Stop should have comment or be unexported (golint)
    • tenta-dns/runtime/geo.go
    • Line 42: warning: exported type Query should have comment or be unexported (golint)
    • Line 49: warning: exported type ErrResponseTimeout should have comment or be unexported (golint)
    • Line 57: warning: exported type ErrNotStarted should have comment or be unexported (golint)
    • Line 63: warning: exported type Geo should have comment or be unexported (golint)
    • Line 74: warning: exported function StartGeo should have comment or be unexported (golint)
    • Line 93: warning: exported method Geo.Reload should have comment or be unexported (golint)
    • Line 101: warning: exported method Geo.Query should have comment or be unexported (golint)
    • Line 114: warning: exported method Query.Response should have comment or be unexported (golint)
    • tenta-dns/runtime/limiter.go
    • Line 37: warning: exported const UPDATE_DELAY should have comment or be unexported (golint)
    • Line 39: warning: exported type Limiter should have comment or be unexported (golint)
    • Line 52: warning: exported function StartLimiter should have comment or be unexported (golint)
    • Line 69: warning: exported method Limiter.Stop should have comment or be unexported (golint)
    • Line 74: warning: exported method Limiter.Count should have comment or be unexported (golint)
    • Line 84: warning: exported method Limiter.CountAndPass should have comment or be unexported (golint)
    • tenta-dns/runtime/runtime.go
    • Line 38: warning: exported const KEY_START_TIME should have comment or be unexported (golint)
    • Line 39: warning: exported const KEY_GEODB_UPDATED should have comment or be unexported (golint)
    • Line 42: warning: exported const SPEEDTEST_MAX_FILESIZE_EXPONENT should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: comment on exported type Runtime should be of the form "Runtime ..." (with optional leading article) (golint)
    • Line 64: warning: exported type FailureNotifier should have comment or be unexported (golint)
    • Line 66: warning: exported function NewRuntime should have comment or be unexported (golint)
    • Line 132: warning: exported method Runtime.AddService should have comment or be unexported (golint)
    • Line 137: warning: exported method Runtime.OnFinished should have comment or be unexported (golint)
    • Line 145: warning: exported method Runtime.OnFinishedOrPanic should have comment or be unexported (golint)
    • Line 164: warning: exported method Runtime.Shutdown should have comment or be unexported (golint)
    • Line 177: warning: exported method Runtime.DBGet should have comment or be unexported (golint)
    • Line 186: warning: exported method Runtime.DBPut should have comment or be unexported (golint)
    • tenta-dns/anycast/peer.go
    • Line 25: warning: exported type Peer should have comment or be unexported (golint)
    • Line 32: warning: exported method Peer.Equals should have comment or be unexported (golint)
    • tenta-dns/responder/dns_common.go
    • Line 33: warning: exported const StatsQueryTotal should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: comment on exported const StatsQueryFailure should be of the form "StatsQueryFailure ..." (golint)
    • Line 43: warning: exported var EDNSOptions should have comment or be unexported (golint)
    • Line 59: warning: exported type StackAddedPanic should have comment or be unexported (golint)
    • tenta-dns/zones/group.go
    • Line 11: warning: exported const TypeGROUP should have comment or be unexported (golint)
    • Line 13: warning: exported type GROUP should have comment or be unexported (golint)
    • Line 18: warning: exported function NewGROUP should have comment or be unexported (golint)
    • Line 22: warning: exported method GROUP.Len should have comment or be unexported (golint)
    • Line 24: warning: exported method GROUP.Parse should have comment or be unexported (golint)
    • Line 39: warning: exported method GROUP.Pack should have comment or be unexported (golint)
    • Line 42: warning: exported method GROUP.Unpack should have comment or be unexported (golint)
    • Line 45: warning: exported method GROUP.Copy should have comment or be unexported (golint)
    • tenta-dns/responder/http-handlers/security.go
    • Line 23: warning: don't use an underscore in package name (golint)
    • Line 39: warning: don't use underscores in Go names; var request_url should be requestURL (golint)
    • Line 39: warning: don't use underscores in Go names; var token_now should be tokenNow (golint)
    • Line 41: warning: don't use underscores in Go names; var timestamp_int should be timestampInt (golint)
    • Line 41: warning: don't use underscores in Go names; var timestamp_now should be timestampNow (golint)
    • Line 42: warning: don't use underscores in Go names; var error_counter should be errorCounter (golint)
    • Line 90: warning: don't use underscores in Go names; var must_set should be mustSet (golint)
    • Line 103: warning: don't use underscores in Go names; var error_counter should be errorCounter (golint)
    • Line 111: warning: don't use underscores in Go names; var error_counter should be errorCounter (golint)
    • Line 115: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • tenta-dns/anycast/routestatus.go
    • Line 27: warning: exported type RouteStatus should have comment or be unexported (golint)
    • Line 30: warning: exported const RouteStatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type RouteUpdate should have comment or be unexported (golint)
    • tenta-dns/common/interface.go
    • Line 30: warning: exported type InterfaceType should have comment or be unexported (golint)
    • Line 31: warning: exported type InterfaceState should have comment or be unexported (golint)
    • Line 34: warning: exported const TypeUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported const StateUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type Interface should have comment or be unexported (golint)
    • Line 58: warning: exported type Status should have comment or be unexported (golint)
    • tenta-dns/responder/recursive_dns_helpers.go
    • Line 10: warning: exported type JSONQuestion should have comment or be unexported (golint)
    • Line 15: warning: exported type JSONRR should have comment or be unexported (golint)
    • Line 21: warning: exported type JSONResponse should have comment or be unexported (golint)
    • Line 28: warning: exported function JSONFromMsg should have comment or be unexported (golint)
    • Line 74: warning: exported function ToA should have comment or be unexported (golint)
    • Line 91: warning: exported function ToNS should have comment or be unexported (golint)
    • tenta-dns/responder/recursive_dns_resolver.go
    • Line 27: warning: exported const LOGGING_NONE should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported const THREADING_NONE should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported var THREADING should have comment or be unexported (golint)
    • Line 46: warning: comment on exported const EDNS_ALLOWED should be of the form "EDNS_ALLOWED ..." (golint)
    • Line 48: warning: exported const EDNS_SKIP should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported const RECURSIVE_DNS_UDP_SIZE should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: exported const PROVIDER_TENTA should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: exported const NETWORK_UDP should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: exported const RR_NAVIGATOR_NEXT should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: exported const RESPONSE_UNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 92: warning: comment on exported const RESPONSE_NODATA should be of the form "RESPONSE_NODATA ..." (golint)
    • Line 119: warning: exported var RESPONSE_EMPTY should have comment or be unexported (golint)
    • Line 179: warning: exported type JSONTLSMAP should have comment or be unexported (golint)
    • Line 184: warning: exported var NetworkToPort should have comment or be unexported (golint)
    • Line 271: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 358: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 371: warning: exported function NewResolverRuntime should have comment or be unexported (golint)
    • Line 422: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 568: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 709: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 730: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1218: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1634: warning: error should be the last type when returning multiple items (golint)
    • Line 1900: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 2030: warning: should omit 2nd value from range; this loop is equivalent to `for z := range ...` (golint)
    • Line 2039: warning: should omit 2nd value from range; this loop is equivalent to `for z := range ...` (golint)
    • Line 2099: warning: exported function LogInfo should have comment or be unexported (golint)
    • Line 2114: warning: exported function LogError should have comment or be unexported (golint)
    • tenta-dns/runtime/cache.go
    • Line 35: warning: exported const CACHE_EVICTION_RATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported const KV_TLS_CAPABILITY should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported const ITEM_CACHE_DNSSEC_DESIGNATION should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported type DNSCacheHolder should have comment or be unexported (golint)
    • Line 57: warning: exported type DNSCache should have comment or be unexported (golint)
    • Line 112: warning: exported type ItemCacheExtra should have comment or be unexported (golint)
    • Line 117: warning: exported type TLSSupport should have comment or be unexported (golint)
    • Line 123: warning: exported function NewTLSSupportItem should have comment or be unexported (golint)
    • Line 127: warning: exported function EqualTLSSupportItem should have comment or be unexported (golint)
    • Line 235: warning: exported method DNSCacheHolder.Put should have comment or be unexported (golint)
    • Line 239: warning: exported method DNSCacheHolder.Get should have comment or be unexported (golint)
    • Line 244: warning: exported method DNSCacheHolder.GetString should have comment or be unexported (golint)
    • Line 256: warning: exported method DNSCacheHolder.GetInt should have comment or be unexported (golint)
    • Line 268: warning: exported method DNSCacheHolder.GetBool should have comment or be unexported (golint)
    • Line 280: warning: exported method DNSCacheHolder.GetAllWithKey should have comment or be unexported (golint)
    • Line 294: warning: exported method DNSCacheHolder.Insert should have comment or be unexported (golint)
    • Line 305: warning: exported method DNSCacheHolder.InsertResponse should have comment or be unexported (golint)
    • Line 369: warning: exported method DNSCacheHolder.Retrieve should have comment or be unexported (golint)
    • Line 669: warning: comment on exported function MapKey should be of the form "MapKey ..." (golint)
    • Line 677: warning: exported function AsRR should have comment or be unexported (golint)
    • Line 684: warning: exported function AsMsg should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.


misspell93%

Misspell Finds commonly misspelled English words

    • tenta-dns/runtime/cache.go
    • Line 485: warning: "interm" is a misspelling of "interim" (misspell)
    • Line 486: warning: "interm" is a misspelling of "interim" (misspell)
    • Line 487: warning: "interm" is a misspelling of "interim" (misspell)
    • Line 500: warning: "interm" is a misspelling of "interim" (misspell)
    • Line 522: warning: "interm" is a misspelling of "interim" (misspell)
    • Line 544: warning: "interm" is a misspelling of "interim" (misspell)