Chat flow integration with LLM module#2039
Quality Gate failed
Failed conditions
3 Security Hotspots
C Security 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 49 in notification-server/src/sseUtil.js
sonarqubecloud / SonarCloud Code Analysis
Use `.includes()`, rather than `.indexOf()`, when checking for existence.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tbNziK19_7kdmO0gP&open=AZ7tbNziK19_7kdmO0gP&pullRequest=2039
Check warning on line 53 in notification-server/src/server.js
sonarqubecloud / SonarCloud Code Analysis
Change this code to not log user-controlled data.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tbNuQK19_7kdmO0gL&open=AZ7tbNuQK19_7kdmO0gL&pullRequest=2039
Check warning on line 59 in notification-server/src/openSearch.js
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "requestId".
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tmdX-mHeo-Q4ybUmg&open=AZ7tmdX-mHeo-Q4ybUmg&pullRequest=2039
Check warning on line 23 in notification-server/src/server.js
sonarqubecloud / SonarCloud Code Analysis
Make sure creating this cookie without the "secure" flag is safe.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tbNuQK19_7kdmO0gJ&open=AZ7tbNuQK19_7kdmO0gJ&pullRequest=2039
Check warning on line 37 in notification-server/src/sseUtil.js
sonarqubecloud / SonarCloud Code Analysis
Change this code to not construct CORS policies from user-controlled data.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tbNziK19_7kdmO0gR&open=AZ7tbNziK19_7kdmO0gR&pullRequest=2039
Check warning on line 56 in notification-server/src/server.js
sonarqubecloud / SonarCloud Code Analysis
Change this code to not log user-controlled data.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tbNuQK19_7kdmO0gN&open=AZ7tbNuQK19_7kdmO0gN&pullRequest=2039
Check warning on line 59 in notification-server/src/openSearch.js
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'requestId' variable.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tmdX-mHeo-Q4ybUmf&open=AZ7tmdX-mHeo-Q4ybUmf&pullRequest=2039
Check warning on line 19 in notification-server/src/server.js
sonarqubecloud / SonarCloud Code Analysis
Make sure that enabling CORS is safe here.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tbNuQK19_7kdmO0gH&open=AZ7tbNuQK19_7kdmO0gH&pullRequest=2039
Check failure on line 63 in notification-server/src/openSearch.js
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 73 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tbNqBK19_7kdmO0gB&open=AZ7tbNqBK19_7kdmO0gB&pullRequest=2039
Check warning on line 54 in notification-server/src/server.js
sonarqubecloud / SonarCloud Code Analysis
Change this code to not log user-controlled data.
See more on https://sonarcloud.io/project/issues?id=buerokratt_Buerokratt-Chatbot&issues=AZ7tbNuQK19_7kdmO0gO&open=AZ7tbNuQK19_7kdmO0gO&pullRequest=2039