Skip to content

Commit

Permalink
Merge pull request #313 from TNG/chore/compiler-warnings
Browse files Browse the repository at this point in the history
Resolve Compiler Warnings
  • Loading branch information
alexanderlinne authored Oct 11, 2024
2 parents 60bf37c + 3adb40d commit 717deb0
Show file tree
Hide file tree
Showing 26 changed files with 80 additions and 62 deletions.
1 change: 1 addition & 0 deletions ArchUnitNET.MSTestV2/ArchUnitNET.MSTestV2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageReadmeFile>README.md</PackageReadmeFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions ArchUnitNET.MSTestV2Tests/ArchUnitNET.MSTestV2Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>

<Company>TNG Technology Consulting GmbH</Company>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions ArchUnitNET.NUnit/ArchUnitNET.NUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageReadmeFile>README.md</PackageReadmeFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>

<Company>TNG Technology Consulting GmbH</Company>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions ArchUnitNET.xUnit/ArchUnitNET.xUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageReadmeFile>README.md</PackageReadmeFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions ArchUnitNET/ArchUnitNET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageReadmeFile>README.md</PackageReadmeFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -422,7 +422,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ IEnumerable<T> Condition(IEnumerable<T> members, Architecture architecture)
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -318,7 +318,7 @@ IEnumerable<T> Condition(IEnumerable<T> members, Architecture architecture)
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -494,7 +494,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -936,7 +936,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -1228,7 +1228,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -338,7 +338,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -625,7 +625,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -808,7 +808,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down
18 changes: 9 additions & 9 deletions ArchUnitNET/Fluent/Syntax/Elements/ObjectConditionsDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -820,7 +820,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -1308,7 +1308,7 @@ Architecture architecture
var archUnitAttribute = architecture.GetAttributeOfType(type);
archUnitAttributeList.Add(archUnitAttribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -1730,7 +1730,7 @@ bool Condition(TRuleType obj, Architecture architecture)
{
archUnitAttribute = architecture.GetAttributeOfType(attribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
return false;
Expand Down Expand Up @@ -2099,7 +2099,7 @@ bool Condition(TRuleType obj, Architecture architecture)
{
archUnitAttribute = architecture.GetAttributeOfType(attribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
return false;
Expand Down Expand Up @@ -2851,7 +2851,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -3103,7 +3103,7 @@ Architecture architecture
var archUnitAttribute = architecture.GetAttributeOfType(type);
archUnitAttributeList.Add(archUnitAttribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -3527,7 +3527,7 @@ bool Condition(TRuleType obj, Architecture architecture)
{
archUnitAttribute = architecture.GetAttributeOfType(attribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
return true;
Expand Down Expand Up @@ -3898,7 +3898,7 @@ bool Condition(TRuleType obj, Architecture architecture)
{
archUnitAttribute = architecture.GetAttributeOfType(attribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
return true;
Expand Down
18 changes: 9 additions & 9 deletions ArchUnitNET/Fluent/Syntax/Elements/ObjectPredicatesDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ IEnumerable<T> Filter(IEnumerable<T> objects, Architecture architecture)
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -500,7 +500,7 @@ IEnumerable<T> Filter(IEnumerable<T> objects, Architecture architecture)
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -808,7 +808,7 @@ IEnumerable<T> Filter(IEnumerable<T> objects, Architecture architecture)
var archUnitAttribute = architecture.GetAttributeOfType(type);
archUnitAttributeList.Add(archUnitAttribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -1148,7 +1148,7 @@ bool Predicate(T obj, Architecture architecture)
{
archUnitAttribute = architecture.GetAttributeOfType(attribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
return false;
Expand Down Expand Up @@ -1449,7 +1449,7 @@ bool Predicate(T obj, Architecture architecture)
{
archUnitAttribute = architecture.GetAttributeOfType(attribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
return false;
Expand Down Expand Up @@ -1915,7 +1915,7 @@ IEnumerable<T> Filter(IEnumerable<T> objects, Architecture architecture)
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -2078,7 +2078,7 @@ IEnumerable<T> Filter(IEnumerable<T> objects, Architecture architecture)
var archUnitAttribute = architecture.GetAttributeOfType(type);
archUnitAttributeList.Add(archUnitAttribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -2418,7 +2418,7 @@ bool Predicate(T obj, Architecture architecture)
{
archUnitAttribute = architecture.GetAttributeOfType(attribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
return true;
Expand Down Expand Up @@ -2721,7 +2721,7 @@ bool Predicate(T obj, Architecture architecture)
{
archUnitAttribute = architecture.GetAttributeOfType(attribute);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't be equal anyways
}
Expand Down Expand Up @@ -285,7 +285,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -578,7 +578,7 @@ Architecture architecture
{
archUnitInterface = architecture.GetInterfaceOfType(intf);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
interfaceNotInArchitecture = true;
Expand Down Expand Up @@ -850,7 +850,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't be equal anyways
}
Expand Down Expand Up @@ -1114,7 +1114,7 @@ Architecture architecture
var archUnitType = architecture.GetITypeOfType(type);
archUnitTypeList.Add(archUnitType);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//ignore, can't have a dependency anyways
}
Expand Down Expand Up @@ -1258,7 +1258,7 @@ Architecture architecture
{
archUnitInterface = architecture.GetInterfaceOfType(intf);
}
catch (TypeDoesNotExistInArchitecture e)
catch (TypeDoesNotExistInArchitecture)
{
//can't have a dependency
interfaceNotInArchitecture = true;
Expand Down
Loading

0 comments on commit 717deb0

Please sign in to comment.