Commit Graph

16 Commits

Author SHA1 Message Date
Jan Rodák c834df82d1
Enable errcheck
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2024-07-11 11:06:52 +02:00
Jan Rodák d571820baa Fix not allowed properties of Golangci-lint Configuration
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2024-07-03 04:15:39 -04:00
Jan Rodák 8ed83c9c69 Enable staticcheck linter
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2024-07-03 04:15:39 -04:00
Kir Kolyshkin 126bfe3b89 ci: use gofumpt, rm hack/gofmt.sh
This commit makes use of golangci-lint to check that the source code is
formatted with gofumpt, and removes hack/gofmt.sh which is no longer
needed.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-05-26 16:19:32 -07:00
Kir Kolyshkin e2e5530d3d ci: fix warnings, enable gosimple linter
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-05-25 18:52:05 -07:00
Kir Kolyshkin b99949b3d7 ci: enable govet
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-05-25 18:52:05 -07:00
Kir Kolyshkin 68ee78b9dd .golangci.yml: fix
This fixes the following issue with golangci-lint:

> ERRO Running error: no such linter "cyclop"

Instead of enabling all the linters and then disabling many of
them, start with the default set of enabled linters, and disable
some that are currently giving errors.

This should make upgrading golangci-lint easier, as it maintains a
sensitive set of linters enabled by default (and enabling all linters by
default means we will enable some new and unknown linters every time
we bump golangci-lint version).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-05-23 18:51:06 -07:00
Daniel J Walsh a3204cf7e8
Move to golang 1.18 and later
Github.com is reporting security issues on older versions of
golang.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-04-03 15:26:54 -04:00
Sascha Grunert 18e6f816db
Enable all linters and selectively disable them
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-28 16:09:15 +01:00
Sascha Grunert fd72b45a3f
Enable golint linter and fix lints
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-28 15:59:15 +01:00
Sascha Grunert d88ef6dc08
Enable goimports linter and fix lints
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-28 15:59:15 +01:00
Sascha Grunert b66d5a5c12
Enable goconst linter and fix lints
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-28 15:59:15 +01:00
Sascha Grunert ba51455527
Enable deadcode linter and fix lints
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-28 15:59:15 +01:00
Sascha Grunert add656c547
Update golangci-lint to v1.23.1 and remove from vendoring
It is an upstream recommendation to not vendor golangci-lint and use the
pre-built binary instead. This means we now remove it from the vendored
sources and update the config as well.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-28 14:21:16 +01:00
Giuseppe Scrivano 7a0d58dab5
storage: drop ostree deduplication
it was an attempt to use OSTree to deduplicate files, at the time we
already had a dependency on OSTree for system containers in
containers/image.  Since the feature never really took off, let's just
drop it.

Closes: https://github.com/containers/storage/issues/419

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-10-05 20:27:45 +02:00
Sascha Grunert 66c879f02a
Switch to golangci-lint
This commit uses internal tools vendoring to switch to golangci-lint. All
working linters have been enabled. The other tools have been vendored as
well into the same tools folder, whereas the corresponding test and
build targets have been adapted as well.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-07-17 11:13:06 +02:00