containerized-data-importer/pkg/version
Edu Gómez Escandell 3c06e26bac
Enable unconvert linter (#3171)
* Enable unconvert linter

This linter's doc describes it as:

   The unconvert program analyzes Go packages to identify unnecessary
   type conversions; i.e., expressions T(x) where x already has type T.

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

* Unrestrict the number of linter warnings

It is best to show all warnings at once than to reveal them piece-meal,
particularly in CI where the feedback loop can be a bit slow.

By default, linters may only print the same message three times
(https://golangci-lint.run/usage/configuration/#issues-configuration)
The unconvert linter always prints the same message, so it specially
affected by this setting.

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

* Remove redundant type conversions

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

---------

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>
2024-04-15 20:32:08 +02:00
..
verflag Enable unconvert linter (#3171) 2024-04-15 20:32:08 +02:00
base.go Use inclusive language, add check for inclusive language (#1960) 2021-09-28 16:12:10 +02:00
BUILD.bazel initial bazelification of CDI (#986) 2019-10-15 15:55:44 -04:00
def.bzl Set CDI version/commit info on release images (#2994) 2023-11-28 12:47:13 +01:00
types.go Update external links. (#1946) 2021-09-22 14:16:30 +02:00
version.go Use inclusive language, add check for inclusive language (#1960) 2021-09-28 16:12:10 +02:00