-
Notifications
You must be signed in to change notification settings - Fork 39
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
Configure documentation URL for StringJoin
check
#331
Configure documentation URL for StringJoin
check
#331
Conversation
I've removed the unused static import, that caused the build to fail |
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 @gtoison
Thanks a lot for opening the PR and congrats on being the first external contributor 😄!
Glad to hear that you like Error Prone Support!
@@ -40,7 +40,7 @@ | |||
@AutoService(BugChecker.class) | |||
@BugPattern( | |||
summary = "Prefer `String#join` over `String#format`", | |||
linkType = NONE, | |||
link = BUG_PATTERNS_BASE_URL + "StringJoin", |
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.
link = BUG_PATTERNS_BASE_URL + "StringJoin", | |
link = BUG_PATTERNS_BASE_URL + "StringJoin", | |
linkType = CUSTOM, |
We should define the linkType
as well, otherwise the URL won't be shown as the default is LinkType.AUTOGENERATED
.
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.
Yes, this should be better now, thanks!
Nice catch @gtoison! (Note to self: find time to continue working on this branch.) |
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.
Tnx!
Suggested commit message:
Configure documentation URL for `StringJoin` check (#331)
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.
Changes LGTM!
W.r.t suggested commit message, I'd omit the word proper
as no link is currently shown @Stephan202.
(Made that change)
StringJoin
check
It's also commit number 666, wonderful! |
Thanks a lot for providing error-prone-support! I'm using it inside SonarQube and the links to the doc are useful.
The link for the StringJoin bug checker should be https://error-prone.picnic.tech/bugpatterns/StringJoin/