From 047777dddb0d1224dcca8d05a6260aa1aa37827d Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 3 Oct 2024 22:36:53 +0000
Subject: [PATCH 1/4] chore(deps): update all non-major dependencies
---
.config/dotnet-tools.json | 4 ++--
.github/workflows/build.yaml | 14 +++++++-------
.github/workflows/codeql.yml | 8 ++++----
.../ArchUnitNET.MSTestV2Tests.csproj | 6 +++---
.../ArchUnitNET.NUnitTests.csproj | 2 +-
ArchUnitNET/ArchUnitNET.csproj | 2 +-
ArchUnitNETTests/ArchUnitNETTests.csproj | 8 ++++----
ExampleTest/ExampleTest.csproj | 6 +++---
8 files changed, 25 insertions(+), 25 deletions(-)
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/.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 ca7a2011..5547307f 100644
--- a/ArchUnitNET.MSTestV2Tests/ArchUnitNET.MSTestV2Tests.csproj
+++ b/ArchUnitNET.MSTestV2Tests/ArchUnitNET.MSTestV2Tests.csproj
@@ -9,9 +9,9 @@
-
-
-
+
+
+
diff --git a/ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj b/ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj
index 01761e46..79660f42 100644
--- a/ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj
+++ b/ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/ArchUnitNET/ArchUnitNET.csproj b/ArchUnitNET/ArchUnitNET.csproj
index cea267d4..c1dbc82b 100644
--- a/ArchUnitNET/ArchUnitNET.csproj
+++ b/ArchUnitNET/ArchUnitNET.csproj
@@ -21,7 +21,7 @@
-
+
diff --git a/ArchUnitNETTests/ArchUnitNETTests.csproj b/ArchUnitNETTests/ArchUnitNETTests.csproj
index be5c0b97..31f7b52d 100644
--- a/ArchUnitNETTests/ArchUnitNETTests.csproj
+++ b/ArchUnitNETTests/ArchUnitNETTests.csproj
@@ -19,14 +19,14 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
-
-
+
+
+
diff --git a/ExampleTest/ExampleTest.csproj b/ExampleTest/ExampleTest.csproj
index 31e94f28..8bc6f658 100644
--- a/ExampleTest/ExampleTest.csproj
+++ b/ExampleTest/ExampleTest.csproj
@@ -10,9 +10,9 @@
-
-
-
+
+
+
From dce4f8e835aea7f610b6cdda6f89b62a711df35b Mon Sep 17 00:00:00 2001
From: Alexander Linne
Date: Sat, 5 Oct 2024 13:12:32 +0200
Subject: [PATCH 2/4] chore: reformat format files
Signed-off-by: Alexander Linne
---
ArchUnitNET/Domain/GenericParameter.cs | 2 +-
ArchUnitNET/Domain/MethodForm.cs | 2 +-
.../PlantUml/Export/PlantUmlDependency.cs | 2 +-
.../PlantUml/Export/PlantUmlNameChecker.cs | 2 +-
ArchUnitNET/Domain/Visibility.cs | 8 +++++---
ArchUnitNET/Domain/Writability.cs | 2 +-
ArchUnitNET/Fluent/ConditionManager.cs | 2 +-
.../Fluent/Freeze/XmlViolationStore.cs | 2 +-
.../PredicateManager.PredicateManager.cs | 19 +++++++++----------
ArchUnitNET/Fluent/Slices/SlicesShould.cs | 2 +-
ArchUnitNET/Loader/ArchBuilder.cs | 2 +-
.../Loader/MonoCecilMemberExtensions.cs | 2 +-
.../Attributes/AttributeDependencyTests.cs | 2 +-
.../Attributes/AttributeTestsBuild.cs | 4 ++--
.../Dependencies/Attributes/TestAttributes.cs | 2 +-
...ssDependenciesIncludeMemberDependencies.cs | 2 +-
.../Members/GetterSetterTestsBuild.cs | 8 ++++----
.../Members/MemberDependencyTestBuild.cs | 12 ++++++------
.../Members/MethodDependencyTestBuild.cs | 8 ++++----
ArchUnitNETTests/Domain/MemberTestBuild.cs | 4 ++--
.../PlantUml/PlantUmlFileBuilderTest.cs | 6 +++---
.../Domain/PlantUml/PlantUmlParserTest.cs | 2 +-
.../PlantUmlFluentComponentDiagramTests.cs | 4 ++--
.../Elements/MemberSyntaxElementsTests.cs | 8 ++++----
.../Elements/ObjectSyntaxElementsTests.cs | 8 ++++----
.../Syntax/Elements/ObjectsShouldTests.cs | 6 +++---
.../Elements/TypeSyntaxElementsTests.cs | 8 ++++----
.../Loader/InstructionExtensionTests.cs | 2 +-
ArchUnitNETTests/Loader/TypeTestBuild.cs | 4 ++--
29 files changed, 69 insertions(+), 68 deletions(-)
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/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