podman/libpod/define
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
..
annotations.go Add support for checkpoint image 2022-04-20 18:55:39 +01:00
checkpoint_restore.go Added optional container checkpointing statistics 2021-11-15 11:50:24 +00:00
config.go use libnetwork from c/common 2022-01-12 17:07:30 +01:00
container.go rename oneshot initcontainers to once 2021-08-12 12:57:15 -05:00
container_inspect.go enable gocritic linter 2022-04-26 18:12:22 +02:00
containerstate.go podman stats: improve cpu average calc 2022-03-22 17:44:58 +01:00
diff.go podman diff accept two images or containers 2021-07-02 17:11:56 +02:00
errors.go Standardize on capatalized Cgroups 2022-01-14 12:30:20 -05:00
exec_codes.go Revert "Exec: use ErrorConmonRead" 2020-03-09 09:50:40 -04:00
fileinfo.go Fixes from make codespell 2021-04-21 13:16:33 -04:00
healthchecks.go fix healthcheck timeouts and ut8 coercion 2022-01-06 13:56:54 -06:00
info.go enable gocritic linter 2022-04-26 18:12:22 +02:00
mount.go separate file with mount consts in libpod/define 2021-03-07 12:01:04 +01:00
pod_inspect.go Standardize on capatalized Cgroups 2022-01-14 12:30:20 -05:00
podstate.go Add a Degraded state to pods 2020-10-21 13:31:40 -04:00
runtime.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
terminal.go prune remotecommand dependency 2021-02-25 10:02:41 -06:00
version.go Add 'Os' to be queried via 'version' output 2022-03-29 18:10:59 -04:00
volume_inspect.go Set volume NeedsCopyUp to false iff data was copied up 2022-01-06 10:42:34 -05:00