gabor-boros/minutes

View on GitHub

Showing 2 of 6 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

if utils.IsRegexSet(opts.TagsAsTasksRegex) && len(entry.Tags) > 0 {
var tags []worklog.IDNameField
for _, tag := range entry.Tags {
tags = append(tags, worklog.IDNameField{
ID: tag,
Severity: Major
Found in internal/pkg/client/timewarrior/timewarrior.go and 1 other location - About 1 hr to fix
internal/pkg/client/toggl/toggl.go on lines 97..110

Similar blocks of code found in 2 locations. Consider refactoring.
Open

if utils.IsRegexSet(opts.TagsAsTasksRegex) && len(fetchedEntry.Tags) > 0 {
var tags []worklog.IDNameField
for _, tag := range fetchedEntry.Tags {
tags = append(tags, worklog.IDNameField{
ID: tag,
Severity: Major
Found in internal/pkg/client/toggl/toggl.go and 1 other location - About 1 hr to fix
internal/pkg/client/timewarrior/timewarrior.go on lines 97..110
Severity
Category
Status
Source
Language