-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
#1388 Warning of newline characters, leading and trailing spaces on elements id #2644
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @WaltonG and thanks for the PR. Some comments:
- You missed adding the change to the
Bundle.properties
file. There needs to be an entry for theSpecial_Characters_In_Id
key. - You only validate the edge list but I think it should be both nodes and edges. I suggest looking at the
checkColorAlpha
function right above. You could make your function generic by using theElementDraftImpl
class, which bothNodeDraft
andEdgeDraft
inherit. The message should however be specific enough so the user knows if it's a node or an edge that is affected. - It would be great to have unit test for this feature.
Let me know if anything is unclear
@mbastian Thank you for the review. All is clear |
Hey @WaltonG do you need any help on this one? Let me know! |
Hi @mbastian, I had not found time to work on this. I'm intending to have
it ready for review by tomorrow.
…On Wed, 9 Nov 2022, 22:42 Mathieu Bastian, ***@***.***> wrote:
Hey @WaltonG <https://github.com/WaltonG> do you need any help on this
one? Let me know!
—
Reply to this email directly, view it on GitHub
<#2644 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMRI6ZZV33AJZMDLSO3KPL3WHP5DNANCNFSM6AAAAAAQVIKLOM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @mbastian I have re looked the code but cant seem to get why the test fails |
Thanks @WaltonG I had a look and made a commit to correct the test. I think the test failed because you were using an ad-hoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go, thank you @WaltonG!
Thank you. I'll pick another good first issue |
Description
Check if elements id has newline characters, leading or trailing spaces and add a warning on the report