registry/service_v2.go
Method Service.lookupV2Endpoints
has 61 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s *Service) lookupV2Endpoints(hostname string) (endpoints []APIEndpoint, err error) {
ana := s.config.allowNondistributableArtifacts(hostname)
if hostname == DefaultNamespace || hostname == IndexHostname {
for _, mirror := range s.config.Mirrors {
Method Service.lookupV2Endpoints
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *Service) lookupV2Endpoints(hostname string) (endpoints []APIEndpoint, err error) {
ana := s.config.allowNondistributableArtifacts(hostname)
if hostname == DefaultNamespace || hostname == IndexHostname {
for _, mirror := range s.config.Mirrors {