code: func (swc SwapCheck) Check() (warnings, errorList []error) {
  	klog.V(1).Infoln("validating whether swap is enabled or not")
  	f, err := os.Open("/proc/swaps")
  	if err != nil {
  		// /proc/swaps not available, thus no reasons to warn
  		return nil, nil
  	}
  	defer f.Close()
  	var buf []string
  	scanner := bufio.NewScanner(f)
  	for scanner.Scan() {
  		buf = append(buf, scanner.Text())
  	}
  	if err := scanner.Err(); err != nil {
  		return nil, []error{errors.Wrap(err, "error parsing /proc/swaps")}
  	}
  
  	if len(buf) > 1 {
  		return nil, []error{errors.New("running with swap on is not supported. Please disable swap")}
  	}
  
  	return nil, nil
  }
docs: // Check validates whether swap is enabled or not