Skip to content

Commit f8524d9

Browse files
Fix Formatting
Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
1 parent 42b0e4b commit f8524d9

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

ArchUnit.sln.DotSettings

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_FOREACH/@EntryValue">Required</s:String>
44
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_IFELSE/@EntryValue">Required</s:String>
55
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_WHILE/@EntryValue">Required</s:String>
6-
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue"></s:String>
6+
77
<s:Boolean x:Key="/Default/CodeStyle/Naming/CSharpNaming/ApplyAutoDetectedRules/@EntryValue">False</s:Boolean>
88
<s:String x:Key="/Default/CustomTools/CustomToolsData/@EntryValue"></s:String>
9+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EFeature_002EServices_002ECodeCleanup_002EFileHeader_002EFileHeaderSettingsMigrate/@EntryIndexedValue">True</s:Boolean>
910
<s:Boolean x:Key="/Default/UserDictionary/Words/=archrule/@EntryIndexedValue">True</s:Boolean>
1011
<s:Boolean x:Key="/Default/UserDictionary/Words/=intf/@EntryIndexedValue">True</s:Boolean>
1112
<s:Boolean x:Key="/Default/UserDictionary/Words/=lambda/@EntryIndexedValue">True</s:Boolean>

ArchUnitNET/Fluent/Syntax/Elements/Types/TypeConditionsDefinition.cs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -644,20 +644,25 @@ Architecture architecture
644644
)
645645
{
646646
var interfaceList = interfaces.GetObjects(architecture).ToList();
647-
foreach (var ruleType in ruleTypes) {
648-
if (interfaceList.Count > 0
647+
foreach (var ruleType in ruleTypes)
648+
{
649+
if (
650+
interfaceList.Count > 0
649651
? ruleType.ImplementedInterfaces.Intersect(interfaceList).Any()
650-
: ruleType.ImplementedInterfaces.Any())
652+
: ruleType.ImplementedInterfaces.Any()
653+
)
651654
{
652655
yield return new ConditionResult(ruleType, true);
653656
}
654657
else
655658
{
656-
var failDescription =
657-
!ruleType.ImplementedInterfaces.Any()
658-
? "does not implement any interface"
659-
: "only implements "
660-
+ string.Join(" and ", ruleType.ImplementedInterfaces.Select(i => i.FullName));
659+
var failDescription = !ruleType.ImplementedInterfaces.Any()
660+
? "does not implement any interface"
661+
: "only implements "
662+
+ string.Join(
663+
" and ",
664+
ruleType.ImplementedInterfaces.Select(i => i.FullName)
665+
);
661666
yield return new ConditionResult(ruleType, false, failDescription);
662667
}
663668
}

0 commit comments

Comments
 (0)