-
We have a rule that we'd like to enforce project-wide - that would be a consistency of some files that should be present in multiple directories. We could trick the analyzer to do |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The rule definition is independent of the class file import. The latter is described in §6.1 Import of the ArchUnit User Guide. If I understood correctly, you want to optimize the import to skip lengthy classes and only include some files? This should be easily doable with a custom |
Beta Was this translation helpful? Give feedback.
Hm, I see. Then ArchUnit might currently not be the best fit for your problem. I'm not even sure whether you could express a test that SQL files must be present, as
ArchRule
s can only operate on (information derived from) importedJavaClasses
.