Showing 4 of 70 total issues
Method InspectionItemFeed.writeRows
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (f *InspectionItemFeed) writeRows(ctx context.Context, exporter Exporter, rows []*InspectionItem, skipFields []string, apiClient *httpapi.Client) error {
l := logger.GetLogger()
skipIDs := map[string]bool{}
for _, id := range f.SkipIDs {
skipIDs[id] = true
Method Client.Export
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (client *Client) Export(ctx context.Context) error {
var wg sync.WaitGroup
skipIDs := map[string]bool{}
for _, id := range client.SkipIDs {
Method InspectionItemFeed.writeRows
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (f *InspectionItemFeed) writeRows(ctx context.Context, exporter Exporter, rows []*InspectionItem, skipFields []string, apiClient *httpapi.Client) error {
Method ExporterFeedClient.ExportFeeds
has 9 return statements (exceeds 8 allowed). Open
Open
func (e *ExporterFeedClient) ExportFeeds(exporter Exporter, ctx context.Context) error {
log := logger.GetLogger()
status := GetExporterStatus()
status.Reset()