IMHO Sonar is nowadays a good replacement for both SpotBugs and PMD as all 
relevant rules are implemented there.
Checkstyle is mostly for formatting rules IIRC so I don't know if that is a 
good fit for semantic code checks....

Best would be to implement directly in Bnd or as Bnd plugin as that already 
warn for some violations of best practices...
@Carsten: Have you considered donating the code of osgicheck-maven-plugin to 
bnd (implemented as plugin)?

Konrad

> On 29. Jun 2021, at 22:13, Oliver Lietz <[email protected]> wrote:
> 
> On Tuesday, 29 June 2021 15:51:34 CEST Konrad Windszus wrote:
>> Hi,
> 
> Hi Konrad,
> 
>> there are some useful checks in
>> https://github.com/apache/felix-dev/tree/master/tools/osgicheck-maven-plugi
>> n which could help improve the code quality of Sling Modules. What do you
>> think about enabling these by default in the upcoming parent release?
>> 
>> The code seems pretty much unmaintained now I still consider the checks
>> useful. Or is there any other tool (maybe some bnd plugin) which does a
>> similar validation?
> 
> I'm currently looking (again) into Sonar, SpotBugs, PMD and Checkstyle.
> I guess those OSGi checks can be partially implemented as Checkstyle checks.
> 
> Regards,
> O.
> 
> 
>> Thanks for you thoughts in advance,
>> Konrad
> 
> 
> 
> 

Reply via email to