code: func validateProject(ctx *validation.Context, configSet, path string, content []byte) error {
  	ctx.SetFile(path)
  	cfg := v2.Config{}
  	if err := proto.UnmarshalText(string(content), &cfg); err != nil {
  		ctx.Error(err)
  	} else {
  		validateProjectConfig(ctx, &cfg)
  	}
  	return nil
  }
docs: // validateProjectCfg validates project-level cq.cfg.
  // Validation result is returned via validation ctx,
  // while error returned directly implies only a bug in this code.