Manfred Hanke

Results 76 comments of Manfred Hanke

Not entirely what you're asking for, but maybe a workaround: If you [freeze your ArchRule](https://www.archunit.org/userguide/html/000_Index.html#_freezing_arch_rules) then each specific project can control the exceptions.

Sorry; I might not have understood entirely what you meant with _"against the result",_ but could you clarify where exactly you suggest to display the code?

While this is an interesting idea, I fear that this is (far) beyond the scope of ArchUnit: 😅 Your test report is probably generated by Gradle; a report generated by...

A brief intermediate result: The exception didn't occurr with ArchUnit 0.22.0, but only since 29dccfe3249ae4a45b2d4e824d7b033a0f67155c.

See https://github.com/TNG/ArchUnit/issues/765#issuecomment-1010736751.

You might have to declare individual rules for parameters or return types of public methods, and parent classes or interfaces of public classes (or interfaces), etc. BTW: ArchUnit also uses...

You'll probably like #181. ;)

IMO we want both: (1) a specific method to ask domain objects for casts, and (2) register those as dependencies. Random previous examples: * `instanceof` checks * (1)+(2) were added...

Not sure whether that's relevant from a practical perspective, but I realized that the `DescribedPredicate haveNoParameters` given in the other issue is formally not suited to select default constructors, which...

@codecholeric, I agree that for many use cases, one might just want to ensure that (non-nested) classes have a parameterless (and potentially also public) constructor. But in theory, one could...