CMU-313 / NodeBB

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

Refactored code to reduce its Cognitive Complexity in src/middleware/headers.js #548

Open bestpantusen opened 2 months ago

bestpantusen commented 2 months ago

Refactored code in src/middleware/headers.js to reduce its Cognitive Complexity. Added helper functions in order to improve this and break down the logic into smaller, more manageable helper functions. This resolves #401 .

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10726913327

Details


Totals Coverage Status
Change from base Build 10607818019: 0.004%
Covered Lines: 22331
Relevant Lines: 25590

💛 - Coveralls
sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud