This is an automated email from the ASF dual-hosted git repository.
zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git
The following commit(s) were added to refs/heads/main by this push:
new c664d7a5 feat(ci): enable govet for lint (#706)
c664d7a5 is described below
commit c664d7a5fc4d3caa790370b862817fcfb85ba08c
Author: ferhat elmas <[email protected]>
AuthorDate: Wed Jan 28 22:32:55 2026 +0100
feat(ci): enable govet for lint (#706)
A suggestion to improve lint process. Feel free to ignore.
This change doesn't enable `fieldalignment` and `shadow` because they
have many issues to be fixed and require a huge diff.
Still better to do them separately because they would improve
performance and readability.
Signed-off-by: ferhat elmas <[email protected]>
---
.golangci.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/.golangci.yml b/.golangci.yml
index 090e4ab6..7031ee04 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -20,6 +20,7 @@ linters:
default: none
enable:
- errcheck
+ - govet
- misspell
- nlreturn
- perfsprint
@@ -29,6 +30,11 @@ linters:
exclude-functions:
- (github.com/pterm/pterm.TablePrinter).Render
- (github.com/pterm/pterm.TreePrinter).Render
+ govet:
+ enable-all: true
+ disable:
+ - fieldalignment
+ - shadow
exclusions:
generated: lax
presets: