File tree Expand file tree Collapse file tree
ArchUnitNET/Fluent/Syntax/Elements/Types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments