automation-tests/pkg/machine/qemu
Paul Holzinger 51fbf3da9e
enable gocritic linter
The linter ensures a common code style.
- use switch/case instead of else if
- use if instead of switch/case for single case statement
- add space between comment and text
- detect the use of defer with os.Exit()
- use short form var += "..." instead of var = var + "..."
- detect problems with append()
```
newSlice := append(orgSlice, val)
```
  This could lead to nasty bugs because the orgSlice will be changed in
  place if it has enough capacity too hold the new elements. Thus we
  newSlice might not be a copy.

Of course most of the changes are just cosmetic and do not cause any
logic errors but I think it is a good idea to enforce a common style.
This should help maintainability.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-04-26 18:12:22 +02:00
..
claim_darwin.go Initial implementation of mac forwarding using a privileged docker sock claim helper 2022-02-16 03:49:17 -06:00
claim_unsupported.go Initial implementation of mac forwarding using a privileged docker sock claim helper 2022-02-16 03:49:17 -06:00
config.go Merge pull request #13996 from cdoern/machine 2022-04-26 09:08:31 -04:00
config_test.go machine refactor 3: add symlinks for sockets 2022-04-05 13:14:28 -05:00
machine.go enable gocritic linter 2022-04-26 18:12:22 +02:00
machine_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
options_darwin.go Fix #11418 - Default TMPDIR to /tmp on OS X 2021-09-04 08:40:57 +02:00
options_darwin_amd64.go Fix warning of unsupported feature on MacOS 2021-09-06 09:55:24 -07:00
options_darwin_arm64.go Machine refactor part 2 2022-03-30 09:22:40 -05:00
options_linux.go bump go module to version 4 2022-01-18 12:47:07 +01:00
options_linux_amd64.go Add machine support for more Linux distros 2021-03-28 13:35:56 +02:00
options_linux_arm64.go Add machine support for qemu-system-aarch64 2021-03-29 21:53:48 +02:00