I'm looking to enforce some best practices for Java 8 using checkStyle, some examples include:
Based on my research, I can see that checkStyle supports java 8, but nothing specific to enforcing standards on features.
Is this something that's available?
Thanks for your help.
The checks performed by Checkstyle are mainly limited to the presentation of the code. These checks do not confirm the correctness or completeness of the code.
Checkstyle can check many aspects of your source code. It can find class design problems, method design problems. It also has the ability to check code layout and formatting issues.
Checkstyle is one of the most popular linters available. With this popularity comes regular updates, thorough documentation, and ample community support.
If checkstyle supports it out of the box, it'll be listed among the standard checks that checkstyle comes with (I didn't see any when I glanced over it, unfortunately). If it's not in that list, I would then start looking at third party checkstyle libraries (such as SevNTU Checkstyle, Checkstyle Addons, and CS-Contrib among them) to see if you can find checks that satisfy your needs. If you are still unable to find anything, you might have to implement the checks yourself. If you do, you might want to consider contributing them to the community, winning the eternal gratitude of checkstyle users around the world.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With