Skip to content

Commit

Permalink
Fix nilcheck by ignoring LCC helper (#165)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Kovacs <[email protected]>
  • Loading branch information
mhmxs and Richard Kovacs authored Feb 20, 2024
1 parent 7a46820 commit 7204f61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ NILAWAY := $(TOOLS_HOST_DIR)/nilaway-$(NILAWAY_VERSION)
nilcheck: $(NILAWAY) ## Run nil check against codemake.
@# The bucket_backends.go is nil safe, covered by tests.
@# Backendstore contains mostly nil safe generated files.
@# Lifecycleconfig_helper has false positive reports: https://github.com/uber-go/nilaway/issues/207
go list ./... | xargs -I {} -d '\n' $(NILAWAY) \
-exclude-errors-in-files $(PWD)/internal/controller/bucket/bucket_backends.go \
-exclude-errors-in-files $(PWD)/internal/controller/bucket/bucket_backends.go,$(PWD)/internal/rgw/lifecycleconfig_helpers.go \
-exclude-pkgs github.com/linode/provider-ceph/apis/provider-ceph/v1alpha1,github.com/linode/provider-ceph/internal/backendstore \
-include-pkgs {} ./...

Expand Down

0 comments on commit 7204f61

Please sign in to comment.