Skip to content

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

Merged
TobiGr merged 2 commits intoTeamNewPipe:devfrom
XiangRongLin:checkstyle_final
Aug 16, 2020
Merged

Add checkstyle rule to show final local variable violations as warning#4138
TobiGr merged 2 commits intoTeamNewPipe:devfrom
XiangRongLin:checkstyle_final

Conversation

@XiangRongLin
Copy link
Copy Markdown
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
Copy Markdown
Member

@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
Copy Markdown
Contributor

TobiGr commented Aug 16, 2020

Happy rebasing to everyone!?

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

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