Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#81 avoid empty label entries #82

Merged
merged 4 commits into from
Oct 27, 2022

Conversation

DivineThreepwood
Copy link
Member

πŸ“œ Description

Changes proposed in this pull request:

  • auto remove empty label entries.

βœ… Checklist:

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

Copy link

@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
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.


@JvmField
val UNKNOWN_LABEL = addLabel(LabelType.Label.newBuilder(), Locale.ENGLISH, "?").build()
Copy link
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
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.
2 participants