diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index 01d032e9..0c8a0cfe 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
- "version": "0.28.2",
+ "version": "0.29.2",
"commands": [
"dotnet-csharpier"
],
@@ -17,7 +17,7 @@
"rollForward": false
},
"dotnet-reportgenerator-globaltool": {
- "version": "5.3.8",
+ "version": "5.3.10",
"commands": [
"reportgenerator"
],
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
index 4eb2688a..36826618 100644
--- a/.git-blame-ignore-revs
+++ b/.git-blame-ignore-revs
@@ -1 +1,2 @@
-60e7aa44819edda932026dc2254db2876e70ead3
\ No newline at end of file
+60e7aa44819edda932026dc2254db2876e70ead3
+dce4f8e835aea7f610b6cdda6f89b62a711df35b
\ No newline at end of file
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 475b9756..8a984007 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup .NET
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
with:
@@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup .NET
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
with:
@@ -39,7 +39,7 @@ jobs:
- name: Run tests
run: dotnet test -c Debug --collect:"XPlat Code Coverage" --settings coverlet.runsettings ArchUnitNETTests/
- name: Upload coverage reports to Codecov
- uses: codecov/codecov-action@v4.5.0
+ uses: codecov/codecov-action@v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
run-tests:
@@ -50,7 +50,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup .NET
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
with:
@@ -68,7 +68,7 @@ jobs:
contents: write
steps:
- name: Checkout
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup doxygen
run: sudo apt-get install doxygen graphviz
- name: Create temporary directory
@@ -88,7 +88,7 @@ jobs:
fi
fi
- name: Checkout gh-pages branch
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
ref: gh-pages
path: ${{ env.DOCS_TEMP_DIR }}
@@ -136,7 +136,7 @@ jobs:
- run-tests
steps:
- name: Checkout
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup .NET
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
with:
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index e92a0dc9..ae771088 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -21,14 +21,14 @@ jobs:
language: ["csharp"]
steps:
- name: Checkout repository
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Initialize CodeQL
- uses: github/codeql-action/init@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
+ uses: github/codeql-action/init@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
with:
languages: ${{ matrix.language }}
- name: Autobuild
- uses: github/codeql-action/autobuild@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
+ uses: github/codeql-action/autobuild@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
+ uses: github/codeql-action/analyze@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
with:
category: "/language:${{matrix.language}}"
diff --git a/ArchUnitNET.MSTestV2Tests/ArchUnitNET.MSTestV2Tests.csproj b/ArchUnitNET.MSTestV2Tests/ArchUnitNET.MSTestV2Tests.csproj
index 0e9da0e8..cc59b648 100644
--- a/ArchUnitNET.MSTestV2Tests/ArchUnitNET.MSTestV2Tests.csproj
+++ b/ArchUnitNET.MSTestV2Tests/ArchUnitNET.MSTestV2Tests.csproj
@@ -8,9 +8,9 @@
-
-
-
+
+
+
diff --git a/ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj b/ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj
index 6444aa3d..03da77d7 100644
--- a/ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj
+++ b/ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/ArchUnitNET/ArchUnitNET.csproj b/ArchUnitNET/ArchUnitNET.csproj
index ed709ed7..9332f264 100644
--- a/ArchUnitNET/ArchUnitNET.csproj
+++ b/ArchUnitNET/ArchUnitNET.csproj
@@ -22,7 +22,7 @@
-
+
diff --git a/ArchUnitNET/Domain/GenericParameter.cs b/ArchUnitNET/Domain/GenericParameter.cs
index 337e6a8a..ab183583 100644
--- a/ArchUnitNET/Domain/GenericParameter.cs
+++ b/ArchUnitNET/Domain/GenericParameter.cs
@@ -150,6 +150,6 @@ public enum GenericParameterVariance
{
NonVariant,
Covariant,
- Contravariant
+ Contravariant,
}
}
diff --git a/ArchUnitNET/Domain/MethodForm.cs b/ArchUnitNET/Domain/MethodForm.cs
index 1ac82123..301fe199 100644
--- a/ArchUnitNET/Domain/MethodForm.cs
+++ b/ArchUnitNET/Domain/MethodForm.cs
@@ -11,6 +11,6 @@ public enum MethodForm
Constructor,
Getter,
Setter,
- Normal
+ Normal,
}
}
diff --git a/ArchUnitNET/Domain/PlantUml/Export/PlantUmlDependency.cs b/ArchUnitNET/Domain/PlantUml/Export/PlantUmlDependency.cs
index ae0a366a..50530a95 100644
--- a/ArchUnitNET/Domain/PlantUml/Export/PlantUmlDependency.cs
+++ b/ArchUnitNET/Domain/PlantUml/Export/PlantUmlDependency.cs
@@ -198,6 +198,6 @@ public enum DependencyType
PackageToPackageIfSameParentNamespace,
OneToOneCompact,
Circle,
- NoDependency
+ NoDependency,
}
}
diff --git a/ArchUnitNET/Domain/PlantUml/Export/PlantUmlNameChecker.cs b/ArchUnitNET/Domain/PlantUml/Export/PlantUmlNameChecker.cs
index b986c33f..0f1fad5b 100644
--- a/ArchUnitNET/Domain/PlantUml/Export/PlantUmlNameChecker.cs
+++ b/ArchUnitNET/Domain/PlantUml/Export/PlantUmlNameChecker.cs
@@ -23,7 +23,7 @@ public static class PlantUmlNameChecker
"\f",
"\a",
"\b",
- "\v"
+ "\v",
};
public static bool ContainsForbiddenCharacters([CanBeNull] string name)
diff --git a/ArchUnitNET/Domain/Visibility.cs b/ArchUnitNET/Domain/Visibility.cs
index 721391de..0bd12081 100644
--- a/ArchUnitNET/Domain/Visibility.cs
+++ b/ArchUnitNET/Domain/Visibility.cs
@@ -14,7 +14,9 @@ public enum Visibility
Protected = 3,
PrivateProtected = 4,
Private = 5,
- NotAccessible = 6 //should only be used for Getters/Setters or as default instead of null
+ NotAccessible =
+ 6 //should only be used for Getters/Setters or as default instead of null
+ ,
}
public static class VisibilityStrings
@@ -27,7 +29,7 @@ public static class VisibilityStrings
"Protected",
"Private Protected",
"Private",
- "Not Accessible"
+ "Not Accessible",
};
private static readonly string[] LowerCase =
@@ -38,7 +40,7 @@ public static class VisibilityStrings
"protected",
"private protected",
"private",
- "not accessible"
+ "not accessible",
};
public static string ToString(this Visibility visibility, bool useCapitalLetters = false)
diff --git a/ArchUnitNET/Domain/Writability.cs b/ArchUnitNET/Domain/Writability.cs
index abc6d58f..e6abcf6f 100644
--- a/ArchUnitNET/Domain/Writability.cs
+++ b/ArchUnitNET/Domain/Writability.cs
@@ -4,7 +4,7 @@ public enum Writability
{
ReadOnly,
InitOnly,
- Writable
+ Writable,
}
public static class WritabilityExtensions
diff --git a/ArchUnitNET/Fluent/ConditionManager.cs b/ArchUnitNET/Fluent/ConditionManager.cs
index ba056db5..091f21af 100644
--- a/ArchUnitNET/Fluent/ConditionManager.cs
+++ b/ArchUnitNET/Fluent/ConditionManager.cs
@@ -28,7 +28,7 @@ public ConditionManager()
{
_conditionElements = new List>
{
- new ConditionElement(LogicalConjunctionDefinition.ForwardSecondValue)
+ new ConditionElement(LogicalConjunctionDefinition.ForwardSecondValue),
};
}
diff --git a/ArchUnitNET/Fluent/Freeze/XmlViolationStore.cs b/ArchUnitNET/Fluent/Freeze/XmlViolationStore.cs
index 7dc3c219..ae58ee2a 100644
--- a/ArchUnitNET/Fluent/Freeze/XmlViolationStore.cs
+++ b/ArchUnitNET/Fluent/Freeze/XmlViolationStore.cs
@@ -25,7 +25,7 @@ public class XmlViolationStore : IViolationStore
private static readonly XmlWriterSettings WriterSettings = new XmlWriterSettings
{
Indent = true,
- Encoding = Encoding.UTF8
+ Encoding = Encoding.UTF8,
};
public XmlViolationStore(string storagePath = DefaultStoragePath)
diff --git a/ArchUnitNET/Fluent/PredicateManager.PredicateManager.cs b/ArchUnitNET/Fluent/PredicateManager.PredicateManager.cs
index 310d0087..a7f4ac33 100644
--- a/ArchUnitNET/Fluent/PredicateManager.PredicateManager.cs
+++ b/ArchUnitNET/Fluent/PredicateManager.PredicateManager.cs
@@ -30,7 +30,7 @@ public PredicateManager(BasicObjectProvider basicObjectProvider)
new PredicateElement(
LogicalConjunctionDefinition.ForwardSecondValue,
new SimplePredicate(t => true, NotSet)
- )
+ ),
};
_hasCustomDescription = false;
}
@@ -42,15 +42,14 @@ public PredicateManager(BasicObjectProvider basicObjectProvider)
(current, objectFilterElement) =>
current + " " + objectFilterElement.Description
)
- : _predicateElements.First().Description == NotSet
- ? _basicObjectProvider.Description
- : _basicObjectProvider.Description
- + " that"
- + _predicateElements.Aggregate(
- "",
- (current, objectFilterElement) =>
- current + " " + objectFilterElement.Description
- );
+ : _predicateElements.First().Description == NotSet ? _basicObjectProvider.Description
+ : _basicObjectProvider.Description
+ + " that"
+ + _predicateElements.Aggregate(
+ "",
+ (current, objectFilterElement) =>
+ current + " " + objectFilterElement.Description
+ );
public IEnumerable GetObjects(Architecture architecture)
{
diff --git a/ArchUnitNET/Fluent/Slices/SlicesShould.cs b/ArchUnitNET/Fluent/Slices/SlicesShould.cs
index 9e77d931..78caa522 100644
--- a/ArchUnitNET/Fluent/Slices/SlicesShould.cs
+++ b/ArchUnitNET/Fluent/Slices/SlicesShould.cs
@@ -74,7 +74,7 @@ Architecture architecture
{
var depsFromThisSliceToOtherSlice = new List
{
- slice.Description + " -> " + otherSlice.Description
+ slice.Description + " -> " + otherSlice.Description,
};
depsFromThisSliceToOtherSlice.AddRange(
depsToSlice.Select(dependency =>
diff --git a/ArchUnitNET/Loader/ArchBuilder.cs b/ArchUnitNET/Loader/ArchBuilder.cs
index 3a037783..eecf9549 100644
--- a/ArchUnitNET/Loader/ArchBuilder.cs
+++ b/ArchUnitNET/Loader/ArchBuilder.cs
@@ -150,7 +150,7 @@ private void UpdateTypeDefinitions()
typeof(AddGenericArgumentDependencies),
typeof(AddClassDependencies),
typeof(AddBackwardsDependencies),
- typeof(AddTypesToNamespace)
+ typeof(AddTypesToNamespace),
}
);
}
diff --git a/ArchUnitNET/Loader/MonoCecilMemberExtensions.cs b/ArchUnitNET/Loader/MonoCecilMemberExtensions.cs
index a50c7720..37275210 100644
--- a/ArchUnitNET/Loader/MonoCecilMemberExtensions.cs
+++ b/ArchUnitNET/Loader/MonoCecilMemberExtensions.cs
@@ -31,7 +31,7 @@ internal static class MonoCecilMemberExtensions
OpCodes.Ldobj,
OpCodes.Stelem_Any,
OpCodes.Ldelema,
- OpCodes.Stobj
+ OpCodes.Stobj,
}; //maybe not complete
internal static string BuildFullName(this MethodReference methodReference)
diff --git a/ArchUnitNETTests/ArchUnitNETTests.csproj b/ArchUnitNETTests/ArchUnitNETTests.csproj
index 0d79e0aa..4f4c6969 100644
--- a/ArchUnitNETTests/ArchUnitNETTests.csproj
+++ b/ArchUnitNETTests/ArchUnitNETTests.csproj
@@ -20,14 +20,14 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
-
-
+
+
+
diff --git a/ArchUnitNETTests/Domain/Dependencies/Attributes/AttributeDependencyTests.cs b/ArchUnitNETTests/Domain/Dependencies/Attributes/AttributeDependencyTests.cs
index 0d587455..f3af0076 100644
--- a/ArchUnitNETTests/Domain/Dependencies/Attributes/AttributeDependencyTests.cs
+++ b/ArchUnitNETTests/Domain/Dependencies/Attributes/AttributeDependencyTests.cs
@@ -100,7 +100,7 @@ public void MemberAttributeInnerDependencyAssignedToOriginClass()
_class1,
_class2,
_classWithAttribute,
- _classWithBodyTypeA
+ _classWithBodyTypeA,
};
//Assert
diff --git a/ArchUnitNETTests/Domain/Dependencies/Attributes/AttributeTestsBuild.cs b/ArchUnitNETTests/Domain/Dependencies/Attributes/AttributeTestsBuild.cs
index 2cc1366a..141191e4 100644
--- a/ArchUnitNETTests/Domain/Dependencies/Attributes/AttributeTestsBuild.cs
+++ b/ArchUnitNETTests/Domain/Dependencies/Attributes/AttributeTestsBuild.cs
@@ -78,7 +78,7 @@ public class TypeAttributesAreFoundData : IEnumerable
-
-
-
+
+
+