You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Have a way for eclipse-cs to use the same checkstyle version as the maven plugin #222
It also introduced a new option for this checker and now, when eclipse-cs tries to load the checkstyle configuration, it fails with:
com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module LineLength - Property 'fileExtensions' does not exist, please check the documentation
This is problematic especially because we can't be sure that both the eclipse installations of users and the maven configuration exactly use the same version of checkstyle.
I think an elegant solution to this problem would be to replace the dependency of checkstyle from eclipse-cs with the one specified in the pom.xml.
This is maybe not an easy endeavour and will most certainly require having eclipse-cs evolve…
I had looked into this once (like.. 2 years ago or so), there should even
be an open issue about this from me on the eclipse-cs project, over on
SourceForge. What would need to be done is for it (the eclipse-cs Eclipse
Plug-In; NOT this project m2e-code-quality) to load the Checkstyle JAR
itself dynamically, via a custom ClassLoader (within OSGi; what fun). I
think it should be doable, but it's probably not a 5' job.. ;-) Not
something I would have time to do. BTW Lars, the eclipse-cs creator /
maintainer, seemed to be not against a contribution about it from someone
(but also indicated that we would not do it himself). I can only encourage
you to have a go at it! It's probably not a huge amount of work either, if
you are familiar enough with Java ClassLoader stuff. I'll "support" the
effort by +1 where I can... ;-)
Activity
vorburger commentedon Sep 3, 2019
eperret commentedon May 21, 2020
+1,000,000