bus/auth.go

Summary

Maintainability
A
1 hr
Test Coverage
C
74%

Function authenticateCall has 10 return statements (exceeds 4 allowed).
Open

func authenticateCall(endpoint net.EndPoint, permissions CapabilityMap) (CapabilityMap, error) {

    // 1. prepare to receive a capability message
    filter := func(hdr *net.Header) (matched bool, keep bool) {
        if hdr.Type == net.Capability {
Severity: Major
Found in bus/auth.go - About 1 hr to fix

    Function authenticateContinue has 6 return statements (exceeds 4 allowed).
    Open

    func authenticateContinue(endpoint net.EndPoint, prefered, resp CapabilityMap) error {
        newTokenValue, ok := resp[KeyNewToken]
        if !ok {
            return fmt.Errorf("missing authentication new token")
        }
    Severity: Major
    Found in bus/auth.go - About 40 mins to fix

      exported method CapabilityMap.RemoteCancelableCalls should have comment or be unexported
      Open

      func (c CapabilityMap) RemoteCancelableCalls() bool {
      Severity: Minor
      Found in bus/auth.go by golint

      exported method CapabilityMap.MetaObjectCache should have comment or be unexported
      Open

      func (c CapabilityMap) MetaObjectCache() bool {
      Severity: Minor
      Found in bus/auth.go by golint

      exported method CapabilityMap.ObjectPtrUID should have comment or be unexported
      Open

      func (c CapabilityMap) ObjectPtrUID() bool {
      Severity: Minor
      Found in bus/auth.go by golint

      There are no issues that match your filters.

      Category
      Status