On Wed, Dec 18, 2019 at 12:09 AM Simone Bordet [email protected]
[it-torino-java-jug] <[email protected]> wrote:

>
>
> Ciao,
>
> On Tue, Dec 17, 2019 at 10:43 PM Roberto Franchini
> [email protected] [it-torino-java-jug]
> <[email protected]> wrote:
> >
> >
> >
> > Ciao,
> > oggi, parlando con i colleghi per prendere alcune decisioni
> architetturarli, e' spuntata questa libreria:
> >
> > https://www.archunit.org/
> >
> > Ad esempio, voglio essere certo che i logger siano tutti private static
> final:
> >
> > @ArchTest
> > private final ArchRule loggers_should_be_private_static_final =
> > fields().that().haveRawType(Logger.class)
> > .should().bePrivate()
> > .andShould().beStatic()
> > .andShould().beFinal()
> > .because("we agreed on this convention");
> >
> >
> > Qualcuno l'ha usata?
>
> No.
>
> Ma mi sembra di ricordare che abbiamo fatto lo stesso con una rule PMD.
>
> Infatti vedo molte sovrapposizioni con PMD o checkstyle.
La metto tra le cose da provare in futuro.
FRANK

-- 
Roberto Franchini
"The impossible is inevitable"
https://github.com/robfrank/
https://twitter.com/robfrankie
https://www.linkedin.com/in/robfrank

Reply via email to