pkg/plugin/plugin.go
Function Run
has 7 return statements (exceeds 4 allowed). Open
Open
func Run(f util.Factory, streams genericiooptions.IOStreams, args []string) error {
klog.V(5).InfoS("All config settings", "settings", viper.AllSettings())
if viper.Get("color") == "always" {
color.NoColor = false
} else if viper.Get("color") == "never" {
Function runWatch
has 6 return statements (exceeds 4 allowed). Open
Open
func runWatch(results *resource.Result, engine *renderEngine, repo *input.ResourceRepo) error {
color.HiYellow("\nPrinted all existing resource statuses, starting to watch. Switching to shallow mode during watch!\n\n")
viper.Set("shallow", true)
viper.Set("watching", true)
klog.V(5).InfoS("Will run watch")
exported function Run should have comment or be unexported Open
Open
func Run(f util.Factory, streams genericiooptions.IOStreams, args []string) error {
- Exclude checks
should replace count += 1 with count++ Open
Open
count += 1
- Exclude checks