pumuki-ast-hooks 5.5.56 → 5.5.58
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/README.md
CHANGED
|
@@ -866,6 +866,15 @@ Automates the complete Git Flow cycle: commit → push → PR → merge, plus co
|
|
|
866
866
|
|
|
867
867
|
For more details, see [MCP_SERVERS.md](./docs/MCP_SERVERS.md).
|
|
868
868
|
|
|
869
|
+
#### Troubleshooting
|
|
870
|
+
|
|
871
|
+
If `ai_gate_check` behaves inconsistently (stale branch name, missing rules, or intermittent transport errors), verify you are not running multiple `ast-intelligence-automation` servers across different repositories.
|
|
872
|
+
|
|
873
|
+
- Prefer enabling a single MCP server for the repository you are working on.
|
|
874
|
+
- Verify the active process points to this repository path:
|
|
875
|
+
- `.../ast-intelligence-hooks/scripts/hooks-system/infrastructure/mcp/ast-intelligence-automation.js`
|
|
876
|
+
- If you detect multiple processes, stop the duplicates and restart your IDE/MCP servers.
|
|
877
|
+
|
|
869
878
|
---
|
|
870
879
|
|
|
871
880
|
## API Reference
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki-ast-hooks",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.58",
|
|
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": {
|
package/scripts/hooks-system/infrastructure/ast/ios/detectors/ios-ast-intelligent-strategies.js
CHANGED
|
@@ -232,15 +232,19 @@ function analyzeClassAST(analyzer, node, filePath) {
|
|
|
232
232
|
analyzer.pushFinding('ios.naming.god_naming', 'medium', filePath, line, `Suspicious class name '${name}' - often indicates SRP violation`);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
235
|
+
// Skip ISP validation for test files - spies/mocks are allowed to have unused properties
|
|
236
|
+
const isTestFile = /Tests?\/|Spec|Mock|Spy|Stub|Fake|Dummy/.test(filePath);
|
|
237
|
+
if (!isTestFile) {
|
|
238
|
+
const unusedProps = findUnusedPropertiesAST(analyzer, properties, methods);
|
|
239
|
+
for (const prop of unusedProps) {
|
|
240
|
+
analyzer.pushFinding(
|
|
241
|
+
'ios.solid.isp.unused_dependency',
|
|
242
|
+
'high',
|
|
243
|
+
filePath,
|
|
244
|
+
line,
|
|
245
|
+
`Unused property '${prop}' in '${name}' - ISP violation`
|
|
246
|
+
);
|
|
247
|
+
}
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
checkDependencyInjectionAST(analyzer, properties, filePath, name, line);
|