diff --git a/src/skill_seekers/cli/architectural_pattern_detector.py b/src/skill_seekers/cli/architectural_pattern_detector.py index 54bae0e..a41af6a 100644 --- a/src/skill_seekers/cli/architectural_pattern_detector.py +++ b/src/skill_seekers/cli/architectural_pattern_detector.py @@ -89,9 +89,9 @@ class ArchitecturalPatternDetector: # Framework detection patterns FRAMEWORK_MARKERS = { # Game Engines (checked first to avoid false positives) - "Unity": ["Assembly-CSharp", "UnityEngine", "Assets", ".unity", "ProjectSettings"], + "Unity": ["Assembly-CSharp.csproj", "UnityEngine.dll", "ProjectSettings/ProjectVersion.txt", ".unity", "Library/"], "Unreal": ["Source/", ".uproject", "Config/DefaultEngine.ini", "Binaries/", "Content/"], - "Godot": ["project.godot", ".godot", "scenes/", ".tscn", ".gd"], + "Godot": ["project.godot", ".godot", ".tscn", ".tres", ".gd"], # Web Frameworks "Django": ["django", "manage.py", "settings.py", "urls.py"], "Flask": ["flask", "app.py", "wsgi.py"], diff --git a/src/skill_seekers/cli/dependency_analyzer.py b/src/skill_seekers/cli/dependency_analyzer.py index 1365885..a3b29c9 100644 --- a/src/skill_seekers/cli/dependency_analyzer.py +++ b/src/skill_seekers/cli/dependency_analyzer.py @@ -724,7 +724,8 @@ class DependencyAnalyzer: # Try to resolve the imported module to an actual file target = self._resolve_import(file_path, dep.imported_module, dep.is_relative) - if target and target in self.file_nodes: + # Skip self-dependencies (file depending on itself) + if target and target in self.file_nodes and target != file_path: # Add edge from source to dependency self.graph.add_edge( file_path, target, import_type=dep.import_type, line_number=dep.line_number diff --git a/src/skill_seekers/cli/test_example_extractor.py b/src/skill_seekers/cli/test_example_extractor.py index 282673e..7763bb9 100644 --- a/src/skill_seekers/cli/test_example_extractor.py +++ b/src/skill_seekers/cli/test_example_extractor.py @@ -883,6 +883,8 @@ class TestExampleExtractor: "Test*.cs", "*Test.php", "*_spec.rb", + "test_*.gd", # GUT, gdUnit4, WAT test files + "*_test.gd", ] # Language detection by extension @@ -896,6 +898,7 @@ class TestExampleExtractor: ".cs": "C#", ".php": "PHP", ".rb": "Ruby", + ".gd": "GDScript", } def __init__(