i'm looking enforce best practices java 8 using checkstyle, examples include:
- don't nest optionals
- limit lambdas x lines if it's in middle of stream transformations
- general warning against parallel stream
based on research, can see checkstyle supports java 8, nothing specific enforcing standards on features.
is that's available?
thanks help.
if checkstyle supports out of box, it'll listed among the standard checks checkstyle comes with (i didn't see when glanced on it, unfortunately). if it's not in list, start looking @ third party checkstyle libraries (such sevntu checkstyle, checkstyle addons, , cs-contrib among them) see if can find checks satisfy needs. if still unable find anything, might have implement checks yourself. if do, might want consider contributing them community, winning eternal gratitude of checkstyle users around world.
Comments
Post a Comment