-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andreas Lausen <[email protected]>
- Loading branch information
1 parent
f2a2aa0
commit d9116a3
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
// Copyright 2020 Pavel Fischer <[email protected]> | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
|
@@ -20,7 +21,8 @@ public static class Dependencies | |
public static IArchRule Check(Assembly source, IEnumerable<Assembly> target) | ||
{ | ||
var allowedTypes = Types().That().ResideInAssembly(source); | ||
allowedTypes = target.Aggregate(allowedTypes, (current, assembly) => current.Or().ResideInAssembly(assembly)); | ||
allowedTypes = | ||
target.Aggregate(allowedTypes, (current, assembly) => current.Or().ResideInAssembly(assembly)); | ||
|
||
var rule = Types() | ||
.That() | ||
|