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

Add checkstyle rule to show final local variable violations as warning #4138

Merged
merged 2 commits into from
Aug 16, 2020

Conversation

XiangRongLin
Copy link
Collaborator

What is it?

  • Code base improvement (dev facing)

Description of the changes in your PR

Add checkstyle rule to check for final local variable violations.
Since fixing everything at once would be very bothersome, it is shown as warning and not error. Instead it can be gradually fixed when someone touches the files.
The reason i want it is, that on every PR one has to manually search for the violations.

Doc: https://checkstyle.sourceforge.io/apidocs/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.html

Agreement

Copy link
Contributor

@wb9688 wb9688 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I'm not merging this until all of those warnings are fixed, because now it just clutters the build log. Then it should also just error instead of warn.

Btw I'm working on fixing all of them.

@TobiGr
Copy link
Contributor

TobiGr commented Aug 16, 2020

Happy rebasing to everyone!?

@TobiGr TobiGr merged commit 5485e99 into TeamNewPipe:dev Aug 16, 2020
@wb9688
Copy link
Contributor

wb9688 commented Aug 16, 2020

@TobiGr: I guess so… ¯\_(ツ)_/¯

@XiangRongLin XiangRongLin deleted the checkstyle_final branch August 16, 2020 10:10
This was referenced Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants