Skip to content

Commit 79868df

Browse files
committed
fix report message
Signed-off-by: sivchari <[email protected]>
1 parent 70ecc21 commit 79868df

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pkg/analysis/ssatags/analyzer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (a *analyzer) checkField(pass *analysis.Pass, field *ast.Field, markersAcce
8989
for _, marker := range listTypeMarkers {
9090
pass.Report(analysis.Diagnostic{
9191
Pos: field.Pos(),
92-
Message: fmt.Sprintf("%s is a byte array, which is not supported by Server-Side Apply. Remove the listType marker", utils.FieldName(field)),
92+
Message: fmt.Sprintf("%s is a byte array, which does not support the listType marker. Remove the listType marker", utils.FieldName(field)),
9393
SuggestedFixes: []analysis.SuggestedFix{
9494
{
9595
Message: fmt.Sprintf("Remove listType marker from %s", utils.FieldName(field)),

pkg/analysis/ssatags/testdata/src/a/a.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,5 @@ type SSATagsTestSpec struct {
173173

174174
// Byte array with markers - should be ignored even if markers are present
175175
// +listType=atomic
176-
ByteArrayWithMarker []byte `json:"byteArrayWithMarker,omitempty"` // want "ByteArrayWithMarker is a byte array, which is not supported by Server-Side Apply. Remove the listType marker"
176+
ByteArrayWithMarker []byte `json:"byteArrayWithMarker,omitempty"` // want "ByteArrayWithMarker is a byte array, which does not support the listType marker. Remove the listType marker"
177177
}

pkg/analysis/ssatags/testdata/src/a/a.go.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,5 @@ type SSATagsTestSpec struct {
172172
ByteArrayAliased ByteArrayAlias `json:"byteArrayAliased,omitempty"`
173173

174174
// Byte array with markers - should be ignored even if markers are present
175-
ByteArrayWithMarker []byte `json:"byteArrayWithMarker,omitempty"` // want "ByteArrayWithMarker is a byte array, which is not supported by Server-Side Apply. Remove the listType marker"
175+
ByteArrayWithMarker []byte `json:"byteArrayWithMarker,omitempty"` // want "ByteArrayWithMarker is a byte array, which does not support the listType marker. Remove the listType marker"
176176
}

pkg/analysis/ssatags/testdata/src/b/b.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,5 @@ type SSATagsTestSpec struct {
168168

169169
// Byte array with markers - should be ignored even if markers are present
170170
// +listType=atomic
171-
ByteArrayWithMarker []byte `json:"byteArrayWithMarker,omitempty"` // want "ByteArrayWithMarker is a byte array, which is not supported by Server-Side Apply. Remove the listType marker"
171+
ByteArrayWithMarker []byte `json:"byteArrayWithMarker,omitempty"` // want "ByteArrayWithMarker is a byte array, which does not support the listType marker. Remove the listType marker"
172172
}

pkg/analysis/ssatags/testdata/src/b/b.go.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@ type SSATagsTestSpec struct {
167167
ByteArrayAliased ByteArrayAlias `json:"byteArrayAliased,omitempty"`
168168

169169
// Byte array with markers - should be ignored even if markers are present
170-
ByteArrayWithMarker []byte `json:"byteArrayWithMarker,omitempty"` // want "ByteArrayWithMarker is a byte array, which is not supported by Server-Side Apply. Remove the listType marker"
170+
ByteArrayWithMarker []byte `json:"byteArrayWithMarker,omitempty"` // want "ByteArrayWithMarker is a byte array, which does not support the listType marker. Remove the listType marker"
171171
}
172172

0 commit comments

Comments
 (0)