Closed dundalek closed 1 year ago
This might actually still be broken when mixing both :access-layers
and :accessed-by-layers
.
Nice catch @dundalek! I'm really enjoying our partnership.
@fabiodomingues Likewise, great to meet someone from the Clojure community with interest in this topic.
When running the latest version, I noticed we introduced a regression in #30 which results in namespaces not covered in any layer (like libraries) being reported as violations.
The cause is when layer config does not contain
:accessed-by-layers
then due towhen-let
the result fromdependency-layer-can-be-accessed-by-layer?
will be nil, which is then negated inviolate?
. Same thing applies forlayer-can-access-dependency-layer?
.To fix it I flipped the negation.
Checklist
docs
folder)