loader/jsonconfig/config.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Config.Translate has 61 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *Config) Translate(parent *config.Config) (*config.Config, error) {
    extends, err := util.UnmarshalStringList(c.Extends)
    if err != nil {
        return nil, err
    }
Severity: Minor
Found in loader/jsonconfig/config.go - About 1 hr to fix

    Method Config.Translate has 10 return statements (exceeds 4 allowed).
    Open

    func (c *Config) Translate(parent *config.Config) (*config.Config, error) {
        extends, err := util.UnmarshalStringList(c.Extends)
        if err != nil {
            return nil, err
        }
    Severity: Major
    Found in loader/jsonconfig/config.go - About 1 hr to fix

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

      func (l *ImportFileList) Translate() (*config.ImportFileList, error) {
      Severity: Minor
      Found in loader/jsonconfig/config.go by golint

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

      func (c *Options) Translate() (*config.Options, error) {
      Severity: Minor
      Found in loader/jsonconfig/config.go by golint

      exported type Config should have comment or be unexported
      Open

          Config struct {
      Severity: Minor
      Found in loader/jsonconfig/config.go by golint

      exported type ImportFileList should have comment or be unexported
      Open

          ImportFileList struct {
      Severity: Minor
      Found in loader/jsonconfig/config.go by golint

      exported type Options should have comment or be unexported
      Open

          Options struct {
      Severity: Minor
      Found in loader/jsonconfig/config.go by golint

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

      func (l *ExportFileList) Translate() (*config.ExportFileList, error) {
      Severity: Minor
      Found in loader/jsonconfig/config.go by golint

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

      func (c *Config) Translate(parent *config.Config) (*config.Config, error) {
      Severity: Minor
      Found in loader/jsonconfig/config.go by golint

      exported type ExportFileList should have comment or be unexported
      Open

          ExportFileList struct {
      Severity: Minor
      Found in loader/jsonconfig/config.go by golint

      There are no issues that match your filters.

      Category
      Status