enofex / taikai

Taikai is an extension of the popular ArchUnit library, offering a comprehensive suite of predefined rules tailored for various technologies.
MIT License
121 stars 2 forks source link

Add Spring properties customizer #63

Closed piotrooo closed 3 months ago

piotrooo commented 3 months ago

Thanks for this super helpful library :pray:

While using this library, I think (this is one of my cases) it would be great to add a customizer for the Spring properties. The API could look like this (should be discussed):

builder()
    .spring(spring -> spring
        .properties(properties -> properties
            .hasConfigurationPropertiesAnnotation()
            .hasValidatedAnnotation()
            .namesShouldEndWithProperties()
        )
    )
mnhock commented 3 months ago

Thanks @piotrooo! Great ideas, will be part of the next release. Will adjust some naming in order to be consistent with the other rules.