Commit ccb3c91
committed
lint: allow ireturn for FSC metrics Gauge and Histogram
The ireturn allow list covers types matching (or|er)$ plus the prometheus
and fabric-lib-go counter/gauge/histogram types. The recording provider in
the metricsdoc reference test returns the fabric-smart-client equivalents,
which match neither, so CI failed on NewGauge and NewHistogram. NewCounter
passes only incidentally, on the suffix rule.
Both signatures are fixed by the metrics.Provider interface that provider
implements, which is the case the allow list already documents, so add the
two types there rather than carry a nolint at each site.
Signed-off-by: AkramBitar <akram@il.ibm.com>1 parent 6a96c03 commit ccb3c91
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments