CMU-313 / NodeBB

GNU General Public License v3.0
0 stars 224 forks source link

Refactoring code in src/middleware/headers.js #401

Open bestpantusen opened 2 months ago

bestpantusen commented 2 months ago

Code path: src/middleware/headers.js

Issue: Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed

https://sonarcloud.io/project/issues?cleanCodeAttributeCategories=ADAPTABLE&directories=src%2Fmiddleware&issueStatuses=OPEN%2CCONFIRMED&id=CMU-313_NodeBB&open=AZFmjANyybYwxy-_uEeL

bestpantusen commented 2 months ago

I would like to work on this please!

github-actions[bot] commented 2 months ago

Great! I assigned you (@bestpantusen) to the issue. Have fun working on it!