Split PR #522 [5/9]: AI agents package #561
Quality Gate failed
Failed conditions
4 Security Hotspots
5.9% Duplication on New Code (required ≤ 3%)
Annotations
Check warning on line 114 in packages/ai-agents/src/infrastructure/adapters/claude-agent-adapter.js
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "prompt".
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0LLQrmbX5-WK67&open=AZ09Dy0LLQrmbX5-WK67&pullRequest=561
Check warning on line 909 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Prefer `Number.parseInt` over `parseInt`.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7b&open=AZ09Dy0oLQrmbX5-WK7b&pullRequest=561
Check warning on line 581 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Handle this exception or don't catch it at all.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7O&open=AZ09Dy0oLQrmbX5-WK7O&pullRequest=561
Check warning on line 905 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Use the "RegExp.exec()" method instead.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7W&open=AZ09Dy0oLQrmbX5-WK7W&pullRequest=561
Check warning on line 7 in packages/ai-agents/src/domain/interfaces/validation-pipeline.js
sonarqubecloud / SonarCloud Code Analysis
Don't use a zero fraction in the number.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09DyxSLQrmbX5-WK64&open=AZ09DyxSLQrmbX5-WK64&pullRequest=561
Check warning on line 114 in packages/ai-agents/src/infrastructure/adapters/claude-agent-adapter.js
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'prompt' variable.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0LLQrmbX5-WK66&open=AZ09Dy0LLQrmbX5-WK66&pullRequest=561
Check warning on line 1 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Prefer `node:child_process` over `child_process`.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0nLQrmbX5-WK7K&open=AZ09Dy0nLQrmbX5-WK7K&pullRequest=561
Check warning on line 675 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
`validAuth` should be a `Set`, and use `validAuth.has()` to check existence or non-existence.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7Q&open=AZ09Dy0oLQrmbX5-WK7Q&pullRequest=561
Check warning on line 107 in packages/ai-agents/tests/integration/agent-workflow.test.js
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'proposal' variable.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy1HLQrmbX5-WK7k&open=AZ09Dy1HLQrmbX5-WK7k&pullRequest=561
Check warning on line 2 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Prefer `node:util` over `util`.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7L&open=AZ09Dy0oLQrmbX5-WK7L&pullRequest=561
Check failure on line 642 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 46 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7P&open=AZ09Dy0oLQrmbX5-WK7P&pullRequest=561
Check warning on line 8 in packages/ai-agents/src/domain/interfaces/validation-pipeline.js
sonarqubecloud / SonarCloud Code Analysis
Don't use a zero fraction in the number.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09DyxSLQrmbX5-WK65&open=AZ09DyxSLQrmbX5-WK65&pullRequest=561
Check warning on line 792 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Refactor this code to not use nested template literals.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7T&open=AZ09Dy0oLQrmbX5-WK7T&pullRequest=561
Check warning on line 51 in packages/ai-agents/src/infrastructure/git/git-checkpoint-service.js
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0WLQrmbX5-WK7G&open=AZ09Dy0WLQrmbX5-WK7G&pullRequest=561
Check warning on line 3 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Prefer `node:path` over `path`.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7M&open=AZ09Dy0oLQrmbX5-WK7M&pullRequest=561
Check failure on line 1386 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7f&open=AZ09Dy0oLQrmbX5-WK7f&pullRequest=561
Check warning on line 101 in packages/ai-agents/src/infrastructure/adapters/vercel-ai-adapter.js
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "prompt".
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0QLQrmbX5-WK7A&open=AZ09Dy0QLQrmbX5-WK7A&pullRequest=561
Check warning on line 12 in packages/ai-agents/src/infrastructure/validation/validation-pipeline.js
sonarqubecloud / SonarCloud Code Analysis
Don't use a zero fraction in the number.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0bLQrmbX5-WK7H&open=AZ09Dy0bLQrmbX5-WK7H&pullRequest=561
Check warning on line 1 in packages/ai-agents/src/infrastructure/git/git-checkpoint-service.js
sonarqubecloud / SonarCloud Code Analysis
Prefer `node:child_process` over `child_process`.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0WLQrmbX5-WK7E&open=AZ09Dy0WLQrmbX5-WK7E&pullRequest=561
Check warning on line 101 in packages/ai-agents/src/infrastructure/adapters/vercel-ai-adapter.js
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'prompt' variable.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0QLQrmbX5-WK6_&open=AZ09Dy0QLQrmbX5-WK6_&pullRequest=561
Check warning on line 16 in packages/ai-agents/src/infrastructure/validation/validation-pipeline.js
sonarqubecloud / SonarCloud Code Analysis
Don't use a zero fraction in the number.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0bLQrmbX5-WK7J&open=AZ09Dy0bLQrmbX5-WK7J&pullRequest=561
Check warning on line 904 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Use the "RegExp.exec()" method instead.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7V&open=AZ09Dy0oLQrmbX5-WK7V&pullRequest=561
Check warning on line 101 in packages/ai-agents/src/infrastructure/adapters/vercel-ai-adapter.js
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'context' variable.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0QLQrmbX5-WK7B&open=AZ09Dy0QLQrmbX5-WK7B&pullRequest=561
Check failure on line 746 in packages/ai-agents/src/infrastructure/mcp/frigg-tools.js
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 30 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0oLQrmbX5-WK7R&open=AZ09Dy0oLQrmbX5-WK7R&pullRequest=561
Check warning on line 101 in packages/ai-agents/src/infrastructure/adapters/vercel-ai-adapter.js
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'onEvent' variable.
See more on https://sonarcloud.io/project/issues?id=friggframework_frigg&issues=AZ09Dy0QLQrmbX5-WK7C&open=AZ09Dy0QLQrmbX5-WK7C&pullRequest=561