Remove Scala procedure syntax
This removes the Scala procedure syntax from the codebase as this is deprecated since Scala 2.11: https://github.com/scala/scala/pull/3076
Let me know your thoughts.
Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
This is ready to go. I will rebase once I have a first feedback.
@guozhangwang @debasishg Any thoughts on this?
cc @ijuma for reviews.
Thanks for the PR. I think we eventually want to do something like this, but it's a bit invasive as it makes it harder to backport changes to previous branches and it introduces conflicts to in-progress PRs. It may make sense to discuss the usage of scalafix in the project and which rules we want to apply, etc. There is a JIRA for using scalastyle, but we never took that to completion.
Note this is not introducing scalafix (yet). I'm waiting on 0.6 to be released to get some stuff sorted out. See the similar PR about formatting that introduces Scalafmt: https://github.com/apache/kafka/pull/4965
makes it harder to backport changes to previous branches and it introduces conflicts to in-progress PRs
Is this a reason strong enough to continue using a deprecated language feature that we will have to remove anyway at some point when it will be completely dropped? Do you have any suggestions on how can we do better?
In this case, the feature itself is harmless and the benefit is small, so it's lower priority than some of the other things we have to do for the upcoming release.
For the scalafmt PR, we probably need to discuss it in the mailing list since it's even more disruptive and people have strong feelings when it comes to stuff like that.
@ijuma I see, let's keep this PR open until I manage to add scalafix so that it will add more value like linting and automatic refactoring with other potential rules.
people have strong feelings when it comes to stuff like that
Indeed this is why Scalafmt would remove these feelings since there would be a rule settled for everyone. Personally I have no preference except consistency across the codebase and the peace of mind of not having to think about that because it will be taken care by a tool. I will send a message to the mailing list then?
This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please leave a comment asking for a review. If the PR has merge conflicts, update it with the latest from the base branch.
If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact).
If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed.
This PR has been closed since it has not had any activity in 120 days. If you feel like this was a mistake, or you would like to continue working on it, please feel free to re-open the PR and ask for a review.