Skip to content

Commit 44ba361

Browse files
committed
ci: disable new arrayofstruct linter for KAL
The `arrayofstruct` linter flags the struct we're using for the Statuses, were we report _exactly_ what OpenStack returns and don't do validation on purpose. From the things this new linter warns about, there's only one struct that is not a struct used in Status, however this struct has validation to ensure it has at least one element. More context on the new check at https://github.com/kubernetes-sigs/kube-api-linter/blob/main/docs/linters.md#arrayofstruct
1 parent 490982f commit 44ba361

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ linters:
3434
settings:
3535
linters:
3636
disable:
37+
# NOTE: conflicts with the lack of validation in the Status structs
3738
- arrayofstruct
39+
# NOTE: The following checks are currently failing
3840
- nonpointerstructs
3941
- optionalfields
4042
enable:

0 commit comments

Comments
 (0)