Patch 1 #2763
Patch 1 #2763
Quality Gate failed
Failed conditions
28 Security Hotspots
6.7% 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 warning on line 54 in sdk/nexent/core/models/rerank_model.py
sonarqubecloud / SonarCloud Code Analysis
Remove this "timeout" parameter and use a timeout context manager instead.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5D3yQ2GN9G34cNT_&open=AZ1r5D3yQ2GN9G34cNT_&pullRequest=2763
Check failure on line 397 in frontend/services/skillService.ts
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=ModelEngine-Group_nexent&issues=AZ1r5Dp7Q2GN9G34cNST&open=AZ1r5Dp7Q2GN9G34cNST&pullRequest=2763
Check failure on line 60 in backend/services/model_provider_service.py
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DmZQ2GN9G34cNSP&open=AZ1r5DmZQ2GN9G34cNSP&pullRequest=2763
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DrSQ2GN9G34cNSh&open=AZ1r5DrSQ2GN9G34cNSh&pullRequest=2763
Check failure on line 533 in frontend/services/skillService.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 62 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5Dp7Q2GN9G34cNSW&open=AZ1r5Dp7Q2GN9G34cNSW&pullRequest=2763
sonarqubecloud / SonarCloud Code Analysis
Visible, non-interactive elements with click handlers must have at least one keyboard listener.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DrSQ2GN9G34cNSg&open=AZ1r5DrSQ2GN9G34cNSg&pullRequest=2763
Check warning on line 873 in test/backend/services/test_model_provider_service.py
sonarqubecloud / SonarCloud Code Analysis
Remove the unused local variable "mock_add_repo_to_name".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DwcQ2GN9G34cNS-&open=AZ1r5DwcQ2GN9G34cNS-&pullRequest=2763
Check warning on line 116 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=AZ1r5DtaQ2GN9G34cNSr&open=AZ1r5DtaQ2GN9G34cNSr&pullRequest=2763
Check warning on line 828 in test/backend/services/test_model_provider_service.py
sonarqubecloud / SonarCloud Code Analysis
Remove the unused local variable "mock_emb_dim_check".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DwcQ2GN9G34cNS6&open=AZ1r5DwcQ2GN9G34cNS6&pullRequest=2763
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=AZ1r5DyoQ2GN9G34cNTe&open=AZ1r5DyoQ2GN9G34cNTe&pullRequest=2763
Check warning on line 134 in test/sdk/core/models/test_rerank_model.py
sonarqubecloud / SonarCloud Code Analysis
Do not perform equality checks with floating point values.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5D26Q2GN9G34cNT7&open=AZ1r5D26Q2GN9G34cNT7&pullRequest=2763
Check failure on line 3151 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=AZ1r5DyoQ2GN9G34cNTm&open=AZ1r5DyoQ2GN9G34cNTm&pullRequest=2763
Check warning on line 583 in frontend/services/skillService.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer `Number.isNaN` over `isNaN`.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5Dp7Q2GN9G34cNSb&open=AZ1r5Dp7Q2GN9G34cNSb&pullRequest=2763
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=AZ1r5DyoQ2GN9G34cNTg&open=AZ1r5DyoQ2GN9G34cNTg&pullRequest=2763
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=AZ1r5DyoQ2GN9G34cNTo&open=AZ1r5DyoQ2GN9G34cNTo&pullRequest=2763
Check warning on line 2563 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=AZ1r5DyoQ2GN9G34cNTR&open=AZ1r5DyoQ2GN9G34cNTR&pullRequest=2763
Check warning on line 2677 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=AZ1r5DyoQ2GN9G34cNTY&open=AZ1r5DyoQ2GN9G34cNTY&pullRequest=2763
Check warning on line 771 in test/backend/services/test_model_provider_service.py
sonarqubecloud / SonarCloud Code Analysis
Remove the unused local variable "mock_split_repo".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DwcQ2GN9G34cNS3&open=AZ1r5DwcQ2GN9G34cNS3&pullRequest=2763
Check warning on line 401 in test/sdk/core/tools/test_knowledge_base_search_tool.py
sonarqubecloud / SonarCloud Code Analysis
Remove the unused local variable "results".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5D2pQ2GN9G34cNT6&open=AZ1r5D2pQ2GN9G34cNT6&pullRequest=2763
Check warning on line 4982 in test/backend/services/test_vectordatabase_service.py
sonarqubecloud / SonarCloud Code Analysis
Remove the unused local variable "mock_rerank_class".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DulQ2GN9G34cNSz&open=AZ1r5DulQ2GN9G34cNSz&pullRequest=2763
Check warning on line 129 in test/backend/services/test_agent_service.py
sonarqubecloud / SonarCloud Code Analysis
Delete this unreachable code or refactor the code to make it reachable.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DvbQ2GN9G34cNS0&open=AZ1r5DvbQ2GN9G34cNS0&pullRequest=2763
Check warning on line 436 in backend/agents/create_agent_info.py
sonarqubecloud / SonarCloud Code Analysis
Remove the unused function parameter "agent_id".
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DnjQ2GN9G34cNSR&open=AZ1r5DnjQ2GN9G34cNSR&pullRequest=2763
Check warning on line 586 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=AZ1r5Di9Q2GN9G34cNSO&open=AZ1r5Di9Q2GN9G34cNSO&pullRequest=2763
sonarqubecloud / SonarCloud Code Analysis
Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.
See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1r5DrSQ2GN9G34cNSf&open=AZ1r5DrSQ2GN9G34cNSf&pullRequest=2763
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=AZ1r5DyoQ2GN9G34cNTN&open=AZ1r5DyoQ2GN9G34cNTN&pullRequest=2763