Showing 5 of 11 total issues
Function addEntry
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func addEntry(entries []SchemaEntry, currentEntry SchemaEntry) ([]SchemaEntry, error) {
switch currentEntry.Type {
case String:
entries = append(entries, SchemaEntry{
Parameter: currentEntry.Parameter,
Function initialiseMinikubeClient
has 7 return statements (exceeds 4 allowed). Open
Open
func initialiseMinikubeClient(d *schema.ResourceData, m interface{}) (lib.ClusterClient, error) {
clusterClientFactory := m.(func() (lib.ClusterClient, error))
clusterClient, err := clusterClientFactory()
if err != nil {
Method MinikubeClient.Start
has 6 return statements (exceeds 4 allowed). Open
Open
func (e *MinikubeClient) Start() (*kubeconfig.Settings, error) {
// By nature, viper references (here and within the internals of minikube) are not thread safe.
// To keep our sanity, let's mutex this call and defer subsequent cluster starts
if e.TfCreationLock != nil {
Function setClusterState
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func setClusterState(d *schema.ResourceData, cc *config.ClusterConfig, tfc lib.MinikubeClientConfig, ports []int, addons []string) {
Function getClusterOutputs
has 5 return statements (exceeds 4 allowed). Open
Open
func getClusterOutputs(kc *kubeconfig.Settings) (string, string, string, string, error) {
key, err := state_utils.ReadContents(kc.ClientKey)
if err != nil {
return "", "", "", "", err
}