@@ -463,9 +463,7 @@ class DesignReviewer {
463463 }
464464
465465 // DIP (Dependency Inversion Principle) チェック
466- if (
467- / d i r e c t l y \s + d e p e n d | c o n c r e t e \s + c l a s s | t i g h t \s + c o u p l i n g | 直 接 依 存 / gi. test ( content )
468- ) {
466+ if ( / d i r e c t l y \s + d e p e n d | c o n c r e t e \s + c l a s s | t i g h t \s + c o u p l i n g | 直 接 依 存 / gi. test ( content ) ) {
469467 issues . push (
470468 new DesignIssue ( {
471469 id : `DES-SOLID-${ String ( issueCounter ++ ) . padStart ( 3 , '0' ) } ` ,
@@ -545,8 +543,7 @@ class DesignReviewer {
545543 severity : IssueSeverity . SUGGESTION ,
546544 title : 'Consider Observer Pattern' ,
547545 description : 'Event handling mentioned. Observer pattern might be beneficial.' ,
548- recommendation :
549- 'Consider Observer/Pub-Sub pattern for decoupled event notification.' ,
546+ recommendation : 'Consider Observer/Pub-Sub pattern for decoupled event notification.' ,
550547 } )
551548 ) ;
552549 }
@@ -570,8 +567,7 @@ class DesignReviewer {
570567 severity : IssueSeverity . MAJOR ,
571568 title : 'High Coupling Detected' ,
572569 description : 'Design mentions tight coupling between components' ,
573- recommendation :
574- 'Reduce coupling through interfaces, events, or dependency injection.' ,
570+ recommendation : 'Reduce coupling through interfaces, events, or dependency injection.' ,
575571 } )
576572 ) ;
577573 }
@@ -657,8 +653,7 @@ class DesignReviewer {
657653 severity : IssueSeverity . MINOR ,
658654 title : 'Missing Retry Strategy' ,
659655 description : 'External service integration without retry strategy' ,
660- recommendation :
661- 'Add retry with exponential backoff for external service calls.' ,
656+ recommendation : 'Add retry with exponential backoff for external service calls.' ,
662657 } )
663658 ) ;
664659 }
@@ -675,8 +670,7 @@ class DesignReviewer {
675670 severity : IssueSeverity . MINOR ,
676671 title : 'Consider Circuit Breaker' ,
677672 description : 'Distributed system without circuit breaker pattern' ,
678- recommendation :
679- 'Implement circuit breaker pattern to prevent cascade failures.' ,
673+ recommendation : 'Implement circuit breaker pattern to prevent cascade failures.' ,
680674 } )
681675 ) ;
682676 }
@@ -690,8 +684,7 @@ class DesignReviewer {
690684 severity : IssueSeverity . SUGGESTION ,
691685 title : 'Consider Graceful Degradation' ,
692686 description : 'No graceful degradation strategy documented' ,
693- recommendation :
694- 'Define fallback behaviors for when components fail.' ,
687+ recommendation : 'Define fallback behaviors for when components fail.' ,
695688 } )
696689 ) ;
697690 }
@@ -844,8 +837,7 @@ class DesignReviewer {
844837 severity : IssueSeverity . MINOR ,
845838 title : 'Missing Component Diagram' ,
846839 description : 'C4 Component diagram not found' ,
847- recommendation :
848- 'Add Component diagram for key containers showing internal structure.' ,
840+ recommendation : 'Add Component diagram for key containers showing internal structure.' ,
849841 } )
850842 ) ;
851843 }
@@ -875,8 +867,7 @@ class DesignReviewer {
875867 severity : IssueSeverity . MINOR ,
876868 title : 'Missing ADR Status' ,
877869 description : 'ADR status not specified' ,
878- recommendation :
879- 'Add status: proposed/accepted/deprecated/superseded.' ,
870+ recommendation : 'Add status: proposed/accepted/deprecated/superseded.' ,
880871 } )
881872 ) ;
882873 }
@@ -889,8 +880,7 @@ class DesignReviewer {
889880 severity : IssueSeverity . MAJOR ,
890881 title : 'Missing ADR Context' ,
891882 description : 'ADR context/background not documented' ,
892- recommendation :
893- 'Add Context section explaining the problem/situation.' ,
883+ recommendation : 'Add Context section explaining the problem/situation.' ,
894884 } )
895885 ) ;
896886 }
@@ -903,8 +893,7 @@ class DesignReviewer {
903893 severity : IssueSeverity . CRITICAL ,
904894 title : 'Missing ADR Decision' ,
905895 description : 'ADR decision not clearly stated' ,
906- recommendation :
907- 'Add Decision section clearly stating what was decided.' ,
896+ recommendation : 'Add Decision section clearly stating what was decided.' ,
908897 } )
909898 ) ;
910899 }
@@ -917,8 +906,7 @@ class DesignReviewer {
917906 severity : IssueSeverity . MAJOR ,
918907 title : 'Missing ADR Consequences' ,
919908 description : 'ADR consequences not documented' ,
920- recommendation :
921- 'Add Consequences section with both positive and negative impacts.' ,
909+ recommendation : 'Add Consequences section with both positive and negative impacts.' ,
922910 } )
923911 ) ;
924912 }
@@ -931,8 +919,7 @@ class DesignReviewer {
931919 severity : IssueSeverity . MINOR ,
932920 title : 'Missing ADR Alternatives' ,
933921 description : 'ADR alternatives considered not documented' ,
934- recommendation :
935- 'Add Alternatives section showing other options that were considered.' ,
922+ recommendation : 'Add Alternatives section showing other options that were considered.' ,
936923 } )
937924 ) ;
938925 }
0 commit comments