🧪 Add test file #2754
🧪 Add test file #2754
Quality Gate failed
Failed conditions
19 Security Hotspots
10.8% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension
SonarQube for IDE
Annotations
Check failure on line 128 in sdk/nexent/skills/skill_loader.py
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StppaDjkrgjePF6eO&open=AZ1StppaDjkrgjePF6eO&pullRequest=2754
Check warning on line 721 in test/sdk/core/tools/test_write_skill_file_tool.py
sonarqubecloud / SonarCloud Code Analysis
Remove the unused local variable "result".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1nVa9nf8TpJOiaGVQr&open=AZ1nVa9nf8TpJOiaGVQr&pullRequest=2754
Check warning on line 581 in frontend/services/skillService.ts
sonarqubecloud / SonarCloud Code Analysis
Use the "RegExp.exec()" method instead.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpmmDjkrgjePF6d_&open=AZ1StpmmDjkrgjePF6d_&pullRequest=2754
Check warning on line 213 in frontend/lib/skillFileUtils.tsx
sonarqubecloud / SonarCloud Code Analysis
Use the "RegExp.exec()" method instead.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpoHDjkrgjePF6eL&open=AZ1StpoHDjkrgjePF6eL&pullRequest=2754
Check failure on line 2778 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOg&open=AZ1oR21Wqn-xoYxPlnOg&pullRequest=2754
Check failure on line 3304 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOu&open=AZ1oR21Wqn-xoYxPlnOu&pullRequest=2754
Check warning on line 1183 in test/sdk/skills/test_skill_manager.py
sonarqubecloud / SonarCloud Code Analysis
Update this function so that its implementation is not identical to test_upload_md_with_explicit_file_type on line 1164.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1nVa51f8TpJOiaGVQn&open=AZ1nVa51f8TpJOiaGVQn&pullRequest=2754
Check warning on line 1844 in test/sdk/skills/test_skill_manager.py
sonarqubecloud / SonarCloud Code Analysis
Add replacement fields or use a normal string instead of an f-string.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1nVa51f8TpJOiaGVQp&open=AZ1nVa51f8TpJOiaGVQp&pullRequest=2754
Check warning on line 2450 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Replace the unused local variable "mock_observer" with "_".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOM&open=AZ1oR21Wqn-xoYxPlnOM&pullRequest=2754
Check warning on line 565 in backend/apps/skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Remove this redundant Exception class; it derives from another which is already caught.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpiPDjkrgjePF6d2&open=AZ1StpiPDjkrgjePF6d2&pullRequest=2754
Check warning on line 2508 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Replace the unused local variable "mock_observer" with "_".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOQ&open=AZ1oR21Wqn-xoYxPlnOQ&pullRequest=2754
Check warning on line 82 in frontend/lib/skillFileUtils.tsx
sonarqubecloud / SonarCloud Code Analysis
Use the "RegExp.exec()" method instead.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpoHDjkrgjePF6eH&open=AZ1StpoHDjkrgjePF6eH&pullRequest=2754
Check warning on line 73 in frontend/services/skillService.ts
sonarqubecloud / SonarCloud Code Analysis
This conditional operation returns the same value whether the condition is "true" or "false".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpmmDjkrgjePF6d5&open=AZ1StpmmDjkrgjePF6d5&pullRequest=2754
Check failure on line 2923 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOj&open=AZ1oR21Wqn-xoYxPlnOj&pullRequest=2754
Check failure on line 2847 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOh&open=AZ1oR21Wqn-xoYxPlnOh&pullRequest=2754
Check warning on line 49 in frontend/lib/skillFileUtils.tsx
sonarqubecloud / SonarCloud Code Analysis
Handle this exception or don't catch it at all.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpoHDjkrgjePF6eF&open=AZ1StpoHDjkrgjePF6eF&pullRequest=2754
Check failure on line 3301 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOt&open=AZ1oR21Wqn-xoYxPlnOt&pullRequest=2754
Check warning on line 2618 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Replace the unused local variable "mock_observer" with "_".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOX&open=AZ1oR21Wqn-xoYxPlnOX&pullRequest=2754
Check failure on line 3000 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOm&open=AZ1oR21Wqn-xoYxPlnOm&pullRequest=2754
Check failure on line 2850 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOi&open=AZ1oR21Wqn-xoYxPlnOi&pullRequest=2754
Check warning on line 437 in frontend/app/[locale]/agents/components/agentConfig/SkillBuildModal.tsx
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpnmDjkrgjePF6eD&open=AZ1StpnmDjkrgjePF6eD&pullRequest=2754
Check warning on line 458 in frontend/services/skillService.ts
sonarqubecloud / SonarCloud Code Analysis
Unexpected negated condition.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpmmDjkrgjePF6d7&open=AZ1StpmmDjkrgjePF6d7&pullRequest=2754
Check warning on line 117 in frontend/lib/skillFileUtils.tsx
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1StpoHDjkrgjePF6eK&open=AZ1StpoHDjkrgjePF6eK&pullRequest=2754
Check failure on line 3226 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOr&open=AZ1oR21Wqn-xoYxPlnOr&pullRequest=2754
Check warning on line 2480 in test/backend/app/test_skill_app.py
sonarqubecloud / SonarCloud Code Analysis
Replace the unused local variable "mock_observer" with "_".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1oR21Wqn-xoYxPlnOO&open=AZ1oR21Wqn-xoYxPlnOO&pullRequest=2754