As we have labels and annotations with values either true or false we often compare them in the code. This leads to complains of goconst linter about extracting these "magic words" to constants. As this are obvious values to check against there's little benefit of doing so.
This change configures goconst for golangci-lint runner to skip such cases.
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/OWNERS)~~ [zdtsw]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
Description
As we have labels and annotations with values either
true
orfalse
we often compare them in the code. This leads to complains ofgoconst
linter about extracting these "magic words" to constants. As this are obvious values to check against there's little benefit of doing so.This change configures
goconst
for golangci-lint runner to skip such cases.How Has This Been Tested?
Screenshot or short clip
Merge criteria