@@ -144,6 +144,7 @@ func setupDiffReport(r *Report) {
144
144
r .format .changestyles ["REMOVE" ] = ChangeStyle {color : "red" , message : "has been removed:" }
145
145
r .format .changestyles ["MODIFY" ] = ChangeStyle {color : "yellow" , message : "has changed:" }
146
146
r .format .changestyles ["OWNERSHIP" ] = ChangeStyle {color : "magenta" , message : "changed ownership:" }
147
+ r .format .changestyles ["MODIFY_SUPPRESSED" ] = ChangeStyle {color : "gray" , message : "has changed, but diff is empty after suppression." }
147
148
}
148
149
149
150
// print report for default output: diff
@@ -162,15 +163,17 @@ func setupSimpleReport(r *Report) {
162
163
r .format .changestyles ["REMOVE" ] = ChangeStyle {color : "red" , message : "to be removed." }
163
164
r .format .changestyles ["MODIFY" ] = ChangeStyle {color : "yellow" , message : "to be changed." }
164
165
r .format .changestyles ["OWNERSHIP" ] = ChangeStyle {color : "magenta" , message : "to change ownership." }
166
+ r .format .changestyles ["MODIFY_SUPPRESSED" ] = ChangeStyle {color : "gray" , message : "has changed, but diff is empty after suppression." }
165
167
}
166
168
167
169
// print report for simple output
168
170
func printSimpleReport (r * Report , to io.Writer ) {
169
171
var summary = map [string ]int {
170
- "ADD" : 0 ,
171
- "REMOVE" : 0 ,
172
- "MODIFY" : 0 ,
173
- "OWNERSHIP" : 0 ,
172
+ "ADD" : 0 ,
173
+ "REMOVE" : 0 ,
174
+ "MODIFY" : 0 ,
175
+ "OWNERSHIP" : 0 ,
176
+ "MODIFY_SUPPRESSED" : 0 ,
174
177
}
175
178
for _ , entry := range r .entries {
176
179
_ , _ = fmt .Fprintf (to , ansi .Color ("%s %s" , r .format .changestyles [entry .changeType ].color )+ "\n " ,
@@ -206,6 +209,7 @@ func setupJSONReport(r *Report) {
206
209
r .format .changestyles ["REMOVE" ] = ChangeStyle {color : "red" , message : "" }
207
210
r .format .changestyles ["MODIFY" ] = ChangeStyle {color : "yellow" , message : "" }
208
211
r .format .changestyles ["OWNERSHIP" ] = ChangeStyle {color : "magenta" , message : "" }
212
+ r .format .changestyles ["MODIFY_SUPPRESSED" ] = ChangeStyle {color : "gray" , message : "" }
209
213
}
210
214
211
215
// setup report for template output
@@ -237,6 +241,7 @@ func setupTemplateReport(r *Report) {
237
241
r .format .changestyles ["REMOVE" ] = ChangeStyle {color : "red" , message : "" }
238
242
r .format .changestyles ["MODIFY" ] = ChangeStyle {color : "yellow" , message : "" }
239
243
r .format .changestyles ["OWNERSHIP" ] = ChangeStyle {color : "magenta" , message : "" }
244
+ r .format .changestyles ["MODIFY_SUPPRESSED" ] = ChangeStyle {color : "gray" , message : "" }
240
245
}
241
246
242
247
// report with template output will only have access to ReportTemplateSpec.
0 commit comments