@@ -144,6 +144,7 @@ func setupDiffReport(r *Report) {
144144 r .format .changestyles ["REMOVE" ] = ChangeStyle {color : "red" , message : "has been removed:" }
145145 r .format .changestyles ["MODIFY" ] = ChangeStyle {color : "yellow" , message : "has changed:" }
146146 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." }
147148}
148149
149150// print report for default output: diff
@@ -162,15 +163,17 @@ func setupSimpleReport(r *Report) {
162163 r .format .changestyles ["REMOVE" ] = ChangeStyle {color : "red" , message : "to be removed." }
163164 r .format .changestyles ["MODIFY" ] = ChangeStyle {color : "yellow" , message : "to be changed." }
164165 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." }
165167}
166168
167169// print report for simple output
168170func printSimpleReport (r * Report , to io.Writer ) {
169171 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 ,
174177 }
175178 for _ , entry := range r .entries {
176179 _ , _ = fmt .Fprintf (to , ansi .Color ("%s %s" , r .format .changestyles [entry .changeType ].color )+ "\n " ,
@@ -206,6 +209,7 @@ func setupJSONReport(r *Report) {
206209 r .format .changestyles ["REMOVE" ] = ChangeStyle {color : "red" , message : "" }
207210 r .format .changestyles ["MODIFY" ] = ChangeStyle {color : "yellow" , message : "" }
208211 r .format .changestyles ["OWNERSHIP" ] = ChangeStyle {color : "magenta" , message : "" }
212+ r .format .changestyles ["MODIFY_SUPPRESSED" ] = ChangeStyle {color : "gray" , message : "" }
209213}
210214
211215// setup report for template output
@@ -237,6 +241,7 @@ func setupTemplateReport(r *Report) {
237241 r .format .changestyles ["REMOVE" ] = ChangeStyle {color : "red" , message : "" }
238242 r .format .changestyles ["MODIFY" ] = ChangeStyle {color : "yellow" , message : "" }
239243 r .format .changestyles ["OWNERSHIP" ] = ChangeStyle {color : "magenta" , message : "" }
244+ r .format .changestyles ["MODIFY_SUPPRESSED" ] = ChangeStyle {color : "gray" , message : "" }
240245}
241246
242247// report with template output will only have access to ReportTemplateSpec.
0 commit comments