@@ -141,30 +141,30 @@ func newItem(
141
141
}
142
142
}
143
143
144
- func (l * item ) Emit (t * table ) {
145
- levelOfConcern , interesting := l .levelOfConcern (t .threshold )
144
+ func (i * item ) Emit (t * table ) {
145
+ levelOfConcern , interesting := i .levelOfConcern (t .threshold )
146
146
if ! interesting {
147
147
return
148
148
}
149
- valueString , unitString := l .humaner .Format (l .value , l .unit )
149
+ valueString , unitString := i .humaner .Format (i .value , i .unit )
150
150
t .formatRow (
151
- l .name , t .footnotes .CreateCitation (l .Footnote (t .nameStyle )),
151
+ i .name , t .footnotes .CreateCitation (i .Footnote (t .nameStyle )),
152
152
valueString , unitString ,
153
153
levelOfConcern ,
154
154
)
155
155
}
156
156
157
- func (l * item ) Footnote (nameStyle NameStyle ) string {
158
- if l .path == nil || l .path .OID == git .NullOID {
157
+ func (i * item ) Footnote (nameStyle NameStyle ) string {
158
+ if i .path == nil || i .path .OID == git .NullOID {
159
159
return ""
160
160
}
161
161
switch nameStyle {
162
162
case NameStyleNone :
163
163
return ""
164
164
case NameStyleHash :
165
- return l .path .OID .String ()
165
+ return i .path .OID .String ()
166
166
case NameStyleFull :
167
- return l .path .String ()
167
+ return i .path .String ()
168
168
default :
169
169
panic ("unexpected NameStyle" )
170
170
}
@@ -173,12 +173,12 @@ func (l *item) Footnote(nameStyle NameStyle) string {
173
173
// If this item's alert level is at least as high as the threshold,
174
174
// return the string that should be used as its "level of concern" and
175
175
// `true`; otherwise, return `"", false`.
176
- func (l * item ) levelOfConcern (threshold Threshold ) (string , bool ) {
177
- value , overflow := l .value .ToUint64 ()
176
+ func (i * item ) levelOfConcern (threshold Threshold ) (string , bool ) {
177
+ value , overflow := i .value .ToUint64 ()
178
178
if overflow {
179
179
return "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" , true
180
180
}
181
- alert := Threshold (float64 (value ) / l .scale )
181
+ alert := Threshold (float64 (value ) / i .scale )
182
182
if alert < threshold {
183
183
return "" , false
184
184
}
0 commit comments