podman/pkg/api/handlers/compat
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
..
auth.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
changes.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
containers.go enable gocritic linter 2022-04-26 18:12:22 +02:00
containers_archive.go replace golint with revive linter 2022-04-22 15:12:33 +02:00
containers_attach.go Allow HTTP attach to stopped containers 2022-04-13 14:04:05 -04:00
containers_create.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
containers_export.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
containers_logs.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
containers_pause.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers_prune.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
containers_restart.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
containers_start.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers_stats.go podman stats: calc CPU percentage correctly 2022-03-22 17:43:49 +01:00
containers_stop.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
containers_top.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
containers_unpause.go bump go module to version 4 2022-01-18 12:47:07 +01:00
events.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
exec.go Add ExitCommandDelay configuration use in API exec handler 2022-03-04 00:57:35 +01:00
images.go enable gocritic linter 2022-04-26 18:12:22 +02:00
images_build.go enable gocritic linter 2022-04-26 18:12:22 +02:00
images_history.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
images_prune.go enable gocritic linter 2022-04-26 18:12:22 +02:00
images_push.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
images_remove.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
images_save.go
images_search.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
images_tag.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
info.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
networks.go Update swagger to improve compatibility 2022-03-22 15:20:30 -07:00
ping.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
resize.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
secrets.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
swagger.go bump go module to version 4 2022-01-18 12:47:07 +01:00
system.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types.go V2 verify JSON output is consistent and doesn't drift 2020-05-28 16:20:29 -07:00
unsupported.go bump go module to version 4 2022-01-18 12:47:07 +01:00
version.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00
volumes.go Remove unused param and clean API handlers 2022-01-22 00:31:18 +01:00