loader/jsonconfig/registry.go

Summary

Maintainability
A
35 mins
Test Coverage

Function translateRegistry has 5 return statements (exceeds 4 allowed).
Open

func translateRegistry(data json.RawMessage) (config.Registry, error) {
    typeHint := &RegistryTypeHint{Type: "server"}

    if err := json.Unmarshal(data, typeHint); err != nil {
        return nil, err
Severity: Major
Found in loader/jsonconfig/registry.go - About 35 mins to fix

    exported type ServerRegistry should have comment or be unexported
    Open

        ServerRegistry struct {
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    exported type RegistryTypeHint should have comment or be unexported
    Open

        RegistryTypeHint struct {
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    exported const DefaultECRRegion should have comment (or a comment on this block) or be unexported
    Open

        DefaultECRRegion   = "us-east-1"
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    exported method ServerRegistry.Translate should have comment or be unexported
    Open

    func (r *ServerRegistry) Translate() config.Registry {
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    exported type Registry should have comment or be unexported
    Open

        Registry interface {
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    exported method ECRRegistry.Translate should have comment or be unexported
    Open

    func (r *ECRRegistry) Translate() config.Registry {
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    exported type GCRRegistry should have comment or be unexported
    Open

        GCRRegistry struct {
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    exported method GCRRegistry.Translate should have comment or be unexported
    Open

    func (r *GCRRegistry) Translate() config.Registry {
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    exported type ECRRegistry should have comment or be unexported
    Open

        ECRRegistry struct {
    Severity: Minor
    Found in loader/jsonconfig/registry.go by golint

    There are no issues that match your filters.

    Category
    Status