You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: collector.go
    path of file: ./repos/popeye/internal/issues
    
    the code of the file until where you have to start completion: // SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Popeye

package issues

import (
	"context"
	"fmt"

	"github.com/derailed/popeye/internal"
	"github.com/derailed/popeye/internal/rules"
	"github.com/derailed/popeye/pkg/config"
	"github.com/rs/zerolog/log"
)

// Collector tracks linter issues and codes.
type Collecto
    
func (c *Collector) AddCode(ctx context.Context, code rules.ID, args ...interface{}) {
	run := internal.MustExtractRunInfo(ctx)
	co, ok := c.codes.Glossary[code]
	if !ok {
		// BOZO!! refact once codes are in!!
		panic(fmt.Errorf("no codes found with id %d", code))
	}
	if co.Severity < rules.Level(c.Config.LintLevel) {
		return
	}

	run.Spec.GVR, run.Spec.Code = run.SectionGVR, code
	if !c.Match(run.Spec) {
		c.addIssue(run.Spec.FQN, New(run.SectionGVR, Root, co.Severity, co.Format(code, args...)))
	}
}