Showing 3 of 5 total issues
Method summaryCollector.Update
has 82 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *summaryCollector) Update(ch chan<- prometheus.Metric) error {
params := url.Values{}
params.Add("start", "today")
params.Add("end", "today")
params.Add("cache", "false")
Function main
has 75 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
var (
disableDefaultCollectors = kingpin.Flag(
"collector.disable-defaults",
"Set all collectors to disabled by default.",
Method goalCollector.Update
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *goalCollector) Update(ch chan<- prometheus.Metric) error {
params := url.Values{}
params.Add("cache", "false")
body, fetchErr := c.fetchStat(c.uri, goalEndpoint, params)