-
Notifications
You must be signed in to change notification settings - Fork 782
Static Code Analysis Checks #2437
Comments
I have built a prototype following some of the things discussed above, a PR will be opened shortly. |
Great, looking forward to it! |
I have created a simple online poll, where you can vote for the automated code checks that you want to be added to the Static Code Analysis Tool. Please share your opinion, you have only to enter a name to vote. The initial suggestions listed there are from the ESH Code Guidelines, feel free to add your own suggestions at the last row of the poll. A link to the poll is - https://poll.ly/#/LApbZzMZ. You can find inspiration in some of the predefined rules for: |
These are the agreed rules for the project, so if technically feasible ALL of them need to be checked by the tool - because this is one of the main manual jobs currently done during a review. If anybody says that any of these is not important to check, we should discuss to adapt the guidelines, not discuss adapting the tooling! The potential interesting rules from PMD/Checkstyle/FindBugs are imho too many to add them to the poll in any meaningful way. In general I would weigh them as
I think one has to "play" with them a bit on the current code base. My suggestion is that you come up with a rule set that highlights real bugs (and code that is against the guidelines) and which might show a "few" warnings of things that you feel should be addressed. |
PR is closed. |
As the tool is now moved to an its own repo and used in the openHAB builds I would like to reopen this discussion. In the last two weeks several PRs have been merged that fix issues found by the tool, that are considered to be build breaking. I have created a branch that includes the necessary changes to add the tool to the ESH build. The build is still not green, but only a few issues in the code base still remain unfixed. I understood that ESH is a fast moving target :). Should I open a PR for that ? |
Hm, can we fix the remaining issues in front of? |
I understood that this is @svilenvul's proposal of opening a PR for it. |
Yes. As soon as we have a green light for the CQ, I could fix the high priority issues until the latest commit in the repository at that moment. If someone else wants to help, he is always welcome of course. |
I don't think we need to wait for a CQ for the tool in front of fixing high priority issues the tool (not integrated into the official build) will complain about. |
FTR: I have created CQ 13980. |
I would like to continue a discussion that started here : Add Analysis Tool for New Bindings
I will give some highlights :) :
The text was updated successfully, but these errors were encountered: