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

MnemonicCode Doesn't Implement Iterator Interface Correctly #46

Open
ccjernigan opened this issue May 1, 2022 · 0 comments
Open

MnemonicCode Doesn't Implement Iterator Interface Correctly #46

ccjernigan opened this issue May 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ccjernigan
Copy link
Contributor

Running detekt points out:

kotlin-bip39/lib/src/jvmMain/kotlin/cash/z/ecc/android/bip39/Mnemonics.kt:85:53: This implementation of Iterator does not correctly implement the next() method as it doesn't throw a NoSuchElementException when no elements remain in the Iterator. [IteratorNotThrowingNoSuchElementException]

Note that the detekt baseline will suppress this warning. When implementing this change, be sure to update the detekt baseline file to remove this suppression.

@ccjernigan ccjernigan added the bug Something isn't working label May 1, 2022
ccjernigan added a commit that referenced this issue May 2, 2022
Followup work includes:
 - #46
@ccjernigan ccjernigan mentioned this issue May 2, 2022
10 tasks
ccjernigan added a commit that referenced this issue May 4, 2022
Followup work includes:
 - #46
ccjernigan added a commit that referenced this issue May 4, 2022
 - Followup issue #46

Added a baseline file to suppress warnings for existing issues, while enabling Detekt to run on CI so that new issues won't be introduced going forward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant