pumuki-ast-hooks 5.5.55 → 5.5.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki-ast-hooks",
3
- "version": "5.5.55",
3
+ "version": "5.5.56",
4
4
  "description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -658,6 +658,17 @@ function checkDependencyInjectionAST(analyzer, properties, filePath, className,
658
658
  continue;
659
659
  }
660
660
 
661
+ // Skip generic type parameters (e.g., "Client" in LoginUseCaseImpl<Client: APIClientProtocol>)
662
+ // These are not concrete dependencies - they are constrained by protocols
663
+ const propName = prop['key.name'] || '';
664
+ const isGenericTypeParameter = typename.length === 1 ||
665
+ (typename.match(/^[A-Z][a-z]*$/) && !typename.includes('Impl') &&
666
+ (className.includes('<') || propName === 'apiClient' || propName === 'client'));
667
+
668
+ if (isGenericTypeParameter) {
669
+ continue;
670
+ }
671
+
661
672
  const isConcreteService = /Service$|Repository$|UseCase$|Client$/.test(typename) && !typename.includes('Protocol') && !typename.includes('any ') && !typename.includes('some ');
662
673
 
663
674
  if (isConcreteService) {