You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/analysis/noreferences/analyzer.go
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,10 @@ const (
30
30
doc="Enforces that fields use Ref/Refs and not Reference/References"
31
31
)
32
32
33
-
varerrUnexpectedInitializerType=errors.New("expected namingconventions.Initializer() to be of type initializer.ConfigurableAnalyzerInitializer, but was not")
33
+
var (
34
+
errUnexpectedInitializerType=errors.New("expected namingconventions.Initializer() to be of type initializer.ConfigurableAnalyzerInitializer, but was not")
35
+
errInvalidPolicy=errors.New("invalid policy")
36
+
)
34
37
35
38
// newAnalyzer creates a new analyzer for the noreferences linter that is a wrapper around the namingconventions linter.
Copy file name to clipboardExpand all lines: tests/integration/testdata/default_configurations/volume.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -311,7 +311,7 @@ type ImageVolumeSource struct {
311
311
// This field is optional to allow higher level config management to default or override
312
312
// container images in workload controllers like Deployments and StatefulSets.
313
313
// +optional
314
-
Referencestring`json:"reference,omitempty" protobuf:"bytes,1,opt,name=reference"`// want "optionalfields: field Reference should be a pointer."
314
+
Referencestring`json:"reference,omitempty" protobuf:"bytes,1,opt,name=reference"`// want "optionalfields: field Reference should be a pointer." "noreferences: naming convention \"reference-to-ref\": field Reference: field names should use 'Ref' instead of 'Reference'"
315
315
316
316
// Policy for pulling OCI objects. Possible values are: // want "commentstart: godoc for field PullPolicy should start with 'pullPolicy ...'"
317
317
// Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
0 commit comments