spiegel_podman/pkg/bindings/images
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
..
build.go enable gocritic linter 2022-04-26 18:12:22 +02:00
build_test.go build: improve regex for iidfile 2021-05-06 11:33:59 +02:00
build_unix.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
build_windows.go Handle hard links in remote builds 2021-05-22 05:27:03 -04:00
diff.go bump go module to version 4 2022-01-18 12:47:07 +01:00
images.go bump go module to version 4 2022-01-18 12:47:07 +01:00
pull.go bump go module to version 4 2022-01-18 12:47:07 +01:00
rm.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types.go enable gocritic linter 2022-04-26 18:12:22 +02:00
types_diff_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_exists_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_export_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_get_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_history_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_import_options.go import: allow users to set os, arch and variant of imports 2022-03-23 11:22:55 +05:30
types_list_options.go Revert "images --size" 2022-04-14 10:58:36 +02:00
types_load_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_prune_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_pull_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_push_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_remove_options.go podman rmi --ignore 2022-03-19 10:05:43 +01:00
types_search_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_tag_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_tree_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00
types_untag_options.go bump go module to version 4 2022-01-18 12:47:07 +01:00