Skip to content

Feature/#81 avoid empty label entries#82

Merged
pLeminoq merged 4 commits intofeature/testsfrom
feature/#81_avoid_empty_label_entries
Oct 27, 2022
Merged

Feature/#81 avoid empty label entries#82
pLeminoq merged 4 commits intofeature/testsfrom
feature/#81_avoid_empty_label_entries

Conversation

@DivineThreepwood
Copy link
Copy Markdown
Member

📜 Description

Changes proposed in this pull request:

  • auto remove empty label entries.

✅ Checklist:

  • Created tests which fail without the change (if possible)

@DivineThreepwood DivineThreepwood changed the base branch from dev to feature/tests October 27, 2022 18:07
Copy link
Copy Markdown

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detekt found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@DivineThreepwood DivineThreepwood linked an issue Oct 27, 2022 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@pLeminoq pLeminoq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just 2 minor suggestions you can have a look at.

const val LANGUAGE_CODE_TECHNICAL = "technical"

@JvmField
val UNKNOWN_LABEL = addLabel(LabelType.Label.newBuilder(), Locale.ENGLISH, "?").build()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use generateLabelBuilder or buildLabel instead of addLabel

Comment on lines +53 to +54
fun formatLabel() {
println("formatLabel")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename to something more specific such as test format removes language with empty labels

@pLeminoq pLeminoq merged commit 1dedc63 into feature/tests Oct 27, 2022
@pLeminoq pLeminoq deleted the feature/#81_avoid_empty_label_entries branch October 27, 2022 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make sure LabelProcessor removes entries without values.

3 participants